Jump to content

SendKey.llb


Recommended Posts

I hadn't seen that vi, although there is this one as well http://zone.ni.com/devzone/cda/epd/p/id/3711

Neither vi demonstrates windows selection.

I have an API which doesn't expose passing in a particular value to a program. Instead their code does allow a prompt in which you can type the value.

To do this you need to first get the handle to the window, which is what that library helped with. I've found a couple of forum posts on the library, but the links are dead.

Link to comment

I found a couple posts on NI's forums that linked to a SendKey.llb attachment, but none of them worked (404'd). I reported the posts to the moderator.

To find a window, you can use the FindWindow() Windows API call. To set focus to a window, you can use the SetForegroundWindow() API call. Neither are very difficult to implement in a CLN. If the VI you're looking to target is a VI front panel that you can open a reference to, you can use the NativeWindow property:

post-13461-0-31748800-1332169863.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.