PDA

View Full Version : AHK help



Ido
07-11-2007, 05:48 PM
hi i'm new to dual-boxing. I started using AHK but i got a problem.

this work fine to send Alt + 1 :
~'::ControlSend, , {Alt down}{1 down}{1 up}{Alt up}, ahk_id %wowid2%

but i can't send Ctrl 1 using the same syntax :
~^&::ControlSend, , {LControl down}{1 down}{1 up}{LControl up}, ahk_id %wowid2%

i want to send ctrl 1 to wowid2 when i do ctrl 1 in wowid1

i don't see why it doesn't work ..

sorry for my poor english :x

Jayk
07-11-2007, 06:00 PM
tried using ctrl instead of control?

Ido
07-12-2007, 05:32 AM
yes i tried :

~^&::ControlSend, , {LCtrl down}{1 down}{1 up}{LCtrl up}, ahk_id %wowid2%

~^&::ControlSend, , {^ down}{1 down}{1 up}{^ up}, ahk_id %wowid2%

~^&::ControlSend, , {^1}, ahk_id %wowid2%

~^&::ControlSend, , {LControl1}, ahk_id %wowid2%

~^&::ControlSend, , {LCtrl1}, ahk_id %wowid2%

~^&::ControlSend, , {LCtrl & 1}, ahk_id %wowid2%

~^&::ControlSend, , {LControl & 1}, ahk_id %wowid2%

and more.

i really don't see why it doesn't work at all ... and i'm sure that the starting hotkey is good because " ~^&::MsgBox Hotkey OK " work fine when i do ctrl1.