webmonkdev Posted April 8, 2021 Posted April 8, 2021 I'm looking for a way to define a library of automated tasks that will each have their own hotkey. I will want this "library" loaded and ready to go without me having to do anything but press the hotkey (no manual running a script file). Is there a way to define a script file that loads every time Windows boots and is cached and ready to use?
crackdonalds Posted April 8, 2021 Posted April 8, 2021 you could make 1 script and define hotkeys in that script... each hotkey will start your specified script.. compile them to exe to make it easier. then just put your main script(exe) in your startup folder at C:\Users\xxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup or just combine all scripts into 1.... that would be even better. to leave the script running in the background you can use something like this: While 1 Sleep(1000) WEnd
pseakins Posted April 8, 2021 Posted April 8, 2021 (edited) I have this in my hotkey script to hide its appearance and you also need a hotkey to terminate the script. If @Compiled = 0 Then AutoItSetOption("TrayIconHide", 0) _Singleton("some randomsequence") ; prevent multiple copies http://en.wikipedia.org/wiki/Singleton_pattern HotKeySet("^!{F5}", "TerminateHotkeys") ; This one of the few CTRL-ALT F key that works under Windows 7 Edited April 8, 2021 by pseakins typo, added singleton Phil Seakins
webmonkdev Posted April 21, 2021 Author Posted April 21, 2021 Thank you both. You got me where I need to go. Much appreciated.
Nine Posted April 21, 2021 Posted April 21, 2021 @webmonkdev If you wish to try this UDF. It can simplify the management of multiple HotKeys while allowing you to have long lasting functions that will not interfere between each other : Of course it is working with only one keyboard... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now