| View previous topic :: View next topic |
| Author |
Message |
Clash
Joined: 27 Jun 2006 Posts: 182
|
Posted: Tue Jul 01, 2008 10:22 pm Post subject: Enable/ disable key with hotkey |
|
|
Hello, i need to toggle the activity of shift with e. So when i press e, shift will be disabled until i press it again.
this is my idea, but it doesn't work:
| Code: | e::goto, decide
decide:
if toggle = 1
{
hotkey, shift, off
toggle=0
}else{
hotkey, shift, on
toggle=1
}
return
off:
return
on:
shift::shift
return |
Any idea? _________________
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5887
|
Posted: Tue Jul 01, 2008 10:48 pm Post subject: |
|
|
| Code: | e::
Gui 99:+ToolWindow
Gui,% "99:" ( S:=( S <> "Show" ) ? "Show" : "Destroy" ), x-1 y-1 +NoActivate, Dummy-AHK
Return
#IfWinExist, Dummy-AHK
LShift::Return
RShift::Return
#IfWinExist |
 _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Clash
Joined: 27 Jun 2006 Posts: 182
|
Posted: Tue Jul 01, 2008 10:50 pm Post subject: |
|
|
Genius, thanks skan _________________
 |
|
| Back to top |
|
 |
|