Jump to content

End Program Doesn't Work


Arez
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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]

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


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

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.


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

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:

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

YAY IT WORKS

Yippee :think::(:)


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

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]

Link to comment
Share on other sites

Very misterious man ^^

No just Wierd. :think:


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

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