AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send command

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
krid



Joined: 14 Nov 2009
Posts: 1

PostPosted: Sat Nov 14, 2009 9:54 pm    Post subject: Send command Reply with quote

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
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 1994
Location: GERMANY

PostPosted: Sat Nov 14, 2009 10:02 pm    Post subject: Re: Send command Reply with quote

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) Wink
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 1158
Location: San Diego, California

PostPosted: Sun Nov 15, 2009 12:02 am    Post subject: Re: Send command Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group