Sign in to follow this  
Followers 0
Skoezzi

Help! Send doesn't work

7 posts in this topic

I got following code:

Send("#r")

WinWaitActive("Run")

Send("notepad.exe{Enter}")

WinWaitActive("Untitled -")

Send("Today's time/date is {F5}")

It works till he has to open notepad.exe. What do i do wrong?

Always when I try to send text to a inputfield, my script pauses.

Can anybody help me?

Share this post


Link to post
Share on other sites



Can anybody help me?

Wish I could help but your code works every time :P .

Share this post


Link to post
Share on other sites

Wish I could help but your code works every time :P .

I just can't paste text into a textbox. The rest seems to work only the Send("text") does not work for me. :lmao:

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Are the titles correct for your system ?

Try this example:

Opt('TrayIconDebug', 1)
Send("#r") 
WinWaitActive("Run")
Send("notepad.exe{Enter}")
Sleep(1000)
$title = WinGetTitle('')
WinWaitActive($title)
Send("Today's time/date is {F5}")
MsgBox(0, '', 'Title = ' & $title)

Edit: forget the & in code

Edited by MHz

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Are the titles correct for your system ?

Try this example:

Opt('TrayIconDebug', 1)
Send("#r") 
WinWaitActive("Run")
Send("notepad.exe{Enter}")
Sleep(1000)
$title = WinGetTitle('')
WinWaitActive($title)
Send("Today's time/date is {F5}")
MsgBox(0, '', 'Title = ' & $title)

Edit: forget the & in code

This code just opens a Run box. :P

What do you mean with : Are the titles correct for your system?

EDIT: It works! It were the titles indeed. Thanks mate!

Edited by Skoezzi

Share this post


Link to post
Share on other sites

This code just opens a Run box. :P

What do you mean with : Are the titles correct for your system?

As for titles, do they match correctly. You are running an English operating system ?

Perhaps the sleep was not long enough in last example.

Try your original code as set here and if it is stuck on a line then hover your mouse over the system tray icon to see which line is the problem.

Opt('TrayIconDebug', 1)
Send("#r") 
WinWaitActive("Run")
Send("notepad.exe{Enter}")
WinWaitActive("Untitled -")
Send("Today's time/date is {F5}")

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