a question about "shift" Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Posts: 4
Joined: 25 Nov 2016, 23:38

a question about "shift"

Post by shixuguo » 21 Nov 2017, 11:12

I want to develop a function like this:
1. if I press shift only ,it runs a subfunction(named foo)
2.if I press shift and other key, it doesn't run foo

how can I do it?
User avatar
Posts: 1217
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: a question about "shift"  Topic is solved

Post by Nextron » 21 Nov 2017, 13:01

Code: Select all

~Shift up::
If !InStr(A_Priorkey,"Shift")
	;Do other stuff here
	SoundBeep ;Example
Post Reply

Return to “Ask For Help”