Jump to content
Sign in to follow this  


Recommended Posts


Well, i do a lot of general automation so im making somethin that will (when i click) write to a selected file

(1 the coordinates (2 the mouse button to speed up the process... i would use the macro creator but im doing this with some UDFs i have for minimized clicking/moving/sending... so what i need help with is: how call a function when the left or right mouse button is clicked

--any help is much appriciated


AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

Share this post

Link to post
Share on other sites

For hooking you could use

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep ( 250 )
    If _IsPressed("01", $dll) Then
        $pos = MouseGetPos()
        If $pos = $whatiwant Then
                <Do my function>

01 = Mouse Left

02 = Mouse Right

Can be found in help file under Func _IsPressed

Edited by D4rk^S0ul

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.