Kolo Posted June 4, 2010 Share Posted June 4, 2010 Hi. I'm new in scripts. I'm making auto-clicker and i need help. This is my code of script: While 1 WinActivate("xxx") MouseClick("left",165 , 420, 4, 10) sleep (5500) MouseClick("left",165 , 420, 3, 10) sleep (1200) MouseClick("left",220 , 560, 4, 10) sleep (700) MouseClick("left",145 , 465, 4, 10) sleep (10000) WEnd I want to add here some things: - script pause when I press "Pause Break" key, - script end work when I press "ESC" key, - script end work when images: E:\OFF\1.png E:\OFF\2.png E:\OFF\3.png E:\OFF\4.png appears. If you can edit my script it will be great. Sorry for my bad english, but I'm from Poland. Link to comment Share on other sites More sharing options...
jfcby Posted June 4, 2010 Share Posted June 4, 2010 This script will get you started but I'm not sure how to get the script to end when the images appear maybe someone else can help you with that. Check the help file out for HotKeySet to be able to modify the script the way you want.Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") While 1 WinActivate("xxx") MouseClick("left",165 , 420, 4, 10) sleep (5500) MouseClick("left",165 , 420, 3, 10) sleep (1200) MouseClick("left",220 , 560, 4, 10) sleep (700) MouseClick("left",145 , 465, 4, 10) sleep (10000) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFuncjfcby Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB **** Link to comment Share on other sites More sharing options...
Kolo Posted June 4, 2010 Author Share Posted June 4, 2010 Thanks for your help jfcby. Now I'm waiting for someone, who know how to do 3rd point. Link to comment Share on other sites More sharing options...
JohnOne Posted June 4, 2010 Share Posted June 4, 2010 Instead of waiting for someone to create a script for you, why dont you try doing it yourself? look around the forums for ImageSearch. AutoIt Absolute Beginners  Require a serial  Pause Script  Video Tutorials by Morthawt  ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Kolo Posted June 4, 2010 Author Share Posted June 4, 2010 JohnOne, I'm trying to do it work. Sometimes I refresh this page and I look that maybe somebody posted the answer. Link to comment Share on other sites More sharing options...
JohnOne Posted June 4, 2010 Share Posted June 4, 2010 Fine, then you are sorted because Ive just posted your answer, but I'l do it again incase you missed it, "ImageSearch" AutoIt Absolute Beginners  Require a serial  Pause Script  Video Tutorials by Morthawt  ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Kolo Posted June 4, 2010 Author Share Posted June 4, 2010 Yes, I found something about that, but when image test.bmp appears, it don't exit. Why? Link to comment Share on other sites More sharing options...
jfcby Posted June 4, 2010 Share Posted June 4, 2010 (edited) 1. Download Image Search form here because it took me a while to find it: ImageSearch2. As JohnOne asked do a forum search for "ImageSearch" and read thru those post to find answers and examples for what you want to do.jfcby Edited June 4, 2010 by jfcby Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB **** Link to comment Share on other sites More sharing options...
Kolo Posted June 4, 2010 Author Share Posted June 4, 2010 I tried much time to do it work, but I think it can't read my images. In attachment I send you files of my script. After passing test, I want to replace test.bmp with pictures of another pokemon. I want to it do:Here click picture next to text "Good Rod" or click on text "Good Rod"Wait 5-6 secondsHere find picture fight.bmp and click on itWait 0.7 secondHere find picture slam.bmp and click on itWait 10.5 secondsAnd again click next to Good Rodetc.ImageSearchDemo worked good, but when I replaced it with my screenshot, it automatically went to the end.Hotkeys for pause and exit. And exit when image xxx.bmp or yyy.bmp appears:Not alder, I mean elder.If someone can check it, please do it.I got a question. Is that script hard to do as second script?Kolofishing.rar 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