i want to prevent windows messages like "the disk isn't ready, please insert the disk into the drive"
can we stop like this type of messages with reg edit through ahk ?
Thank u
can i prevent windows alert or warning messages?
Started by
kumar
, Sep 10 2008 12:53 PM
3 replies to this topic
#1
-
Posted 10 September 2008 - 12:53 PM
I don't know if you can stop them from showing but you can use a timer to check for them and send keys accordingly. Here is an example:
#SingleInstance Force #Persistent SetKeyDelay, -1 ; send keys instantly SetTimer, Check, 200 Return Check: If WinActive("Confirm File Delete") || WinActive("Confirm Multiple File Delete") || WinActive("Unsafe Removal of Device") || WinActive("Confirm Folder Delete") || WinActive("WARNING","Are you sure you want to delete the selected Cookie(s) ?") Send, {Enter} Return
#2
-
Posted 10 September 2008 - 01:20 PM
"Anything worth doing is worth doing slowly." - Mae West
Maybe this can help also: <!-- m -->http://www.autohotke... ... 323#123323<!-- m -->
#3
-
Posted 11 September 2008 - 04:17 AM
From my testing these message boxes don't send HSHELL_WINDOWACTIVATED or HSHELL_WINDOWCREATED on creation, but if you change the focus to another window and back to the message box it will then send HSHELL_WINDOWACTIVATED.
It is possible to catch them on creation using SetWinEventHook. Not all message boxes send EVENT_SYSTEM_ALERT but we can use EVENT_SYSTEM_FOREGROUND instead.
Edited to add: This may be of interest.
It is possible to catch them on creation using SetWinEventHook. Not all message boxes send EVENT_SYSTEM_ALERT but we can use EVENT_SYSTEM_FOREGROUND instead.
Edited to add: This may be of interest.
#4
-
Posted 11 September 2008 - 04:48 PM
"Anything worth doing is worth doing slowly." - Mae West