einkork Posted July 6, 2012 Share Posted July 6, 2012 (edited) Here is my script , i know it repeats forever read the bottom for summary. MsgBox(0, "Yaptım Oldu !", "Ein Kork (2580154) tarafından hazırlanmıştır. Program 5 saniye içinde çalışmaya başlayacaktır. İstediğiniz zaman ESC ye basarak durdurabilirsiniz. )") Sleep(5000) HotKeySet("{F10}", "MyExit") $i = 0 While $i < 10 Send("{TAB 14}") Send("{G}") Send("{TAB}") Send("{ENTER}") Send("{ESC}") Send("^{TAB}") WEnd Func MyExit() Exit EndFunc ;==>MyExit I want to repeat this script forever but , it sends tab 14 times , then send g , then tab again. Here is the problem. I want it to do this X times and goes on. and repeats Send("{ENTER}") Send("{ESC}") would be good if we can ask x with a input box. Also i want to ask the letter (which is G in the script) to enter Summary: send tab send a letter (ask user again) (send tab - send esc) x times (will ask x to user with an input box) sent tab and repeat all script forever. but inputs will only be at the start Edited July 6, 2012 by einkork Link to comment Share on other sites More sharing options...
JohnOne Posted July 6, 2012 Share Posted July 6, 2012 Send("{ENTER}")Send("{ESC}") 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...
einkork Posted July 6, 2012 Author Share Posted July 6, 2012 (edited) Send("{ENTER}")Send("{ESC}")yea i want it to repeat 40 times. and script will go on againEDIT : CHECK OUT 5TH POST OF THE TOPIC Edited July 6, 2012 by einkork Link to comment Share on other sites More sharing options...
johnmcloud Posted July 6, 2012 Share Posted July 6, 2012 (edited) For $i = 1 To 40 ;Script here, example: ConsoleWrite($i & @CRLF) Next Edited July 6, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
einkork Posted July 6, 2012 Author Share Posted July 6, 2012 Here i made what i wanted Now how to repeat this script forever ? also i want to ask that G (letter) and 50 (number) to user with an input box. MsgBox(0, "Yaptım Oldu !", "Ein Kork (2580154) tarafından hazırlanmıştır. Program 5 saniye içinde çalışmaya başlayacaktır. İstediğiniz zaman ESC ye basarak durdurabilirsiniz. )") Sleep(5000) HotKeySet("{F10}", "MyExit") Send("{TAB 14}") Send("{G}") Send("{TAB}") While 1 For $i = 1 To 50 Send("{ENTER}") Sleep (500) Send("{ESC}") Next Send("^{TAB}") WEnd Func MyExit() Exit EndFunc ;==>MyExit Link to comment Share on other sites More sharing options...
johnmcloud Posted July 6, 2012 Share Posted July 6, 2012 (edited) While 1 Sleep (100) ;sleeps forever.... WEndhttp://www.autoitscript.com/autoit3/docs/intro/lang_loops.htmDid you read the manual or just make casual question? While-WEnd, For-Next is the basic of autoit.... Edited July 6, 2012 by johnmcloud Link to comment Share on other sites More sharing options...
UEZ Posted July 6, 2012 Share Posted July 6, 2012 (edited) Strange user name for a turkish speaking user because it sounds more German... What is the program name you are trying to automate? Br, UEZ Edited July 6, 2012 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Mechaflash Posted July 6, 2012 Share Posted July 6, 2012 Strange user name for a turkish speaking user because it sounds more German...What is the program name you are trying to automate?Br,UEZYou know it's for a game... who would want to make any other app spam keystrokes like that 0.o. Blue_Drache 1 Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Blue_Drache Posted July 6, 2012 Share Posted July 6, 2012 I agree, considering his previous topic was about a game. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache 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