windows 8 - Run a .ahk on stratup
2014-07
PHPst
In Windows 7, I used to copy .ahk files to start-up folder to make them to start automatically. But this does not work in Windows 8. Is there any solution?
Answers
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
Related Question
windows 7 - How can I run a script, and then emulate ^V with Auto Hot Key (AHK)?
prosseek
I have a script (batch file) to store some inside clipboard, and I need to automatize running and pasting action with auto hot key.
I tried the following code, but the code doesn't work with cmd.exe. I expect a function something like 'Paste clipboard'.
+F2:: Run "SCRIPT.bat" Send {Control down}V{Control up} Return
Related Answers
Bavi_H
In a Command Prompt, Ctrl+V doesn't paste the clipboard.
One way you can paste the clipboard in a Command Prompt is Alt+Space, E, P. So you might try
Send !{Space}ep
To paste to other Windows programs as well, you can check if the current window is a Command Prompt or not as follows
IfWinActive, ahk_class ConsoleWindowClass
{
Send !{Space}ep
}
Else
{
Send ^v
}