CensoredAndRemoved Posted December 14, 2007 Share Posted December 14, 2007 hi @ all, i need help ^^ how can i get, if s.o click on the desktop (primary and secondary click...) in gui´s i can get it, when i write: if guiGetMsg()==-7 the msgbox(0,"Info","The PrimaryMouseButton is Down") endif thx With friendly ones greet STP Link to comment Share on other sites More sharing options...
CensoredAndRemoved Posted December 14, 2007 Author Share Posted December 14, 2007 i think i cant make that with autoit v3... thx for reading... i search a little bit in google Link to comment Share on other sites More sharing options...
au3scr Posted December 15, 2007 Share Posted December 15, 2007 like click on your desktop with left and right clicK? Use mouseclick Link to comment Share on other sites More sharing options...
jokke Posted December 15, 2007 Share Posted December 15, 2007 _ispressed() is the function you are looking for. Here's a simple script: #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 If _IsPressed(1, $dll) Then ConsoleWrite("Left click."&@CRLF) EndIf If _IsPressed(2, $dll) Then ConsoleWrite("Right click."&@CRLF) EndIf WEnd DllClose($dll) UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
LarryDalooza Posted December 15, 2007 Share Posted December 15, 2007 i think i cant make that with autoit v3...thx for reading...i search a little bit in google yes, I believe you are correct that you cannot accomplish this...Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
CensoredAndRemoved Posted December 16, 2007 Author Share Posted December 16, 2007 _ispressed() is the function you are looking for. Here's a simple script: #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 If _IsPressed(1, $dll) Then ConsoleWrite("Left click."&@CRLF) EndIf If _IsPressed(2, $dll) Then ConsoleWrite("Right click."&@CRLF) EndIf WEnd DllClose($dll) thank you its going well... THX!!!!!!!!!!!!!!!!!!!!!! wow... 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