TOTAL
Joined: 26 Sep 2007 Posts: 33
|
Posted: Mon Apr 14, 2008 4:43 pm Post subject: strange space issue |
|
|
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. |
|