topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 9:47 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Autohotkey Suspend status  (Read 3925 times)

stophereareyou

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 14
    • View Profile
    • Donate to Member
Autohotkey Suspend status
« on: January 01, 2013, 10:52 AM »
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Autohotkey Suspend status
« Reply #1 on: January 01, 2013, 11:22 AM »
In an expression, don't use percentage symbols, e.g.:

Code: Autohotkey [Select]
  1. If ( A_IsSuspended = 1 )

stophereareyou

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

Code: Autohotkey [Select]
  1. If ( A_IsSuspended = 1 )

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

Firdaus Shaikh