Jump to content

Recommended Posts

Posted

Is there a command or routine that will allow me to click and hold the left mouse button for a few seconds at at a given set of coordinates and then move to a new set of coordinates while holding the left mouse button then release the left mouse button at the new set of coords?

:whistle:

Posted

Thanks Jdeb & Larry. I think Larry has what I need. Now the MouseDown command will press the left mouse button down during which I can Sleep for a second or two, then MouseMove,x,y to the spot i wish to release it at and Mouse Up. Am I understanding you correctly?

Posted

MouseMove(50, 10)

MouseDown("left") <--- left must be contained within quotations within parenthesis?

Sleep(2000)

MouseMove(500, 500, 0)

MouseUp("left") <--- left must be contained within quotations within parenthesis?

Again, I thank you for your help.

Posted

It was v.2, Jos. Can anyone put this v.2 script in v.3 syntax for me. I tried last night at home, but coudn't get it to work in v.3. I couldn't find a list of commands for v.3.

start:

Send, {F1}

Send, {Enter}

LeftClick, ##,##

LeftClick, ##,##

LeftClick, ##,##

LeftClick, ##,##

LeftClick, ##,##

LeftClick, ##,##

Sleep, 4000

Send, {Enter}

Sleep, 2000

LeftClick, ##,##

Sleep, 2000

Send, {Enter}

Sleep, 2000

Send, {Enter}

Sleep, 2000

LeftClick, ##,##

Sleep, 2000

Send, {Enter}

Sleep, 2000

Goto, start

  • Developers
Posted

Enlil,

You can find all functions in the AutoIT.CHM which is part of the installset on the download page.

Anyway this should be close:

while 1=1

Send, {F1}

Send({Enter})

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

Sleep(4000)

Send({Enter})

Sleep(2000)

MouseClick( "left" ,x ,y )

Sleep(2000)

Send({Enter})

Sleep(2000)

Send({Enter})

Sleep(2000)

MouseClick( "left" ,x ,y )

Sleep(2000)

Send({Enter})

Sleep(2000)

wend

jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Jos, you've been a big help.

Does this 'wend' statement at the end of the script acts the same as the goto, start statement in my v.2 script? Also, just to be certain....I noticed the spaces between the open and close parenthesis and the open and close quotation marks in the mouseClick statments.....is this correct?

Edited by Enlil
Posted

hi

You made a small mistake.

New:

while 1=1

Send ("{F1}")

Send("{Enter}")

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

mouseClick( "left" ,x ,y)

Sleep(4000)

Send("{Enter}")

Sleep(2000)

MouseClick( "left" ,x ,y )

Sleep(2000)

Send("{Enter}")

Sleep(2000)

Send("{Enter}")

Sleep(2000)

MouseClick( "left" ,x ,y )

Sleep(2000)

Send("{Enter}")

Sleep(2000)

wend

Greetz Silvan

Sorry, which my English is so bad. I come from Switzerland ;-)

  • Developers
Posted

Thanks Silvanr... :whistle: you are right I did a quick 'n dirty conversion without testing. could be other mistakes in there....

Enlil,

the While ... wend is an endless loop ... this version of AutoIt is Goto-Less

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...