Yettofall Posted February 10, 2011 Posted February 10, 2011 (edited) Hi, i'm trying to compile a series of mouse commands, yet i don't even find a way to hold the mouse down. trying to achieve something like left click left click hold right click left click thanks in advanced Edit: Forgot to add that i don't want any particular mouse position and i wanted this bind to a key. Edited February 10, 2011 by Yettofall
nitekram Posted February 10, 2011 Posted February 10, 2011 Hi,i'm trying to compile a series of mouse commands, yet i don't even find a way to hold the mouse down.trying to achieve something likeleft clickleft clickhold right clickleft clickthanks in advancedEdit: Forgot to add that i don't want any particular mouse position and i wanted this bind to a key.Welcom to the forums - this might help, look for mouseclick() & HotKeySet()http://www.autoitscript.com/autoit3/docs/ 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
Yettofall Posted February 11, 2011 Author Posted February 11, 2011 Welcom to the forums - this might help, look for mouseclick() & HotKeySet()http://www.autoitscript.com/autoit3/docs/ty for your input, i did the following, but not only the binding isn't working nor do i know how to run the script outside of the desktop (i want it to be present and not having to run the file that i created)
JohnOne Posted February 11, 2011 Posted February 11, 2011 ty for your input, i did the following, It appears "the following" has been ommited from your post.Show the code you tried, else you're going to be going around in time wasting circles. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Varian Posted February 11, 2011 Posted February 11, 2011 (edited) Since you were wise enough to be vauge with your intentions for this, I will help HotKeySet('{ESC}', '_Quit') HotKeySet('^+z', '_Click') ;Control Shift z While 1 Sleep(10) WEnd Func _Click() MouseClick('Left') MouseClick('Left') MouseDown('Right') MouseClick('Left') EndFunc ;==>_Click Func _Quit() Exit MouseUp('Right') EndFunc ;==>_Quit It appears "the following" has been ommited from your post. Love the sarcasm! Edited February 11, 2011 by Varian
Yettofall Posted February 11, 2011 Author Posted February 11, 2011 i'm so sorry for the missing part, this is what i had done: HotKeySet("!{*}","helloWorld"); assign * MouseClick("left") MouseClick("left") MouseClick("right") Opt("MouseClickDelay", 20) MouseClick("right")
Yettofall Posted February 11, 2011 Author Posted February 11, 2011 Since you were wise enough to be vauge with your intentions for this, I will help HotKeySet('{ESC}', '_Quit') HotKeySet('^+z', '_Click') ;Control Shift z While 1 Sleep(10) WEnd Func _Click() MouseClick('Left') MouseClick('Left') MouseDown('Right') MouseClick('Left') EndFunc ;==>_Click Func _Quit() Exit MouseUp('Right') EndFunc ;==>_Quit Love the sarcasm! ty for the Help Varian, tho what if i'd want to change the binding to ; to start and : to end?
ReaImDown Posted February 11, 2011 Posted February 11, 2011 i'm so sorry for the missing part, this is what i had done:HotKeySet("!{*}","helloWorld"); assign *MouseClick("left")MouseClick("left")MouseClick("right")Opt("MouseClickDelay", 20)MouseClick("right")read Varian's post [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Varian Posted February 11, 2011 Posted February 11, 2011 ty for the Help Varian, tho what if i'd want to change the binding to ; to start and : to end? You are becoming less vague with your intentions, Yettofall. I would advise that you end this post as it is becoming painfully obvious what the objective is. To answer your question, change to this: HotKeySet(':', '_Quit') ;Exit the script HotKeySet(';', '_Click') ;Start the Mouseclicks
Yettofall Posted February 11, 2011 Author Posted February 11, 2011 You are becoming less vague with your intentions, Yettofall. I would advise that you end this post as it is becoming painfully obvious what the objective is. To answer your question, change to this: HotKeySet(':', '_Quit') ;Exit the script HotKeySet(';', '_Click') ;Start the Mouseclicks Ty again Varian, this program is beyond my expectations, i've been reading some guides (the one you included aswell), and this is a vast tool)
kylomas Posted February 11, 2011 Posted February 11, 2011 @Varian, Thanks, was having a rather pissy night till now!! kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Yettofall Posted February 11, 2011 Author Posted February 11, 2011 Who you callin' a tool??the application, it's a vast utility
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