Sign in to follow this  
Followers 0
FireStorm001

send() function doesn't work

3 posts in this topic

#1 ·  Posted (edited)

Hello

i have problem with send() function

it doesn't work only the first line in script (Hello World) then the script exit !

 

HotKeySet("{v}","start")
HotKeySet("{e}","_exit")
HotKeySet("{p}", "Pause")

$a = "Hello World"
$S= "this is my first program"

While 1
sleep(120)
    WEnd

func start()
    While 1
    send($a)
    send("{ENTER}")
    send($S)
WEnd
EndFunc


func _exit()
    exit
EndFunc

Func Pause()
    while 1
    WEnd
EndFunc

Edited by FireStorm001

Share this post


Link to post
Share on other sites



Hi FireStorm001,

problem is in your hotkey for exit. When the script sends letter "e" in word "Hello" it ends script.

Letter "p" for pause....just the same

1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi FireStorm001,

problem is in your hotkey for exit. When the script sends letter "e" in word "Hello" it ends script.

Letter "p" for pause....just the same

 

oh thanks you so much , i thought its only copy and paste agin thanks you :thumbsup:

Edited by FireStorm001

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  
Followers 0