Run a program

Share your favorite FastKeys commands
Post Reply
nfrnovo
Posts: 2
Joined: Feb 17th, ’14, 18:14

Post by nfrnovo » Feb 17th, ’14, 18:19

Hello

Can you start a program, then type tekst in 2 diffent fields og press enter, via a script i fastkeys?
thinman
Posts: 31
Joined: May 17th, ’13, 15:44

Post by thinman » Feb 17th, ’14, 19:38

Sure, I do this all the time. Put something like this in the command field (Type=Command):

Code: Select all

Run, MyProgram ;change to your program path
Send, {Tab 3} ;sends tab key 3 times
Send, Text ;sends text
Send, {Tab} ;sends tab key
Send, {Enter} ;sends enter key
First check how many times Tab key needs to be pressed to get field focus.
nfrnovo
Posts: 2
Joined: Feb 17th, ’14, 18:14

Post by nfrnovo » Feb 17th, ’14, 20:02

Thanks.

Can you send a wait comand?
thinman
Posts: 31
Joined: May 17th, ’13, 15:44

Post by thinman » Feb 17th, ’14, 20:47

yes, you can add a sleep:

Code: Select all

Sleep, 1000 ;miliseconds
User avatar
Marko
Posts: 1730
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Feb 18th, ’14, 22:27

You can also put all sends in one line, same example as above:

Code: Select all

Run, MyProgram
Send, {Tab 3}Text{Tab}{1000}{Enter}
{1000} to wait 1 second
Post Reply