Jump to content
Sign in to follow this  
Guest mastavern

send("text #")

Recommended Posts

Guest mastavern

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

Share this post


Link to post
Share on other sites
boogieoompa

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

Share this post


Link to post
Share on other sites
Guest mastavern

yes. that helped wonders. thank you for your help.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×