AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

strange space issue

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
TOTAL



Joined: 26 Sep 2007
Posts: 33

PostPosted: Mon Apr 14, 2008 4:43 pm    Post subject: strange space issue Reply with quote

When I opened an ahk file in pspad editor with dedicated syntax I noticed that command when after a double colon lights up as a recognized unit when there is a space after the double colon.

Following this discovery I modified all the code I have operating on the daily basis. It was then that problems started.

When pressing a combination of rwin and rshift opera browser started and went to home page (normally it doesn't). Also zopernic desktop search - these two started for no reason. No change in the code justifies that.


before, the said key combination switched tabs in opera, word and excel 97, firefox, etc.

It took me a while to detect the cause: it is the space between send command and ::
when removed, code works okay. when inserted, it malfunctions.


RIGHT
Code:
$~*LShift::Send % ( GetKeyState("RWin", "p") ? "{blind}^{Tab}"  : ""  )
$~*RShift::Send % ( GetKeyState("RWin", "p") ? "{blind}{RShift up}^{Tab}{RShift Down}"  : "" )


WRONG
Code:
$~*LShift:: Send % ( GetKeyState("RWin", "p") ? "{blind}^{Tab}"  : ""  )
$~*RShift:: Send % ( GetKeyState("RWin", "p") ? "{blind}{RShift up}^{Tab}{RShift Down}"  : "" )



tested on the two most recent versions of AHK.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group