Jump to content

Recommended Posts

Posted (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 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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Posted (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 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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Posted

@FrancescoDiMuro Lol, was going to. I literally posted this thread seconds ago :D 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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Posted

Hello. Just create the GUI with GUICreate but dont call the show function "GUISetState(@SW_SHOW, $hGUI)"

 

Saludos

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...