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.
How can i send Enter Key in .ahk scripts??
How can i send Enter Key in .ahk scripts??
Last edited by tank444 on 25 Jul 2017, 02:19, edited 1 time in total.
Re: How can i send Enter Key in .ahk scripts??
i have tried to read many . But i couldn't find any result.
Re: How can i send Enter Key in .ahk scripts??
Well, what part of The mysterious []'s you didn't understand?
This ...
This ...
... seems a quite obvious reason why your code shouldn't have worked.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.
Who is online
Users browsing this forum: No registered users and 294 guests