DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Autohotkey Suspend status  (Read 5,101 times)

stophereareyou

  • Participant
  • Joined in 2010
  • *
  • Posts: 14
Autohotkey Suspend status
« on: January 01, 2013, 04:52 PM »
what I'm doing wrong

Code
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

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Autohotkey Suspend status
« Reply #1 on: January 01, 2013, 05:22 PM »
In an expression, don't use percentage symbols, e.g.:

Code: (autohotkey)
If ( A_IsSuspended = 1 )

stophereareyou

  • Participant
  • Joined in 2010
  • *
  • Posts: 14
Re: Autohotkey Suspend status
« Reply #2 on: January 01, 2013, 06:11 PM »
In an expression, don't use percentage symbols, e.g.:

Code: (autohotkey)
If ( A_IsSuspended = 1 )

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

Firdaus Shaikh

Original address: https://www.donationcoder.com/forum/index.php?topic=33503.0