Jump to content

get left- and rightclick on desktop


Recommended Posts

_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

_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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...