Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 03, 2016, 07:48:22 AM
  • Proudly celebrating 10 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 1612 times)

stophereareyou

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Autohotkey Suspend status
« on: January 01, 2013, 10:52:31 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: 4,664
    • View Profile
    • Donate to Member
Re: Autohotkey Suspend status
« Reply #1 on: January 01, 2013, 11:22:40 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: 13
    • View Profile
    • Donate to Member
Re: Autohotkey Suspend status
« Reply #2 on: January 01, 2013, 12:11:36 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