ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Autohotkey Suspend status

(1/1)

stophereareyou:
what I'm doing wrong


--- ---ScrollLock::
Suspend

if(%A_IsSuspended%==1)
{
 SetScrollLockState, off
}
else
{
 SetScrollLockState, on
}
return
what is wrong with if condition? I didn't get this

Firdaus Shaikh

skwire:
In an expression, don't use percentage symbols, e.g.:


--- Code: Autohotkey ---If ( A_IsSuspended = 1 )

stophereareyou:
In an expression, don't use percentage symbols, e.g.:


--- Code: Autohotkey ---If ( A_IsSuspended = 1 )-skwire (January 01, 2013, 11:22 AM)
--- End quote ---

Thank You skwire, you made my day...
Thanks alot...

Firdaus Shaikh

Navigation

[0] Message Index

Go to full version