Sign in to follow this  
Followers 0
Yettofall

Way too confused...

14 posts in this topic

#1 ·  Posted (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 by Yettofall

Share this post


Link to post
Share on other sites



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.

Welcom to the forums - this might help, look for mouseclick() & HotKeySet()

http://www.autoitscript.com/autoit3/docs/


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

 

WindowsError.gif

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Varian

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

. . . . , and this is a vast tool)

?


Share this post


Link to post
Share on other sites

Who you callin' a tool??

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites

Who you callin' a tool??

the application, it's a vast utility

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  
Followers 0