-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By muchki
i am more or less happy with my code
only the X button does not exit
what can i do?
I made an 'exit' button and it works
pressing Esc works
just the X button not working
here's my code:
URLTrimmer 1.5.2 12 21 2019.txt
-
By IamKJ
So I have a lot of different functions in the little program I'm making. Most of them use the Do statement, such as finding images, clicking buttons, etc.
The question I have is how would I be able to both
1) Create a hotkey to pause whatever I am doing at the moment. If I have to put something into every function in the program, I don't mind.
2) Create a hotkey to exit whatever I am doing and stop all loops or commands and bring back the main GUI?
-
By fopetesl
For some reason my personal notes were omitted when posting.
Still a Newb it seems! So have attached my slightly modified example.
If I comment out Exit button references script will not Exit even with windows 'X' button icon.
If I'm losing GUI/Tab focus I cannot see where is the difference with(out) definition.
GUI_No_Exit.au3
-
By AndreyS
Tell me why when I shut down Windows, OnAutoItExitRegister function is activated twice?
This is an example of the reference
#include <MsgBoxConstants.au3> OnAutoItExitRegister("MyTestFunc") OnAutoItExitRegister("MyTestFunc2") Sleep(1000) Func MyTestFunc() MsgBox($MB_SYSTEMMODAL, "Exit Results 1", 'Exit Message from MyTestFunc()') EndFunc ;==>MyTestFunc Func MyTestFunc2() MsgBox($MB_SYSTEMMODAL, "Exit Results 2", 'Exit Message from MyTestFunc()') EndFunc ;==>MyTestFunc2
-
By fosil
Hi all,
I'm working on a relatively complex automation program and I need it to call a specific function when it is closed by a user. Ive resorted to "OnAutoItExitRegister" as i believe that's the only option available.
This command works perfectly fine in a small scale test application I wrote, but once implemented in the final program that's much larger and divided over many files in many directories it no longer works. I don't get any error messages.
My question is has anyone encountered an issue where implementation of this command in a large scale program gave them trouble? Does it matter where "OnAutoItExitRegister" is called and where the function is located? Currently they are both places in the main file that runs the whole program but it still doesn't work.
Any help is appreciated
-