How can i send Enter Key in .ahk scripts??

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tank444
Posts: 3
Joined: 25 Jul 2017, 01:47

How can i send Enter Key in .ahk scripts??

25 Jul 2017, 02:08

Hello, i'm new to writing codes, can please anyone help me.
I'm trying to make a .ahk that can open a file in Hide mode and press Enter key twice after that.
What i did so far is :

Run, proj.reg [, WorkingDir, Hide]

I don't know if that's the right way to write it, but my proj.reg opens in hide mode successfully
but after that i want to press Enter key twice
i tried:

Run, proj.reg [, WorkingDir, Hide]
Send, {Enter 2}

and

Run, proj.reg [, WorkingDir, Hide]
Return
Send, {Enter 2}

and many other ways. Please if somebody can help me do it, i will really appreciate it.
Last edited by tank444 on 25 Jul 2017, 02:19, edited 1 time in total.
tank444
Posts: 3
Joined: 25 Jul 2017, 01:47

Re: How can i send Enter Key in .ahk scripts??

25 Jul 2017, 22:42

i have tried to read many . But i couldn't find any result.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: How can i send Enter Key in .ahk scripts??

26 Jul 2017, 03:12

Well, what part of The mysterious []'s you didn't understand?
This ...
Throughout the documentation, you will see these two symbols ([ and ]) surrounding code in the yellow syntax box at the top of almost all pages. Anything inside of these brackets are OPTIONAL. Meaning the stuff inside can be left out if you don't need them. When writing your code, it is very important to NOT type the []'s in your code.
... seems a quite obvious reason why your code shouldn't have worked.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 294 guests