08-07-2019 11:29 AM
wiebe@CARYA wrote:
Make the VI FP (or FPs) visible, and then call Application.Bring To Front. Bring to front will not automatically unminimize minimized front panels. Nor should it.
Attached VI will (most annoyingly) force itself upon you every 2 seconds.
It pops up above at least acrobat reader, notepad++ and edge, at least most of the times. Note that if you're working in an application and LV pops up, a click in the current application might immediately send it back.
Doesn't work on my version of Win10.
mcduff
08-07-2019 11:34 AM
@mcduff wrote:
wiebe@CARYA wrote:
Make the VI FP (or FPs) visible, and then call Application.Bring To Front. Bring to front will not automatically unminimize minimized front panels. Nor should it.
Attached VI will (most annoyingly) force itself upon you every 2 seconds.
It pops up above at least acrobat reader, notepad++ and edge, at least most of the times. Note that if you're working in an application and LV pops up, a click in the current application might immediately send it back.
Doesn't work on my version of Win10.
mcduff
Same here, Win10.
08-08-2019 07:38 AM
Weird. I'm also on Windows 10...
08-08-2019 10:22 AM
If I am working on a VI, and a window pops up steal the focus, I would delete/uninstall that thing. It just looks like a virus. Normal application can't do that. The MS recommended action is flashing the taskbar icon instead of pop up a window.
08-08-2019 10:24 AM
Normal applications CAN and DO this all the time. Please look at the video I posted above.
08-08-2019 10:30 AM
Your video shows a user telling the Skype window to open. That is a user requested action. This is very different than Skype deciding, on its own, to always remain in front of all other windows.
08-08-2019 10:33 AM
On the program I am creating, the user is requesting an action by pressing a button on the Windows quick bar (bottom right, where Skype is).
08-08-2019 10:37 AM
"Come to the front when a user clicks an icon in the notification area" is a different request than "Come to the front when the program decides it wants to".
Try this thread for what you're actually trying to do:
(As an aside, I can definitely think of use cases for "emergency popups" that come to the front of everything, for example a supervisory control PC monitoring a bunch of machines, one of which needs immediate human intervention, but the potential for abuse is definitely very high!)
08-13-2019 01:59 AM - edited 08-13-2019 02:00 AM
Thanks for the link. However, the come to front feature does not work with most applications (the aim is for the program to be able to open over other software, and even games). However, the system tray icon works perfectly for an exit button. Is there any way to send the balloon notifications programmatically (not having to press the button)?
08-26-2019 02:09 PM
Small side track, but I noticed today that VIPM will steal focus from whatever you're doing when it finishes a package installation. I'd guess it's written in LabVIEW, so it seems to be possible to do what you're doing *somehow*.
I also found this thread (might have been posted earlier, sorry if it's a double post):
https://forums.ni.com/t5/LabVIEW/Stealing-focus/td-p/2045332