How do you use the windows User32.dll Library functions to read variables from other applications that are running

I am trying to read a text box from a programme running at the same time as my Labview application using calls to the Windows
User32.dll. I believe I need to find the window handle for the 'form' containing this text string and use this together with
various other defined input variables to access the sting.
I have no experience of using this 'Call Library Function Node', but have an understanding of the 'C' programming language. Does anyone have
example Labview code showing how this might be done.
Thanks

If you're trying to access information that's being displayed in the window of another application and that application has no ActiveX interface, then yes, Windows calls can be used. There's a very good example on calling DLLs that ship with LabVIEW. Open the Example Finder (Help->Find Examples) and switch to the Search tab. Enter "Call" in the search box and open the VI "Call DLL". Run the VI, select any of the examples, and click the "Open Example VI..." button. That shows you how to call a DLL.
Now, given that you have no experience in calling DLLs, have only an "understanding" of C (which to me means you have never written something like a DLL), and don't seem to know that much about what Windows functions you may need, you're going to find this route pretty difficult, especially since you have to deal with Windows API calls, which are not always that easy to do from LabVIEW.
Let me propose an alternate solution. Go over to http://www.autoitscript.com/autoit3/ and download AutoIt. This is an automation tool that allows you to automate just about anything you want. It has an ActiveX interface that you can call from LabVIEW. I've attached an example VI that shows you how to use it to get the value of a text box from one of the tabs in the computer "System Properties" control panel applet.
Attachments:
AutoIt Example (v7).vi ‏25 KB

