fikri Posted August 5, 2018 Posted August 5, 2018 Hello to all. I would like to make automation for LabView compiled project exe. Actually I just need to get values (results) from labview textboxes. But since labview not using MS componenents, is that possible. I spend lot of time by googling and tried some scripts but without success. Is this possible at all? Also, I cannot read text properties window by any spy tool? here is what I have from AutoIt Info: Class: LVDChild Position: -8, -8 Size: 1456, 876 Style: 0x17CF0000 ExStyle: 0x00040300 Handle: 0x001F041C >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 1256, 267 Cursor ID: 0 Color: 0xFAFAFA >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<<
Moderators Melba23 Posted August 5, 2018 Moderators Posted August 5, 2018 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team 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
junkew Posted August 6, 2018 Posted August 6, 2018 Read faq 31 try all spytools that are mentioned there. If you can navigate with keys to right textbox sending copy paste could be an approach. This document tells that labview does not adhere much to assistive technologies. https://www.google.com/url?sa=t&source=web&rct=j&url=http://www.ni.com/pdf/en/labview-508-accessibility-requirements-compliance-matrix.pdf&ved=2ahUKEwiT0qO26dfcAhUpsFQKHdCzB4MQFjAAegQIAhAB&usg=AOvVaw1w-qGhRJoIaXlE1k6Op88t FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
fikri Posted August 6, 2018 Author Posted August 6, 2018 Hello, thank you for answer. Actually this should be simple project. Copy values from textboxes and save them to SQL Server. I tried all spy tools I founded on the web. Still cannot read anything from textbox. I can use keys arrows and tab to create between boxes. Tonight I will try all from your list. Thanks
Earthshine Posted August 6, 2018 Posted August 6, 2018 Oh it’ll be anything but simple. One thing I’ve learned in life is never underestimate the job. Read FAQ 31 My resources are limited. You must ask the right questions
fikri Posted August 6, 2018 Author Posted August 6, 2018 au3inf part of AutoIT simplespy in the zip jabsimplespy in examples section of the AutoIt forum control viewer ranorex.. Tried all. Nothing... Just downloading TestComplete but I am not optimist. labview doesn't use MS controls and that is probably problem? Another idea is to capture screen and then OCR, but is is complicated... How to know exactly possition of textbox? And what if I change resolution? I thought this will be simple, but I failed on first step BR
Earthshine Posted August 6, 2018 Posted August 6, 2018 (edited) TestComplete might well be able too. it can do an awful lot. I used it, but it was getting expensive and I can do the same with C# and AutoIt so I just do that now. Edited August 6, 2018 by Earthshine My resources are limited. You must ask the right questions
junkew Posted August 7, 2018 Posted August 7, 2018 You probably have stable positions x y of your textbox so either click on x y location to activate textbox or do it based on percentage distance x y relative from width height of the windows. When its activated send ctrl a which will select all text in textbox and the send ctrl c to get it on clipboard. Then use clipboard functions to get it into variable. Earthshine 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
fikri Posted August 7, 2018 Author Posted August 7, 2018 Yea. That can be good idea. Well, I must repeat learning autoit script in the meantime,... Last my project with autoit was before maybe 5 years. If you have some samples that will save me lot of time. Thank you for idea.
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