From: "Jethrow .." Date: 2010-10-24T03:53:47+09:00 Subject: Re: global hotkeys in windows. Eric Christopherson wrote in post #956560: > You'd need to use something like AutoHotkey for that. I've never used > it with Ruby, but it could be done. AutoHotkey would be more my area of knowledge. You might be interested that AHK now has a DLL with COM support. This would make embedding AHK in Ruby quite simple: require "WIN32OLE" code = "#NoTrayIcon\n" + "^m:: MsgBox, Hotkey created with AHK in Ruby" ahk = WIN32OLE.new("AutoHotkey.Script") ahk.AhkTextDll(code) puts "Press CTRL+M to display a Message Box with embedded AHK\n\n" + "Hit Enter to close the console & destroy the Hotkey ..." gets If you want to know more, the AHK topic is here: http://www.autohotkey.com/forum/topic43049.html The actual DLL is part of the PACKAGE referenced here: http://www.autohotkey.net/~HotKeyIt/AutoHotkey/ NOTE - you'd have to register the DLL using regsvr32.exe -- Posted via http://www.ruby-forum.com/.