Hi Guys
After searching this site and some experimenting, i have come up with code that does what i want, ie closing the are you sure msg box in the form of yes and no after expressing the desire to close my program, its really annoying as i do this 20-30 times a day.
WinWait("[CLASS:#32770]", "&Yes")
ControlClick("[CLASS:#32770]", "&Yes", "Button1")
however as it stands i can only use it once before script disappears from my task bar and i have to run the script again from autoit editor.
Could someone help me keep the script alive and give me some hints on how i could perhaps use a hotkey press to activate and deactivate the script.
perhaps control ca for on and esc for off.
As i say the code itself works flawlessly its stopping starting and maintaining readiness i am struggling with.
Any and all help really appreciated.