Arez Posted April 13, 2006 Share Posted April 13, 2006 (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 April 13, 2006 by Arez Link to comment Share on other sites More sharing options...
greenmachine Posted April 13, 2006 Share Posted April 13, 2006 (edited) There's an extra endfunc above the quitme function. Plus, without a getpos function, it won't work. Edited April 13, 2006 by greenmachine Link to comment Share on other sites More sharing options...
Arez Posted April 13, 2006 Author Share Posted April 13, 2006 (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 April 13, 2006 by Arez Link to comment Share on other sites More sharing options...
Daniel W. Posted April 13, 2006 Share Posted April 13, 2006 (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 Edited April 13, 2006 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 More sharing options...
Arez Posted April 13, 2006 Author Share Posted April 13, 2006 When I use your code and run script nothing happens. what else needs to be done? Link to comment Share on other sites More sharing options...
BigDod Posted April 13, 2006 Share Posted April 13, 2006 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 More sharing options...
Arez Posted April 13, 2006 Author Share Posted April 13, 2006 When I run yours the script stays in the bottom right of my screen but nothing happens. curse of the endfunc!!!!!!!!!! Link to comment Share on other sites More sharing options...
BigDod Posted April 13, 2006 Share Posted April 13, 2006 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 More sharing options...
Developers Jos Posted April 13, 2006 Developers Share Posted April 13, 2006 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. 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 More sharing options...
Arez Posted April 13, 2006 Author Share Posted April 13, 2006 YAY IT WORKS Link to comment Share on other sites More sharing options...
BigDod Posted April 13, 2006 Share Posted April 13, 2006 YAY IT WORKSYippee 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 More sharing options...
Daniel W. Posted April 13, 2006 Share Posted April 13, 2006 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 More sharing options...
BigDod Posted April 13, 2006 Share Posted April 13, 2006 Very misterious man ^^No just Wierd. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now