MikeJB Posted July 18, 2014 Share Posted July 18, 2014 Having wasted many hours trying to solve this problem without success, could any one help with the following scenario: Autoit is controlling the user interface of Autoplay to prevent any data entry errors on the completed media diak. When a burn is about to be performed and a media disk is not loaded in the drive, Autoplay generates an internal message (window name is "Insert Media") that shows two buttons "Load Media" (Button1) or "Cancel" (Button2). Despite all my attempts to read these buttons direct from this window and return the button info into autoit so I can continue to control autoit, do not work (guigetmsg(), guigetmsg(1) for example). I can use controlclick to OK the message then Create a new gui box and run this but doing this creates another issue if the user still does not load the media so I want to act directly on the Autoplay error message box and read whcih button the user has selected. Any help or guidance would be greatly appreciated. Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 18, 2014 Share Posted July 18, 2014 You can watch window messages from other processes but this isn't trivial. It may even require injecting code into the target process but I'm not 100% on that one. Link to comment Share on other sites More sharing options...
FaridAgl Posted July 18, 2014 Share Posted July 18, 2014 I'm not sure, but search for windows hook. http://faridaghili.ir 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