Guest mastavern Posted August 7, 2005 Posted August 7, 2005 I am working on a script that after sending or writeing text, it will send a changeing variable. so if i wanted to send something like: Send("+i_+love_+you") but at the end of it i want it to place a number that increses every time the script runs through again. so the out put would be: I_Love_You1 I_Love_You2 I_Love_You3 I_Love_You4 I_Love_You5 etc... till a set number, or keeps going on forever till the script is stoped... any help is greatly apprecieated. MastaVern MastaVern@cox.net
boogieoompa Posted August 7, 2005 Posted August 7, 2005 You can use a loop or an if Statement. Here is an example using the if statment. Everytime the user presses r you get a new occurance. Hope this helps $count=1 HotKeySet("r", "FunSappy") While 1 Sleep(100) WEnd Func FunSappy() If $count<10 then;this is assuming 10 is the max number of times send("I_love_you" & $count) $count = $count+1 Endif EndFunc
Guest mastavern Posted August 7, 2005 Posted August 7, 2005 yes. that helped wonders. thank you for your help.
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