Sign in to follow this  
Followers 0
Sonic94168

how to : monitor Run button of win32 application

4 posts in this topic

Hi,

I am a newbie to AutoIt and trying to monitor a win32 application [App_A] developped by a no longer exist company. When user click on Run button of App_A, we plan to add some more file process logic for it.

Is it possible to monitor App_A Run button events? If it's true, then we could add logic when user click on it. Or, we can only check App_A status box periodically to make sure Run button has been pushed...

Any kindly feedback or comment will greatly appreciated.

Thanks.

Sonic

Share this post


Link to post
Share on other sites



Sonic94168,

If you have another of determining that the "Run" button has been pressed then I would suggest you go down that route. Trying to hook into the other app would not be easy, even if it were possible to do so which I am not at all sure would be the case.

Have you used the Window Info tool on the app GUI to see if the status box you mention is easily identifiable and so accessible to AutoIt? :huh:

M23

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

One method I believe could work is monitoring for the window to be active

If Primary mouse clicked, find where it was clicked in some fashion.

One fashion could be coordinates relative to window, but I believe you could

determine the exact control the mouse is over using by Yashied.

1 person likes this

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Thank you M23 and JohnOne. I will study and dig into your suggestions.

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