Calicfer Posted November 10, 2007 Share Posted November 10, 2007 (edited) Hey there, I'm trying to create a script to help me out a little, also to better help me understand the world of scripting... I'm kinda new. This is what I've done so far, basically, I'm trying to get a loop within a loop. I thought it was all right, but when I go to open the script, it closes right away, any help would be nice. thank you very much! AutoItSetOption("SendKeyDelay", "10") HotKeySet("{F1}", "Terminate") HotKeySet("{HOME}", "S") Func S() Dim $tot, $sm For $tot = 0 to 40 Send("{'}Enter desired text here{Enter}", 0) Sleep(500) For $sm = 0 to 25 Send("{'}Hello{Enter}", 0) Sleep(200) Send("{DOWN}{Enter}", 0) Sleep(30) Send("{Enter}", 0) Sleep(30) Next Send("{'}Enter desired text here{Enter}", 0) Sleep(500) Send("{'}Enter desired text here{Enter}", 0) Sleep(500) Send("{'}Enter desired text here{Enter}", 0) Sleep(500) Next EndFunc Func Terminate() Exit 0 EndFunc thanks again, Cal Edited November 10, 2007 by Calicfer Link to comment Share on other sites More sharing options...
Nahuel Posted November 10, 2007 Share Posted November 10, 2007 Well.. you are not calling the functions you declared Func.. EndFunc declares a function, it doesn't call it. Add: While 1 Sleep(100) Wend after the hotkeysets. Link to comment Share on other sites More sharing options...
Calicfer Posted November 10, 2007 Author Share Posted November 10, 2007 Wow, I completely missed that... Thank you so much! Cal. 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