lolp1 Posted April 5, 2007 Posted April 5, 2007 Hello, I'm wondering if it is possible to use hotkeyset, but with a mouse click, I could not seem to find a way.
acidfear Posted April 5, 2007 Posted April 5, 2007 (edited) Take a look at _ispressed() in the help file. while 1 #Include <Misc.au3> if _IsPressed("01") = 1 then ; when left mouse button is clicked, returns 1 as success 0 as failure code here endif wend oÝ÷ ÚÚºÚ"µÍÚ[ÛYH ÛZØË]LÉÝÂÌÍÙHÜ[ ][ÝÝÙÌ ][ÝÊBÚ[HBYÒÔÜÙY ][ÝÌI][ÝË ÌÍÙ HHH[ÛÙHB[YÙ[ÛÜÙJ ÌÍÙ B Edited April 5, 2007 by acidfear
WeMartiansAreFriendly Posted April 5, 2007 Posted April 5, 2007 (edited) Hello, I'm wondering if it is possible to use hotkeyset, but with a mouse click, I could not seem to find a way. no, use _IsPressed() instead or larrys hook.dll in example scripts section of the forum. #include <Misc.au3> Local $click = 0 While 1 Sleep(10) If _IsPressed('01') Then If $click = 0 Then MsgBox(0,'Clicked','You right clicked') $click = 1 EndIf Else $click = 0 EndIf WEnd Edited April 5, 2007 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
lolp1 Posted April 5, 2007 Author Posted April 5, 2007 Heh, I knew about Ispressed but doesnt really work in my case, thanks anyways.
WeMartiansAreFriendly Posted April 5, 2007 Posted April 5, 2007 (edited) Heh, I knew about Ispressed but doesnt really work in my case, thanks anyways.ok so, can you explain why it doesn't work? Edited April 5, 2007 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
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