Jump to content

Way too confused...


 Share

Recommended Posts

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
Link to comment
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

Link to comment
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)

Link to comment
Share on other sites

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.

Link to comment
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

It appears "the following" has been ommited from your post.

Love the sarcasm! Edited by Varian
Link to comment
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?
Link to comment
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]
Link to comment
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
Link to comment
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)
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...