Jump to content

Recommended Posts

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 !

  Quote

 

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
Posted (edited)
  On 1/14/2014 at 2:37 AM, dedekpredek said:

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

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
  • Recently Browsing   0 members

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