Jump to content

Pop up menu automatic click(or Automatic 'Enter' command


Recommended Posts

I am not sure 100% what you are trying to do (why show the dialog if a button is to be programmatically pressed regardless?).

Having said that you could try checking the Key Focus property of the Ok Button on your dialog and if True then fire an event \ do something that is the same as a User pressing the Ok button.

Link to comment

What jgcode said -- unless the popup is being generated by something other than LabVIEW (or other code you have control over)?

You may be onto something there, on second look the popup does say Message From webpage - of course I have no idea, as its unclear at this stage I just assumed LabVIEW code. ph34r.gif

Link to comment

Hi all,

Those pop up menus are not generated from my labview application. I am loading a webpage into Labview for testing some buttons. I can call the button's call back function using labview+Javascript method. Since the test is to be carried out fully automatically I need to press Ok to go ahead. rolleyes.gif

I can change my webpage parameters and do everything thumbup1.gif what I want but I dont know how to click this 'Ok' because the function is something like this:frusty.gif

if(!confirm( "Are you sure")) return;

And I dont know how to bypass it.

Thanks, worshippy.gif

Sharon

Link to comment

If it's your dialogue. Why not just bypass it completely or put a switch in to disable dialogues (maybe log it to a file instead).

If it's not your dialogue (i.e in another application) then there are some suggestions here.

Hi Shaun,

Thank you for the link. I am finishing my project..!!! thumbup1.gif

Regards,

Sharon

If it's your dialogue. Why not just bypass it completely or put a switch in to disable dialogues (maybe log it to a file instead).

If it's not your dialogue (i.e in another application) then there are some suggestions here.

Hi Shaun,

Thank you for the link. I am finishing my project..!!! thumbup1.gif

Regards,

Sharon

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.