Sign in to follow this  
Followers 0
Arez

End Program Doesn't Work

13 posts in this topic

#1 ·  Posted (edited)

HotKeySet("{NumPadAdd}","getpos")
HotKeySet("{END}","quitme")
While 1
MouseClick("left", 182, 356, 2, 2.5)
Sleep(0)
MouseClick("left", 333, 347, 2, 2.5)
Sleep(0)
MouseClick("left", 440, 335, 2, 2.5)
Sleep(0)
MouseClick("left", 565, 359, 2, 3.5)
WEnd
EndFunc
func quitme()
exit
EndFunc

What did I do wrong there?

Edited by Arez

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

There's an extra endfunc above the quitme function.

Plus, without a getpos function, it won't work.

Edited by greenmachine

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

help this doesn't work either

HotKeySet("{NumPadAdd}","getpos")
HotKeySet("{END}","quitme")
Func getpos()
While 1
MouseClick("left", 182, 356, 2, 2.5)
Sleep(0)
MouseClick("left", 333, 347, 2, 2.5)
Sleep(0)
MouseClick("left", 440, 335, 2, 2.5)
Sleep(0)
MouseClick("left", 565, 359, 2, 3.5)
WEnd
func quitme()
exit
EndFunc
Edited by Arez

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

HotKeySet("{NumPadAdd}","getpos")
HotKeySet("{END}","quitme")
Func getpos()
While 1
MouseClick("left", 182, 356, 2, 2.5)
MouseClick("left", 333, 347, 2, 2.5)
MouseClick("left", 440, 335, 2, 2.5)
MouseClick("left", 565, 359, 2, 3.5)
WEnd
EndFunc
func quitme()
exit
EndFunc

Try this

You can leave Sleep(0) because 0 ms = no time :think:

Edited by Daniel W.

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Share this post


Link to post
Share on other sites

When I use your code and run script nothing happens. what else needs to be done?

Share this post


Link to post
Share on other sites

Try this

HotKeySet("{NumPadAdd}","getpos")
HotKeySet("{END}","quitme")

While 1
    sleep(10)
WEnd

Func getpos()
While 1
MouseClick("left", 182, 356, 2, 2.5)
MouseClick("left", 333, 347, 2, 2.5)
MouseClick("left", 440, 335, 2, 2.5)
MouseClick("left", 565, 359, 2, 3.5)
WEnd
EndFunc

func quitme()
exit
EndFunc


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

When I run yours the script stays in the bottom right of my screen but nothing happens. curse of the endfunc!!!!!!!!!!

Share this post


Link to post
Share on other sites

When I run yours the script stays in the bottom right of my screen but nothing happens. curse of the endfunc!!!!!!!!!!

Try hitting the + on the numpad, you set it as a hotkey.


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

When I run yours the script stays in the bottom right of my screen but nothing happens. curse of the endfunc!!!!!!!!!!

What about you first try to understand what the script does and then adapt it to your needs.

Everybody is guessing here without having any idea what it is you want to accomplish.

:think:


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

Share this post


Link to post
Share on other sites

YAY IT WORKS

Share this post


Link to post
Share on other sites

YAY IT WORKS

Yippee :think::(:)


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

Very misterious man ^^


--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Share this post


Link to post
Share on other sites

Very misterious man ^^

No just Wierd. :think:


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

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