Hi, I want to create an exe file for simple keyboard shortcuts, which I can add to my taskbar, so that the sjortcut gets run on pressing the icon of the exe.
I had created exe for Snipping (Windows + Shift + S) earlier, and it works great, but I have forgotten what steps I had followed. I have deleted the ahk file, only the exe remains.
I want to create a similar exe for a shortcut combo of Windows + PrtSc to save full screenshot automatically.
Can someone please guide me about the ideal code for this case.
My final aim is for Win + PrtSc to be pressed on clicking the exe.
I know the code would probably be somethink like
:: <#PrtSc
?????
return
but I have no experience in coding/computers.
If you could also explain in which line should the keyboard combo be written, and what should come in the 2nd line, I would be obliged to understand the process.
Kind regards.
Creating exe file for simple keyboard shortcuts using SciTE4AutoHotkey Topic is solved
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: Creating exe file for simple keyboard shortcuts using SciTE4AutoHotkey
if all you want is clicking the EXE to take a screenshot you need to create a script with two lines
Then go to Tools and compile in scite and you have your script in exe.
Code: Select all
Send {PrintScreen}
ExitApp
Re: Creating exe file for simple keyboard shortcuts using SciTE4AutoHotkey
Hi, thanks for the reply.
I could compile the script to get an exe file, but pressing that only does the function of pressing PrtSc button alone, i.e. copying screenshot to the clipboard, and doesn't do the function of Win+ PrtSc, which saves the screenshot to the photos section. Any way to edit the script to automatically do Win+ PrtSc action?
I could compile the script to get an exe file, but pressing that only does the function of pressing PrtSc button alone, i.e. copying screenshot to the clipboard, and doesn't do the function of Win+ PrtSc, which saves the screenshot to the photos section. Any way to edit the script to automatically do Win+ PrtSc action?
Re: Creating exe file for simple keyboard shortcuts using SciTE4AutoHotkey Topic is solved
Code: Select all
Send #{PrintScreen}
Re: Creating exe file for simple keyboard shortcuts using SciTE4AutoHotkey
It worked. Thank you
Who is online
Users browsing this forum: Joey5, Marium0505, Rohwedder, RussF, zerox and 303 guests