| View previous topic :: View next topic |
| Author |
Message |
OreAird Guest
|
Posted: Sun Nov 22, 2009 2:30 pm Post subject: Suspending Keys & If Statements |
|
|
Hey All,
The following Code doesn't seem to Unsuspend Autohotkey. Not sure why
| Code: |
Suspend, On
;;;Loads of Hot Keys;;;
Suspend permit
~^!:: ;remote control Power Key
If WinActive, Windows Media Center
{
WinClose
}
Else
{
Suspend, Off
}
Return
|
Anyone able to give advice as to how to re-activate the hotkeys if the If statement is False?
~Ore |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Sun Nov 22, 2009 2:57 pm Post subject: |
|
|
the command has to follow the hotkey definition.
| Code: |
~^!:: ;remote control Power Key
Suspend permit
If WinActive, Windows Media Center
{
WinClose
}
Else
{
Suspend, Off
}
Return |
_________________
(Common Answers) |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 22, 2009 5:39 pm Post subject: |
|
|
This still has the same effect as before, Doesn't unsuspend the hotkeys when required...
Any ideas as to why the "Suspend, Off" isn't working? like you said I have moved the Suspend Permit to after the hotkey is called.
~Ore |
|
| Back to top |
|
 |
|