Similar Messages

  • How do you use the bluetooth VIs with a Microsoft Bluetooth Driver?

    How do you use the LabVIEW Bluetooth VIs with the Microsoft Bluetooth driver?  I have been trying with no such luck.
       I want to use 2 computers to talk to each other using the bluetooth VIs.  Eventually, I think we would like a PDA/phone to talk to a custom built electronics board with Bluetooth.  But for now, I would just like 2 computers to talk and then eventually talk to our own device. 
    One is a desktop w/ the Belkin F8T012 USB adapter.  It installs fine with the Belkin driver (but I know I need to use the Microsoft Driver in order to use the LabVIEW VIs, but I have tried to get Windows to install its own but it says it is a BCM92045DG-Flash.  It says it cannot install it because it cannot find the necessary hardware.  I thought this USB adapter was on the approved Bluetooth devices list?  What else should I try?  Another Bluetooth USB adapter? 
    The other computer is a Dell Latitude 820.  It has a built in Bluetooth module which I believe is the Dell 350 Bluetooth Module.  On this machine I have been able to setup a COM port with a bluetooth device (blood glucose meter).  It came with a serial port interface which we modifed to go through a bluetooth interface.  It comes up as COM40. We have been able to communicate to it using their program originally designed to talk through a serial port.  But we would like to use the Bluetooth VIs in LabVIEW.  I can't even use the Discover VI.  Perhaps it is not using the Microsoft Driver as well.  Do I just uninstall the driver and then try to have Windows install its own driver?  Do you have any other recommendations?
    Thanks,
       Javi

    Hi Javi,
    This sounds like an issue with Windows and your specific Bluetooth devices.  As you mentioned, the LV Bluetooth VI's do require that the devices use the Windows drivers.  Take a look at this link for specific requirements for using Bluetooth with LabVIEW.  Also, you can take a look at our Developer Zone tutorial on designing Bluetooth applications a found here.  Regarding your device drivers, sometimes it is as easy as uninstalling the driver and then letting Windows discover the device and fine its own driver.  You could check out the Microsoft Knowledgebase for more information.  Thanks and have a great day!    
    Stephen S.
    National Instruments
    1 Test is worth 1000 expert opinions

  • HOW DO YOU CHANGE THE WINDOW SIZE OF EBUSINESS SUITE ON STARTUP

    HOW DO YOU CHANGE THE WINDOW SIZE OF EBUSINESS SUITE ON STARTUP
    How do you change the window size for Ebusiness Suite after you log in. Currently it displays at 100% of the screen. I want to set it smaller, at some %

    I don't know if there is a way to set this. Some user's may prefer different sizes of window, depending on their job duties. For example, we have 170 Systems document management integrated with purchasing and payables so users shrink the Oracle window to fill about 60% of the screen while 170 uses the remaining 40% to display the scanned document.

  • Help with Adobe.premiere.elements12. Please It would appear under the organizer tab that the photos are organised in the lowest folder in the folder structure within Windows Explorer.  How can I use the Windows Explorer structure to organise the photos wi

    Help with Adobe.premiere.elements12. Please
    It would appear under the organizer tab that the photos are organised in the lowest folder in the folder structure within Windows Explorer.  How can I use the Windows Explorer structure to organise the photos within Elements.

    In a situation such as yours, I tend to consolidate items into folders so I have folders of nice workable numbers of images, somewhere between 20 and 200 images. Now, whatever, once you've imported, do your moving within LR, not the OS! I will select all in a folder and drag into a folder a level or two or three above, and then delete the newly empty subfolders. I hope this helps a bit!
    Once you've reached just new Imports of camera output, you'll be flying along.

  • How do you get the Windows side on a Mac?

    How do you get the Windows side on a Mac?

    There is no Windows side on a Mac unless you install a version of Windows in a virtual machine or use Boot Camp to partition the drive and install Win 7 (if you are using a Macbook Pro that came with OS X Lion installed).
    If you use a virtual machine you can install just about any version of Windows that you have a retail disc of and a legal license key to go with it.

  • How do you use the Multiple Item Information dialog box ???

    How do you use the Multiple Item Information dialog box ???
    Where are the instructions on how the information in the Multiple Item Information dialog box equates to ...
    1. The way iTunes sorts tracks and albums
    2. The reason to select a leading check box
    3. Why there are Option selections (Yes /No) and leading check boxes.
    4. Why some changes remain in the track info, but do not "take effect" in iTunes (Part of a compilation is an example)
    Looked in Help, Support, went to the local Genius bar for an hour, even arrainged a call from apple support ...
    Thanks

    As Christopher says, it's a compilation. Different tracks are by different artists.
    Setting the *Album Artist* field to *Various Artists* and setting *Part of a compilation* to Yes should be all that is required. Depending on your *Group compilations when browsing* setting ( I recommend On ) either should suffice but I suggest doing both.
    Based on your commentary, I selected all the "O Brother" tracks, and checked the boxes for everything line that was blank in the Info and the Sort panes. Only exceptions were the album name and the disc number 1 of 1 and the artwork. I blanked and checked anything else.
    That's not what I meant. When you select multiple tracks, only those values which +are already common+ to all tracks are displayed. Typically these will include Artist, though not with compilation albums, Album Artist, Album, No. of Tracks, Genre plus various sort fields. A blank value may indicate that different tracks have different values or it may be that the value is blank for all tracks. For the drop down values on the Options tab the value shown may not reflect the information in every tag. If values you expect to be common, such as Album Artist or the Album title are not displayed you can simply type these in and click OK. This will often be enough to group the album.
    If you place a checkmark against the blank boxes and apply changes then you will clear those fields so you should only do this if that is the effect you want. Putting a checkmark next to an empty (representing different values) *Track No.* box, for example, will just clear the all the track numbers which is very rarely useful.
    Adding then removing extra text is for a specific problem where despite all common values being identical across the tracks of the album iTunes seems to "remember" that it should see two albums. A typical example would be when an album originally listed as *Album CD1* & *Album CD2* is given disc numbers X of Y and then has the Album name changed to Album. I've seen iTunes merge all but one track into the new album, but insist on listing one remaining track separately, despite both albums having the same title. In this case I've found overtyping the album title again has no effect whereas changing it to AlbumX and then back to Album does what I was trying to achieve in the first place.
    Don't forget that even properly organsied albums may still break up if you don't chose an album-friendly view. Sorting on the track name or track number columns can be useful in some circumstances but in general I revert to Album by Artist when browsing through my library.
    tt2

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • How do you use the ATV with the remote when you place it out of sight?

    I placed my ATV behind my tv, though it does not wake up and work with the remote control. How do you use the ATV in this type of situation? Will the Bluetooth keyboard work with it if it is behind the TV?
    Thanks.

    Yes bluetooth and wifi (remote app from your iPhone) are far more likely to work for you.

  • How do you reset the dlsmusic device or make it visible in order for other programs such as Sibelius or Finale be able to use it?to be visib

    How do you reset the dlsmusic device or make it visible in order for other programs such as Sibelius or Finale be able to use it?

    I figured out that if you remove the ~/Library/Preferences/com.apple.symbolichotkeys.plist file and restart, that restores the keyboard.
    Second question: Is there any way to make F4 (without holding fn) bring up Dashboard on Lion that doesn't require FunctionFlip? If it matters, I have a Time Machine backup of the symbolichotkeys.plist file from when I had the older keyboard.

  • How do you see the size of your library now in iTunes 11?

    On iTunes 10 when you were looking at your song list, at the bottom everyone has seen the small informative text that tells you how many days it would take to listen to the songs that you currently have on the screen. Where is that information now??
    How do you see the size of your library, or is there an option in iTunes 11 that will allow you to enable a way to see that text again at the bottom of your screen?

    In the menu bar, open "view", and click "show status bar"
    (Or the shortcut to toggle it is CTRL + / )

  • HT4623 I recently upgraded my i-phone 4s phone with the new iOS7. Since that all the applications that I have opened will not close. How do I close applications that are running in the background?

    I recently upgraded my i-phone 4s phone with the new iOS7. Since that all the applications that I have opened will not close. How do I close applications that are running in the background?

    Double click your Menu button and swipe up the open Apps to close them.......

  • My Laptop was stolen. On the Itunes, I had many songs saved from other sources, that are currently on my Itouch. Itunes wants me to Erase to sync, and I dont want to erase. I have no access to hose sons anymore. Is there a way to sync my Touch with my new

    My Laptop was stolen. On the Itunes, I had many songs saved from other sources, that are currently on my Itouch. Itunes wants me to Erase to sync, and I dont want to erase. I have no access to those songs anymore. Is there a way to sync my Touch with my New laptop withoit erasing my I touch?

    Syncing to a new iTunes library or computer will erase your iPod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your ipod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your device for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved:iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • How do you use the wdeploy tool in iPlanet Web Server with Windows 2000 Server?

    I found this on the knowledge base, but only described how to use this with Unix. Does this work with Windows? How do you set the IWS_SERVER_HOME environment variable as well? I don't see it in the file.
    Thanks

    Hi,
    This is pretty common scenario. The best way to achieve this is to split your servers using a collection and deploy a different client settings. You could target your collection using the OS or an OU in AD. There are many option there.
    You could also limit the access to the Server collection using Role Based Access to avoid any human "errors" on these collections. Users without rights to these collection just won't see them.
    https://technet.microsoft.com/en-us/library/gg682067.aspx?f=255&MSPPError=-2147217396
    http://blogs.technet.com/b/configmgrteam/archive/2011/09/23/introducing-role-based-administration-in-system-center-2012-configuration-manager.aspx
    Benoit Lecours | Blog: System Center Dudes

  • HT3176 How do you use the submit command?

    HOw do I use the Apple TV remote to submit after typing?

    You can use Runtime.exec to execute other processes from Java. You'll want to read this though:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How do you minimize the window when the top of the page is above screen height in ubuntu 12.04, so I can't see the tabs, let alone using the normal minimize

    Hi there, every now and then when i maximixe or minimize a window. The top of the window is above the screen so I am unable to see the tabs or anything above the address bar, is the a way to minimize using the menu, or a configuration file I can alter to stop it going above the top of the screen. It's a pain having to restart the system / firfox when you have a handfull of tabs open while researching and then having to remember which sites you had open to reopen them. thanks

    Use the F11 key or move the mouse pointer to the top of the screen.
    I am using Ubuntu 12.0.4 with various versions of Firefox installed, I think that works with them all.
    * [[Keyboard shortcuts - Perform common Firefox tasks quickly#w_miscellaneous]]_miscellaneous

Maybe you are looking for

  • Trouble with center spea

    Ok I have a SB000, when i run a speaker text, the center speaker has no sound, I moved the input from the left speaker and changed it with the center speaker port on back of subwoofer, sound came from speaker then but nothing came out for the left wh

  • Database View ---- Execution Time

    Dear experts, I hv to improve the performance of a report in which a view has been used. I hv debugged the program, when control goes to query that is fetching data from view, taking very long time. Can anything be done to improve the performance of

  • Can I use oracle9i to deploy the BC4J without using oracle9ias

    I found many components in oralce 9i similar to those,for instance apache server, in oralce9i applcation server I want to know what defference is between oralce 9i and oralce9i applcation server

  • Missing timezones and countries in iPhone

    The countries in Central Asia (Kazakhstan, Kirghizstan, Uzbekistan, ...) have their own time zone (UTC + 5), but it can't be found nor set in the iPhone. The list of countries also misses a bunch of countries in the 'Asia' continent. All the above me

  • Biztalk 2013 EDI error

    Hi, I received this error and I checked ST03 segment 3 and there was data which is the version 5010. any idea why I got this error? Error: 1 (Field level error) SegmentID: ST Position in TS: 1 Data Element ID: ST03_ImplementationConventionReference P