AutoHotkey Community

It is currently May 26th, 2012, 8:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 1st, 2008, 10:22 pm 
Offline

Joined: June 27th, 2006, 4:36 pm
Posts: 182
Hello, i need to toggle the activity of shift with e. So when i press e, shift will be disabled until i press it again.

this is my idea, but it doesn't work:

Code:
e::goto, decide                 
                               
decide:                         
if toggle = 1                   
{                               
hotkey, shift, off             
toggle=0                       
}else{                         
hotkey, shift, on               
toggle=1                       
}                               
return                         
                               
off:                           
return                         
                               
on:                             
shift::shift                   
return


Any idea?

_________________
Image Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2008, 10:48 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Code:
e::
 Gui 99:+ToolWindow
 Gui,% "99:" ( S:=( S <> "Show" ) ? "Show" : "Destroy" ), x-1 y-1 +NoActivate, Dummy-AHK
Return

#IfWinExist, Dummy-AHK
 LShift::Return
 RShift::Return
#IfWinExist


:)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2008, 10:50 pm 
Offline

Joined: June 27th, 2006, 4:36 pm
Posts: 182
Genius, thanks skan

_________________
Image Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: poserpro, sjc1000 and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group