AutoHotkey Community

It is currently May 27th, 2012, 11:31 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: September 26th, 2009, 1:19 pm 
Offline

Joined: September 23rd, 2005, 8:18 pm
Posts: 55
I want create a script that allows me to use one button on the mouse as a hold button.

1. Press the button.
2. All input is blocked.
3. Press the button again.
4. Input is restored.

I have understood how to block the input using blockinput. But If I block the input how will I be able to detect if the key is pressed again?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2009, 11:18 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
It looks like you cannot unblock using LButton:
Code:
~LButton::
KeyWait,LButton
BlockInput On
Return

~$CtrlBreak::BlockInput, Off ;RButton instead of CtrlBreak will not work, looks like hook does not work :?

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Yahoo [Bot] and 20 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