UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
PREV 1 2 3 4 5 NEXT Page 4 of 5
Just found the answer here myself. The search button is your friend. 🙂
How could I detect that there are two controls and that I should use the second one without looking at the entire tree structure rst?
How did you nd out?
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 1/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
Simply add a plus sign (+) at the beginning of the le 'UIASpy_Menu.au3' for the hotkey de nitions.
So the keys F1-F7 are again available for other applications.
P
I just downloaded it today.
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 2/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
i just went through the codes and i realise that you did not use third party control functions like controlgettext().
Active Members I tried it and it was able to detect controls that autoit info is not able to such as power builder data window.
0
23 posts
FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
MVPs
407
2,648 posts
S
Here in our company we are using a terminal program called "Mocha TN5250 for Windows 7/8/10" from https://mochasoft.dk/ . Currently
terminal text using ControlSend() - which works 95%. It is somehow "sensible"; e. g. it won't work if - for whatever reason - window lost foc
I'm not able grab any information with AutoIt Window Info Tool and even your tool can't see this control/part of the GUI.
Active Members
4 Do you have ever heard about "invisible" controls? And do you have a clue how to address such controls?
598 posts
Edited October 22, 2019 by supersonic
https://www.ibm.com/support/knowledgecenter/en/SSEQ5Y_6.0.0/com.ibm.pcomm.doc/books/html/emulator_programming07.htm
MVPs
407
2,648 posts
FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
S
Yes, I am in control of the installation/system but Mocha ActiveX is not (and will not be) available, unfortunately. The ActiveX control is also
grab text from running sessions initiated by the standard Mocha client. And as far as I understand EHLLAPI it also isn't able to grab session
can build my own terminal application... Well, that's somehow beyond the goal 😊
Active Members So, I will stick with Win*() and Control*() functions - that's good enough for now...
4
598 posts But... If anyone else have a clue why there could be a hidden/invisible control and how to grab text from it... I would be very pleased...
LarsJ Posted October 23, 2019
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 3/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
The Cool Code Company
I think these terminals/consoles are simply windows and not controls. The text in the windows is written through the window's device con
with GDI functions like DrawText. That's why they can't be automated. There are a few posts on the same topic here.
I have never seen a terminal emulator that has no option to grab to text on clipboard. Whats the macro language of mocha o ering?
MVPs
I remember some open source terminal emulator is around on github but do not remember details.
407
2,648 posts
FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
MVPs
407
2,648 posts
S @junkew - Thank you for motivating me to code my own terminal emulation. 😊 Here in our company Mocha terminal _must_ be used and
unfortunately there is no way around it. I can live with that. Of course, Mocha can grab text (by keyboard, mouse and menue, macro [= di
all users]). My aim was to automate text grabbing (and any further processing) by a litte AutoIt script (that actually fully works for a couple
Active Members
now). All I wish is to make text grabbing more reliable.
4
598 posts
MVPs
1,118
1,822 posts File Explorer, ROT objects, UI Automation, Windows Message Monitor
Compiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB code
Shell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image Lists
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 4/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
Graphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selections
Control related: Hot-Track Enabled Toolbar Menu, Simulating a modeless Choose Color Dialog, Colors and fonts in TreeViews
ListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental search
ListView controls: Virtual ListViews, Editing cells, Data display functions
S
Edited October 24, 2019 by supersonic
Active Members
4
598 posts
Doing 1 and 2 should be 100% reliable to make sure you are in terminal area.
Just post simplespy output based on that we can help you probably a little further at least there is a mainwindow child of desktop.
FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Control is not detectable so just calculate position based on position info of main info and show that highlighted area and activate it with a
Example (long time not played with an as400 or other IBM mainframe ;-))
setPosTN5250 with x, y will calculate position and with mouseclick cursor will be positioned
getTN5250Text will just return the text in the black area
getTN5250hwnd will determine hwnd of rst windows10.* with text toolstrip1, ....
selectBlockTN5250 will select a rectangle of text (will not copy it thats just another send ctrl c)
_UIA_DrawRect draws a rectangle 😂
Script
ex
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 5/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <Array.au3>
;~ test with mocha tn5250
;~ www.pub400.com
global $g_baseLeft
global $g_baseRight
global $g_baseTop
global $g_baseBottom
global $g_TN5250Window
Example()
func example()
$g_TN5250Window=getTN5250hwnd()
WinActivate($g_TN5250Window,"")
Local $aPos = WinGetPos($g_TN5250Window)
;~ $aPos[0] = X position
;~ $aPos[1] = Y position
;~ $aPos[2] = Width
;~ $aPos[3] = Height
;~ Left,right,top,bottom
_UIA_DrawRect($aPos[0],$aPos[0]+$aPos[2],$aPos[1],$aPos[1]+$aPos[3])
L t it th fi t l
FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
In addition, there are a few minor updates that are documented below.
MVPs
A small but signi cant update is that in Sample code to nd the application top window, $TreeScope_Descendants is replaced by
1,118 $TreeScope_Children. The application top window is always a direct child of the Desktop. See the treeview in UIASpy. Therefore, this updat
1,822 posts made. This is a major performance update when the application window is not at the top of the Z-order of windows.
UIA_MouseClick() in UIA_Functions.au3 is extended with right-click functionality. Sample code can be generated through Sample code |
snippets ...
In UIASpy.ini, through the DisplayScale key, you can specify the display scale you want when UIASpy starts up.
Still not implemented update: Integrating $PropertyConditionFlags_MatchSubstring (Windows 10 1809) into Sample code.
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 6/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
Lars
Active Members
643 Follow the link to see my signature's stu .
2,184 posts
argumentum
MVPs
File Explorer, ROT objects, UI Automation, Windows Message Monitor
Compiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB code
1,118
Shell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image Lists
1,822 posts
Graphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selections
Control related: Hot-Track Enabled Toolbar Menu, Simulating a modeless Choose Color Dialog, Colors and fonts in TreeViews
ListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental search
ListView controls: Virtual ListViews, Editing cells, Data display functions
GO TO TOPIC LISTING
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 7/8
4/24/2021 UIASpy - UI Automation Spy Tool - Page 4 - AutoIt Example Scripts - AutoIt Forums
Theme Privacy Policy Contact Us
Powered by Invision Community
https://www.autoitscript.com/forum/topic/196833-uiaspy-ui-automation-spy-tool/page/4/ 8/8