| View previous topic :: View next topic |
| Author |
Message |
krid
Joined: 14 Nov 2009 Posts: 1
|
Posted: Sat Nov 14, 2009 9:54 pm Post subject: Send command |
|
|
Hello All,
New to AHK. I've tried 'everything, but the simple snippet does not work.
That is, Notepad is launched, but 'Something' is not written in Notepad:
| Code: |
p::Run notepd.exe
Send Something
exit
|
However, when I do:
| Code: |
p::Run notepd.exe
q::
Send Something
exit
|
It works fine.
What am I doing wrong?
Thanks for any help.
Krid |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 1994 Location: GERMANY
|
Posted: Sat Nov 14, 2009 10:02 pm Post subject: Re: Send command |
|
|
| krid wrote: | | Code: | p::Run notepd.exe
Send Something
exit |
|
Correct would be: | Code: | p::
Run notepd.exe
Send Something
exit |
| Code: | p::Run Notepad.exe ;one line hotkey
c:: ;subroutine hotkey
Run calc.exe
Return |
_________________ AutoHotFile - ToolTip(n,text,title,options) |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 1158 Location: San Diego, California
|
Posted: Sun Nov 15, 2009 12:02 am Post subject: Re: Send command |
|
|
You get a better result with proper spelling, and there might be the need for a delay: | Code: | p::
Run notepad.exe
sleep, 2000
Send Something
exit |
|
|
| Back to top |
|
 |
|