From: Ted Flethuseo Date: 2010-10-25T11:52:01+09:00 Subject: Re: global hotkeys in windows. Hi, This is cool. I was wondering though.. is it preferable to copy the AutoHotkey.dll file to some special location before registering it, or does registering it mean that it actually copies it to some windows directory. (Is there a specific windows directory for dlls?) Ted Jethrow .. wrote in post #956604: > 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 (or you could > use the DLL directly w/o the COM interface) -- Posted via http://www.ruby-forum.com/.