seadoggie01 Posted November 26, 2018 Posted November 26, 2018 (edited) I'm making a script to copy files off an SD card for me. I found some code on the forums and it works great, but only if I create a GUI to go with it. It's not a big deal, I just create a tiny window, show it, register my command, hide it, and never show it again. It just seems like a weird way to do things. I was hoping to just use a tray icon and leave GUIs out of it. So... Does GUIRegisterMsg() have to be used with a GUI? I mean, it's in the name, but nothing else I've found (documentation-wise) seems to suggest that. I've noticed that nobody uses it without one, but not many people use GUIRegisterMsg without any sort of GUI. If so, can I register it to the AutoIt hidden window and consume the event in my script, or am I better off with a tiny unused window? Edit: And of course, thank you for taking the time to read this and help a newbie out I've learned a lot from these forums and it's been less than a month. Also included code if anyone wants. SD card backup.au3 Edited November 26, 2018 by seadoggie01 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
FrancescoDiMuro Posted November 26, 2018 Posted November 26, 2018 (edited) @seadoggie01 You could always hide your GUI EDIT: It depends from which havent is registered. Show us the code Edited November 26, 2018 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
seadoggie01 Posted November 26, 2018 Author Posted November 26, 2018 (edited) @FrancescoDiMuro I did... (Edit: though not clearly) Quote ... show it, register my command, and never show it again ... I'm just wondering if the GUI is necessary Edited November 26, 2018 by seadoggie01 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
FrancescoDiMuro Posted November 26, 2018 Posted November 26, 2018 @seadoggie01 Post the code, so we can see if you can do it or not Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
seadoggie01 Posted November 26, 2018 Author Posted November 26, 2018 @FrancescoDiMuro Lol, was going to. I literally posted this thread seconds ago Thanks though! (I needed to take personal info out of code before posting) All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
Danyfirex Posted November 26, 2018 Posted November 26, 2018 Hello. Just create the GUI with GUICreate but dont call the show function "GUISetState(@SW_SHOW, $hGUI)" Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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