Hi there everyone,
I'm setting up a kiosk using the Opera browser. I've written a one-line MS script that launches it with the correct parameters (which allows me to run it in full-screen "kiosk mode"). Insofar as possible, I want to prevent a user from simply closing Opera with alt-F4 -- most of the other keyboard shortcuts are disabled by Opera when running in kiosk mode.
I've tried to extend my launch macro to run in a loop and detect specific keypresses that I want to suppress, but I don't really know if that's possible using MS.
If I can't stop the user from closing Opera, I was hoping I could get MS to monitor the status of that window and restart it if it were closed, but I couldn't get this to work either. Does anyone have any thoughts about if what I want to do is even possible?
Thanks,
Utz
How to automatically restart a program when it's closed?
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Create a looping macro which uses IfWindowOpen to see if the Opera window is open AND/OR looks to see if an instance of opera.exe exists in the process list. If not, restart your main macro, continue looping.
For an IsProcessRunning function see:
http://www.mjtnet.com/forum/viewtopic.php?t=1652
For an IsProcessRunning function see:
http://www.mjtnet.com/forum/viewtopic.php?t=1652
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?