Jump to content
Sign in to follow this  
spiderous

Is this right?

Recommended Posts

spiderous

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

Share this post


Link to post
Share on other sites
spiderous

bump

Share this post


Link to post
Share on other sites
BigDod

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:



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
spiderous

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

Share this post


Link to post
Share on other sites
spiderous

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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
spiderous

the error says

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

HotKeySet^{ERROR

Error:Unable to parse line."

Share this post


Link to post
Share on other sites
spiderous

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

Share this post


Link to post
Share on other sites
dirtybob

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

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
spiderous

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

Share this post


Link to post
Share on other sites
seandisanti

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.

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  

×