01-27-2017 09:45 AM
Our client having Scada based exe application (Non LabVIEW exe.).This application gives popup for saving pdf report file,So they need to write name of report every time.Now, they want to do automation in this. Whenever this application gives pop up for report name it should be automatically name by external labview application.They don't have source code of this application.
How it is possible using ActiveX?How to create ActiveX object for this Scada based exe? or any other ways to do this things are most welcomes .
01-27-2017 10:44 AM
Using .NET may be an option assuming you can acquire a window handle for the application. However I don't know how you would detect when the popup window is open. This seems like more trouble than it's worth.
01-28-2017 02:13 PM
This does not sound like a "LabVIEW" question, but rather "How can I use LabVIEW to Solve my Problem?". In this case (as I understand it), the problem is detecting when another routine asks for input, and providing that input programmatically. [You say "automatically named by external LabVIEW application", but it is unclear why it needs to be LabVIEW].
There are a number of routines for Windows systems to "automate" common tasks, like detecting pop-up windows, "filling in the blanks", etc. A student of mine, a number of years ago, used something called "AutoIT" to do this. I don't have direct experience with this routine, but he was able to use this to tie several routines from disparate vendors (one was actually some LabVIEW code he was developing) to do something like you are describing.
Bob Schor
01-30-2017 04:50 AM
I am asking for LabVIEW because I have good hands on LabVIEW.Can you suggest good open source automated tool for creating this task
01-30-2017 02:19 PM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-02-2017 12:58 PM
While AutoIt is not open source, it is freeware. I'm not sure why you would require open source, but you can use it without any costs.
It definitely is a more direct way to attempt to do what you want to do. It can still fail but if AutoIt can't do it, trying to do it in LabVIEW is completely wasted time, and if AutoIt can do it it will be almost certainly much easier than trying to do it in LabVIEW, even if you have to learn AutoIt first.
02-02-2017 03:24 PM
I don't think I'd try to do this in LabVIEW, it could probably be done but would be a huge pile of work.
I'd do it with AutoHotkey. I'm pretty sure it would do it with very little coding. It's a scripting language and can detect a very lage number of events on a taget machine. Check it out.