Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

AHK question

I want to bind Numpad4 to click and Numpad5::shift
so I write the code
Numpad4::Click
Numpad5::shift
and that works but I also want it that when I press Numpad5 and Numpad4 at the same time, it performs a shift-click but for some reason this does not work in the game i'm trying to play. So I tried something like:
Numpad4+Numpad5::shift+click
but it doesn't work, any tips?
Code
Numpad4 & Numpad5::
        Send {Shift Down}
        Send {LButton Down}
        Sleep 1000
        Send {LButton Up}
        Send {Shift Up}
return

Just wrote it on mobile so cannot check it, but something like this should be fine. You can obviously change the sleep value; it's in ms.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by Check The NameDec 20, 2020 10:54 PM 2 150 Dec 20, 2020 10:54 PM
Last Post: Check The Name
[Shell] by B igbadsoftApr 30, 2020 11:30 AM 0 101 Apr 30, 2020 11:30 AM
Last Post: B igbadsoft
[Shell] 
AHK 
by ohrambohSep 28, 2016 11:16 PM
2 110 Sep 28, 2016 11:16 PM
Last Post: JoshuTee