Jump to content


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:


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.

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.

  • Similar Content

    • By drummaniac83
      I'm working on a login/privilege escalation feature that uses domain user/PW and got LDAP authentication figured out, but I was hoping to avoid just using a labview string control for the password entry b/c of security (VI Server, unencrypted, etc). I am trying to call CredUIPromptForWindowsCredentials  and launch the native windows login dialog.  It is a function in the System32\credui.dll but I can't get the parameters right.  I keep getting a return value of A0(160) and no dialog.  I think it is the PCREDUI_INFO type screwing it up. It needs:
      DWORD WINAPI CredUIPromptForWindowsCredentials(
      _In_opt_    PCREDUI_INFO pUiInfo,
      _In_        DWORD        dwAuthError,
      _Inout_     ULONG        *pulAuthPackage,
      _In_opt_    LPCVOID      pvInAuthBuffer,
      _In_        ULONG        ulInAuthBufferSize,
      _Out_       LPVOID       *ppvOutAuthBuffer,
      _Out_       ULONG        *pulOutAuthBufferSize,
      _Inout_opt_ BOOL         *pfSave,
      _In_        DWORD        dwFlags
      I've been told that Rolf would be able to solve this in 30 seconds.  Help me LAVA! You're my only hope!
  • Create New...

Important Information

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