Jump to content
Sign in to follow this  
CensoredAndRemoved

get left- and rightclick on desktop

Recommended Posts

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

Share this post


Link to post
Share on other sites

_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.

Share this post


Link to post
Share on other sites

_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...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...