Jump to content

Is this right?


Recommended Posts

Would this give me a script moving to 3 points with a slight pause between each and then looping?

HotKeySet("{Home}","_MClick")

HotKeySet("{End}","_StopLoop")

HotKeySet("{ESC}","_Exit")

While 1

Sleep (10)

Wend

Func _Exit()

Exit

EndFunc

Func _StopLoop()

$Loop = 0

EndFunc

Func _MClick()

$Loop = 1

While $Loop

Double click at 0,500

MouseClick("left", 158, 344)

sleep(500)

Double click at 0,500

MouseClick("left", 168, 344)

sleep(500)

Double click at 0,500

MouseClick("left", 178, 344)

sleep(500)

Wend

EndFunc

Made a new post because the other was getting long, and I thought this would be better.

Edited by spiderous
Link to comment
Share on other sites

Would this give me a script moving to 3 points with a slight pause between each and then looping?

If you had tried it you have already answered you question.

Try this, it is far from perfect.

HotKeySet("{Home}","Start")
HotKeySet("{End}","Stop")   

While 1
Sleep(100)
Send("{home}")
Sleep(10000)
WEnd

Func Start()
    MouseClick("left", 158, 344,5)
    Sleep(500)
    MouseClick("left", 168, 344,5)
    Sleep(500)
    MouseClick("left", 178, 344,5)
    Sleep(500)
EndFunc

Func Stop()
    Exit
EndFunc

I am no programmer but I managed to put this together.

:whistle::dance::dance:


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

  • Developers

Guys Im trying here... Please help me.  I took your advise and tried a script and I can not get it working.

<{POST_SNAPBACK}>

Script shown is fine...... telling us that

This script gives an error when run. a parse invalid or something like that

Isn't very helpfull....

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.
  :)

Link to comment
Share on other sites

ok, I fixed the error. Now how ho I adjust the time between loops. Could someone explain to me how the time is calculated like 500 means .5 seconds or something

Which code do I adjust to make the loop faster?

Is it

While 1

Sleep(100)

Send("{home}")

Sleep(10000)

WEnd

Edited by spiderous
Link to comment
Share on other sites

try this one:)

;HotKey to end the script, no need for a start command because it will 
;start when you double click the file.

HotKeySet("{End}","Stop")   

;Moves the mouse to the firts Co-ords and then starts clickin and moving.

While 1
    MouseClick("left", 158, 344,5)
    Sleep(500)
    MouseClick("left", 168, 344,5)
    Sleep(500)
    MouseClick("left", 178, 344,5)
    Sleep(500)
If @error then 
exit
endif
wend

;Stops the script
Func Stop()
    Exit
EndFunc
Link to comment
Share on other sites

  • Developers

you know you can EDIT posts right ? :whistle:

Could someone explain to me how the time is calculated like 500 means .5 seconds or something

I think it was you proposing more/better examples/tutorial in the helpfile right ?

Maybe you need to start using it for your basic questions first too....

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.
  :)

Link to comment
Share on other sites

Yed I did edit it, I did not realize there was a delete tab.

As far as the seconds question goes I did read the help files on that section and I was unsure If I got it right.

That where I got the .5 = 500. I was making sure.

Is there a reason you are posting on all my topics with nothing actually helping me.

It was already stated that I was a noob and knew not what I was doing. I don't understand why you are posting if you have nothing costructive to say.

Thanks for your help guys It is working great now.

/worships_you_all

Link to comment
Share on other sites

ok, I fixed the error.  Now how ho I adjust the time between loops.  Could someone explain to me how the time is calculated like 500 means .5 seconds or something

Which code do I adjust to make the loop faster?

Is it

While 1

Sleep(100)

Send("{home}")

Sleep(10000)

WEnd

<{POST_SNAPBACK}>

There are fewer than ten functions used in this script, and the function that you're looking for is one of the first 3... the help file would probably answer your question more simply and quickly than a post... and it would include an example.
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...