07-05-2017 05:29 AM
Hello everybody,
I'm trying to use a modal VI to "hide" background activities (other programs opening and running, windows mooving...). The user can't have access to others programs, so I blocked the keyboard and mouse. The problem is that he still can have access to the Windows 7 start button. I tried hide_windows_taskbar.llb, I tried to hide the taskbar directly from Windows, but I think that every focus changes makes the button to appear (at the VI launching, he is hidden).
Is there somebody who had this kind of problems ?
Regards,
Solved! Go to Solution.
07-05-2017 07:29 AM
if you really wanted, you could create a VI that:
1) detects the size of the main monitor
2) sizes itself to the size of the main monitor (full screen) - this will cover the windows toolbar
3) runs on the main monitor - in case there is more than 1
4) (optional) runs transparently - or at 50% transparency).
5) runs without the menu bar or title bar so you know you have the exact size correct.
6) runs modally but closes when required.
The behaviour of this VI is such that the only way to take focus away from it is to use Alt+Ctrl+Del (and you can't defeat that key combination with any S/W lockout.)
There should never be any real reason to lockup a PC with your program anyway though.
Or are you trying to write a virus with LabVIEW?
07-05-2017 07:37 AM
but still my autohiding taskbar comes up when i move the mouse to bottom of screen,
so i guess that is not the way
07-05-2017 07:50 AM
You didn't do what I suggested (I've added 50 to both dimensions to ensure it oversizes by 50 pixels)
maximise will always allow you to drag the mouse onto the pixels for the toolbar. You need to cover them with your VI's FP!
Try this method instead.
07-05-2017 07:58 AM - edited 07-05-2017 08:01 AM
just testet again, removed the window maximize and replaced as you suggested,
still my taskbar comes up
ps: i only added 50 to "right" and "bottom"
07-05-2017 08:05 AM
1) if it's not set to autohide, do you get the same behaviour?
2) If you want to you could always try and get around it by detecting the event Mouse leaves (the window) and then action something to regain focus on your code so the user can't use the mouse to find the toolbar.
3) if you are pressing the Windows key, you are probably stuffed as it is probably bypassing you in the OS anyway - change the keyboard for one without if you can.
07-05-2017 08:22 AM
hehe .. i'm not OP... was jsut curious
no-autohiding == taskbar is in front all the time
note, that i am running on win10, perhaps it behaves differently
07-05-2017 08:26 AM
I finally used the TaskBar Eliminator (a Windows application). It was the only and easy way to hide the Start button and the taskbar at the same time.
Thanks all
07-05-2017 08:30 AM
Lol, noo it's not a virus ! But people on my production line love to use production PC to do other things than work 😉
07-05-2017 08:33 AM
ghost postings to answer to?