Jump to content

send() function doesn't work


Recommended Posts

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
Link to comment
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

 

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

Edited by FireStorm001
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...