cdkid Posted February 11, 2006 Share Posted February 11, 2006 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 ~cdkid 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! Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 (edited) i ceated an automator for daily tasks... its really cool... GPS Style 8)http://www.autoitscript.com/forum/index.ph...st=0&p=116847alsoyou could make a small invisable GUI in a corner that you click on to start your automation8) Edited February 11, 2006 by Valuater Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Share Posted February 11, 2006 (edited) 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> EndIf EndIf WEnd DllClose($dll) 01 = Mouse Left 02 = Mouse Right Can be found in help file under Func _IsPressed Edited February 11, 2006 by D4rk^S0ul 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