Quakes Posted December 13, 2006 Share Posted December 13, 2006 I've searched the boards for a while now regarding this, but either due to my lack of searching skills or the lack of information, I haven't been able to find it, thus this topic. My question: Is it possible to set mouse buttons to HotKeySet? Such as ctrl+mouseclick, alt+mouseclick, etc? Link to comment Share on other sites More sharing options...
BigDod Posted December 13, 2006 Share Posted December 13, 2006 In the help file it states that HotKeySet uses the same keys as Send. So the answer to your question is no. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Markus Posted December 13, 2006 Share Posted December 13, 2006 (edited) As BigDod said, it isn't possible, but there are several possibilities to let mouseclicks work as hotkeys: First possibility, if you want to have mouseclicks as a "hotkey", when you click on your gui: #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) GUICreate("",@DesktopWidth,@DesktopHeight) GUISetOnEvent($GUI_EVENT_PRIMARYDOWN,"your_function") GUISetState() While 1 Sleep(100) WEnd Func your_function() If _IsPressed(11) Then MsgBox(0,"","Mouse as Hotkey");11=additional key (CTRL) EndFunc Second possibility, mouseclicks as "hotkey" independent of the window: #include <Misc.au3> While 1 If _IsPressed(01) And _IsPressed(11) Then your_function() Sleep(100) WEnd Func your_function() MsgBox(0,"","Mouse as Hotkey") EndFunc Edited December 13, 2006 by Markus "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
snowman533 Posted April 22, 2009 Share Posted April 22, 2009 what button does _IsPressed(11) point to? Intermediate AutoIt/Autohotkey User Link to comment Share on other sites More sharing options...
BigDod Posted April 22, 2009 Share Posted April 22, 2009 what button does _IsPressed(11) point to?It does not point to any mouse keys. For a complete list lookup _IsPressed in the help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
BrettF Posted April 22, 2009 Share Posted April 22, 2009 Snowman. Learn to search and use the help file. Then you should start to go okay. I figured someone with as many posts as you would have figured that out by now... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
snowman533 Posted April 22, 2009 Share Posted April 22, 2009 i guess i havent been searching correct or using the help file correct, even tho i used all the phrases imaginable in double quotes i could think of in search , even without Intermediate AutoIt/Autohotkey User Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now