Send command

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
jaquot
Posts: 8
Joined: 05 Nov 2013, 04:46
Location: France

Send command

05 Nov 2013, 04:59

Hello, I'm a newby and I'm trying to write a script.

I have problems with the "send" command.

Example:

#w::
Send 12345{enter}

#x::
Send 67890{enter}

when execute, windows_w return 12345 AND 67890

I don't understand why, somebody can help me ? Thank you in advance.
User avatar
Learning one
Posts: 173
Joined: 04 Oct 2013, 13:59
Location: Croatia
Contact:

Re: Send command

05 Nov 2013, 05:38

Welcome to the forum jaquot!

You forgot to put returncommand, which serves to finish the hotkey;

Code: Select all

#w::
Send 12345{enter}
return

#x::
Send 67890{enter}
return
However, if a hotkey needs to execute only a single line (like in your case), that line can be listed to the right of the double-colon;

Code: Select all

#w::Send 12345{enter}
#x::Send 67890{enter}
Please ask questions in Ask For Help forum next time. ;)
User avatar
jaquot
Posts: 8
Joined: 05 Nov 2013, 04:46
Location: France

Re: Send command

05 Nov 2013, 05:46

Thank you very much even I posted on the bad forum, thank you more.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: FanaticGuru, filipemb and 290 guests