ssnake Posted June 13, 2013 Share Posted June 13, 2013 Hi guys, I need some help with this problem: I need to get the window handle, which I can only differ from other windows combining the CLASS and TITLE. In other words, using only TITLE or CLASS will not necessarily point to the windows that I want. The problem with WinGetHandle it that I can only combine the CLASS/TITLE with TEXT (which is not available to me). Ps: The combination of TITLE and ID can be useful to me too. Link to comment Share on other sites More sharing options...
Solution FireFox Posted June 13, 2013 Solution Share Posted June 13, 2013 (edited) Hi,The problem with WinGetHandle it that I can only combine the CLASS/TITLE with TEXT (which is not available to me).Really? Local $hWnd = WinGetHandle("[TITLE:Entrada do documento;CLASS:SAP_FRONTEND_SESSION]") ConsoleWrite($hWnd & @CrLf)Br, FireFox. Edited June 13, 2013 by FireFox ssnake 1 Link to comment Share on other sites More sharing options...
ssnake Posted June 13, 2013 Author Share Posted June 13, 2013 Hi, Really? Local $hWnd = WinGetHandle("[TITLE:Entrada do documento;CLASS:SAP_FRONTEND_SESSION]") ConsoleWrite($hWnd & @CrLf) Br, FireFox. Fucker (I cant test it now, but if you say it will work, it will work) PM and I'll send you a pack of beer lol Link to comment Share on other sites More sharing options...
FireFox Posted June 13, 2013 Share Posted June 13, 2013 PM and I'll send you a pack of beer lolI know some people here who would really appreciate to help you in the future Link to comment Share on other sites More sharing options...
ssnake Posted June 13, 2013 Author Share Posted June 13, 2013 I know some people here who would really appreciate to help you in the future Let me ask just one more (interesting) thing: By this method, can I use other parameters like CLASS, TITLE, TEXT? This may be a silly question, but I really dont know where to find this info, since I cant find it in the documentation. Again, thanks. Link to comment Share on other sites More sharing options...
jdelaney Posted June 13, 2013 Share Posted June 13, 2013 helpfile: Window Titles and Text (Advanced) or, got to wingethandle, and there is a link to the above wingethandle ssnake 1 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. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 13, 2013 Moderators Share Posted June 13, 2013 ssnake,Scroll down in this page and you will see all the possibilites for GUIs. Controls are slight different as you can see here. M23 ssnake 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...
ssnake Posted June 13, 2013 Author Share Posted June 13, 2013 Woa thank you guys! 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