rudi Posted December 3, 2018 Share Posted December 3, 2018 (edited) Hello, Starting with This posting I can watch for a certain button with a (known button text) of some 3rd party EXE's GUI. (All contolls have Dynamic Control-IDs that will change) But this seems wo work only, when the TAB "Betrieb" is the "currently active TAB" within this gui. So now I'd like to get the control ID of that TAB and then to *DETECT*, if the required TAB "Betrieb" is the one currently active, so that I can controlclick() it, if it's not. The Autoit Window Info Tool crosshair always returns "WindowsForms10.SysTabControl32.app.0.1ca0192_r12_ad11" for all 4 tabs, no matter which one is the "Topmost Tab". And the UDF I refereneced on top doesn't find any control with the name "Betrieb". Any suggestions appreciated, Rudi. Edited December 3, 2018 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Xandy Posted December 3, 2018 Share Posted December 3, 2018 I've never tried this task myself, but this should get you started: https://stackoverflow.com/questions/38196048/how-to-get-the-name-of-the-current-tab-in-autoit-scite-script-editor mLipok 1 Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
rudi Posted February 6, 2019 Author Share Posted February 6, 2019 (edited) Hi again, still struggling with this task, have tried with _GUICtrlTab_FindTab() and _GUICtrlTab_SetCurFocus, but this seems to be the wrong approach? The situation: There is an external application with 4 tabs, the first tab is named "Betrieb". On this tab there is a button, that can either be labeled "Jobserver beenden" or "Jobserver starten". What I need is to activate the tab labeled "Betrieb". If this one is the active one, the posting I've referenced in my first posting this thread is working fine. The screenshot show, that the Control IDs are dynamic, mostly different when the progam is terminated and started new, at least every time, we receive an updated, new version. Edited February 6, 2019 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE! 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