Sign in to follow this  
Followers 0
MikeJB

Read User Selection from application message box

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0