Jump to content

LabView and AutoIT? - (Moved)


 Share

Recommended Posts

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 <<<<
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

 

 

Link to comment
Share on other sites

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 by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...