Sonic94168 Posted November 20, 2012 Share Posted November 20, 2012 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 20, 2012 Moderators Share Posted November 20, 2012 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? M23 Sonic94168 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JohnOne Posted November 20, 2012 Share Posted November 20, 2012 One method I believe could work is monitoring for the window to be activeIf Primary mouse clicked, find where it was clicked in some fashion.One fashion could be coordinates relative to window, but I believe you coulddetermine the exact control the mouse is over using by Yashied. Sonic94168 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Sonic94168 Posted November 22, 2012 Author Share Posted November 22, 2012 Thank you M23 and JohnOne. I will study and dig into your suggestions. 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