wisem2540 Posted February 20, 2013 Posted February 20, 2013 I tried this with no luckThe autoitwindow tool lists the name as "ToolStrip1" There are 2 buttons up there. SAVE and REFRESH. I do not see a way to isolate these buttons.
wisem2540 Posted February 20, 2013 Author Posted February 20, 2013 Here is the window info.>>>> Control <<<<Class: WindowsForms10.window.8.app.0.2780b98Instance: 97ClassnameNN: WindowsForms10.window.8.app.0.2780b9897Name: toolStrip1Advanced (Class): [NAME:toolStrip1]ID: 2425770Text: toolStripPosition: 0, 24Size: 1600, 32ControlClick Coords: 87, 15Style: 0x56000000ExStyle: 0x00010000Handle: 0x002503AAI thought about using Mouseclick and coords, but wouldnt that mess up the the resolution ever changed?
jdelaney Posted February 20, 2013 Posted February 20, 2013 Check the 'ToolBar' tab of the window info tool, while focused on the toolstrip. If it is populated, you can send the controlid's to 'press' the control. This works for toolbars, not sure about tool strips IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
wisem2540 Posted February 20, 2013 Author Posted February 20, 2013 I even tried WINID....it didnt seem to give me anymore useful info than autoit
jdelaney Posted February 20, 2013 Posted February 20, 2013 well then...you can try the _GUICtrlToolbar functions, but doubt those will help as well. Looks like you are stuck with relative coords, or hotkeys, or mouse moves, and get the text of the tooltips per coordinate IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
wisem2540 Posted February 20, 2013 Author Posted February 20, 2013 How can I use the text of the tooltips?
wisem2540 Posted February 20, 2013 Author Posted February 20, 2013 Realative coords seem to work. Not as clean as I would like, but it does the job. Thank you
jdelaney Posted February 20, 2013 Posted February 20, 2013 (edited) try this, where you need to define the PID of the window (your application) into variable= $iCallersWinPID *called when the tooltip is visible Local $i = 0 $sToolTipText = "" While $sToolTipText = "" And $i < 1000 Local $aTipList = WinList("[CLASS:tooltips_class32]") ; See which belong to your app For $j = 1 To $aTipList[0][0] If WinGetProcess($aTipList[$j][1]) = $iCallersWinPID Then ; See which one is active Local $aRet = _GUIToolTip_GetCurrentTool($aTipList[$j][1]) ; If one is active then display it $sToolTipText = $aRet[8] If $sToolTipText <> "" Then ExitLoop EndIf Next Sleep(10) $i += 1 WEnd Edited February 20, 2013 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Werty Posted February 21, 2013 Posted February 21, 2013 You could try Yashieds "Control viewer", helped me a couple of times where the au3 infotool didnt work. Some guy's script + some other guy's script = my script!
wisem2540 Posted February 21, 2013 Author Posted February 21, 2013 That Tool is pretty amazing. I think it worked, I definitely see new info now. However, I havent actually put it into a script. Thank you SO much
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