Rapidnxit Posted February 6, 2015 Share Posted February 6, 2015 Good evening! What I want to do today is a script that hide or bypasses the Windows error message that appears when you remove a usb key currently in use. For precision this is the error: '> Anyone has any ideas? Thanks in advance! Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2015 Developers Share Posted February 6, 2015 Tried anything yourself ? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jdelaney Posted February 6, 2015 Share Posted February 6, 2015 WinClose Rapidnxit 1 IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Rapidnxit Posted February 6, 2015 Author Share Posted February 6, 2015 Tried anything yourself ? Jos I was looking at this script: '?do=embed' frameborder='0' data-embedContent>> However I have not found a way to modify it for my purpose. WinClose This seems a good idea. I've never used this function before so I have to make some tests. I could use it every second (for example) for close this windows(I have also to control what is the name of the window) Link to comment Share on other sites More sharing options...
Solution MikahS Posted February 6, 2015 Solution Share Posted February 6, 2015 (edited) Local $title = "Problem Ejecting USB Mass Storage Device" While 1 If WinExists("[TITLE:" & $title & "]") Then WinClose("[TITLE:" & $title & "]") EndIf WEnd something like this? Edited February 6, 2015 by MikahS Rapidnxit 1 Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Rapidnxit Posted February 6, 2015 Author Share Posted February 6, 2015 Local $title = "Problem Ejecting USB Mass Storage Device" While 1 If WinExists("[TITLE:" & $title & "]") Then WinClose("[TITLE:" & $title & "]") EndIf WEnd something like this? Oh yes I was thinking to do this with WinClose. Thank you so much for writing the code! I will try it! Link to comment Share on other sites More sharing options...
MikahS Posted February 6, 2015 Share Posted February 6, 2015 (edited) Thank you so much for writing the code! I will try it! I seem to be in an all to generous mood today, but it's my pleasure. Edited February 6, 2015 by MikahS Rapidnxit 1 Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
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