snowman533 Posted April 22, 2009 Share Posted April 22, 2009 (edited) is there a way to set the mouse as a hotkey? tried search, couldnt find anything that helps HotKeySet("!z", "getWindowname") while 1 sleep(100) WEnd Func getWindowname() HotKeySet("!z", "getWindowname") $wn = MouseGetPos() $window=WinGetTitle($wn) Msgbox(0, "result", $window) EndFunc how can i adjust my code to set mouse as hotkey? this code is an improvement to one of my programs, when the program is run i want the user to be able to select a window to record text from it by clicking currently, the user has to type in the exact name of the window, i already have the text recording code ready, so i dont need that and currently, this is a test script, which is set to record a window name when the mouse is positioned over that winder and Alt-z is pressed is there a way to set my code to record the window name when that window is clicked? preferably "right" clicked, or anything which avoids the left click thanks in advance Edited April 23, 2009 by snowman533 Intermediate AutoIt/Autohotkey User Link to comment Share on other sites More sharing options...
FinalVersion Posted April 22, 2009 Share Posted April 22, 2009 I'm pretty sure Mouse1 is left click, Mouse2 right, and Mouse3 push the wheel down. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
snowman533 Posted April 22, 2009 Author Share Posted April 22, 2009 (edited) tried: HotKeySet("Mouse1", "getWindowname") HotKeySet("Mouse2", "getWindowname") HotKeySet("Mouse3", "getWindowname") none worked i mean nothing happens when you click on a window with the set mouse button Edited April 22, 2009 by snowman533 Intermediate AutoIt/Autohotkey User Link to comment Share on other sites More sharing options...
FinalVersion Posted April 22, 2009 Share Posted April 22, 2009 tried: HotKeySet("Mouse1", "getWindowname")HotKeySet("Mouse2", "getWindowname")HotKeySet("Mouse3", "getWindowname")none workedi mean nothing happens when you click on a window with the set mouse buttonI never said you could use HotKeySet() for this. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
snowman533 Posted April 22, 2009 Author Share Posted April 22, 2009 then you are not helping is there a way to set a mouse as hotkey or not? provide an example i cannot find anything that helps me in search, neither can i in help Intermediate AutoIt/Autohotkey User Link to comment Share on other sites More sharing options...
BigDod Posted April 22, 2009 Share Posted April 22, 2009 Have a look at This topic 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...
snowman533 Posted April 23, 2009 Author Share Posted April 23, 2009 Thanks BigDod solved 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