Game Development Community

Disabling Alt Tab

by Tim Heldna · in Torque Game Engine · 04/19/2005 (5:31 am) · 25 replies

Just wondering if anyone knows how to disable the alt tab function so once your in the game, alt tab has no effect, and the only way to exit is to use the quit game button on your GUI.
If it helps i'm using vc6 for compiling.
Page «Previous 1 2
#1
04/20/2005 (12:26 am)
Alt-tab is implemented at the OS level, and is tricky to disable. Different versions of Windows require different tricks... Have you tried googling for it? This isn't really a Torque specific task (although getting from a general example/howto a working implementation in Torque is something that would certainly be appropriate to ask questions about here).
#2
04/20/2005 (12:49 am)
I think functions that disable the ALT+TAB feature can be quite bad for the experience. Often when you start a game, the Firewall pops up and asks if the game should be allowed to connect to the net. And usually the game stays in front of the popup, yet can't connect because the firewall won't let it do so. Untill you press the button. But if you can't ALT+TAB to the firewall question there is quite dificult to continue with the game.
#3
04/20/2005 (5:19 am)
Hey guys thanks for the feedback.
After reading what Martin Askestad
said in the above post i'm inclined to believe disabling alt tab may not be such a good idea.
That said, i found a forum post here www.garagegames.com/mg/forums/result.thread.php?qt=26530 that has solved my problem.
What it does is tell you how to have Torque run in a single window rather then two.
Why would i want to do this?
Well there are many reasons for this (i won't bore you with them all) but one example that comes to mind is this. I put a resource in allowing avi video playback in Torque. It worked fine except for one very annoying problem. After the video had finished playing Torque would switch back to the smaller window (very annoying) which meant you had to manually switch back to the main program window. I'm sure you could see how this would get up anyones nerve. Anyhow this, and some other problems i was having, has all been fixed now thanks to that forum thread i mentioned above.

Thanks for your feedback, one more problem checked of the list :)
#4
04/20/2005 (5:29 am)
@Tim
I have been using the setting /subsystem:windows and am still having a problem with the video playback. Did you do anything else besides this to fix the problem?
#5
05/09/2005 (8:05 am)
@ Desmond

Yes i made some slight modifications to get this to work. I can't remember exactly what i did so feel free to download my altered files.

I have an intro video that plays on start up and once it's finished playing it doesn't change windows or minimise or do anything weird, it just goes to the mainMenuGui nice and smoothly.

Enjoy...

P.S. Sorry about my late response.

guiAviBitmapCtrl.zip
#6
05/09/2005 (9:46 am)
Link is broken
#7
05/09/2005 (11:28 am)
My bad, i have nowhere to host the file so i'm using my friends yahoo briefcase account. Only problem being cos it's a free account the files are tagged as private and only i can download them.

Click Here to download the file direct from yahoo briefcase.
#8
05/10/2005 (7:17 am)
Still cannot access either link. For the second link it says:

"There was a problem accessing your account.

Please try back again in 10 minutes.
You might want to try logging out and logging back in again.
We apologise for the inconvenience.
Thank you. "

and has said that since I checked it yesterday.
#9
05/10/2005 (9:54 am)
Ok it's working now, try again.
#10
05/10/2005 (10:01 am)
Hey Tim

The link says "There was a problem accessing your account."
If you want, send me the file and I'll host it for you.

jackie@cyberbasin.com or jackie@igysoft.com
#11
05/11/2005 (4:19 am)
Thanks Jackie, i'm emailing it now!
#12
05/11/2005 (5:55 am)
OK - It's up.

www.igysoft.com/gg/guiavibitmapctrl.zip the zip version.

www.igysoft.com/gg/guiavibitmapctrl.rar the rar version.

Let me know if anyone has any problems.
#13
05/11/2005 (7:26 am)
Thanks Tim and Jackie. I was able to download it fine now.
#14
05/11/2005 (5:36 pm)
@Tim

I patched in your version of the avi control and it works great. The one thing I have not figured out is that when the movie is completed moviestop isnt called, you have to hit a key or click the mouse to get it the movie to close.

I am taking a look at the DirectShow implementation now to see if I can figure it out. Did you happen to already do this?
#15
05/12/2005 (1:53 am)
@ Todd

No haven't worked this out yet. Let me and everyone else know if you work something out.
#16
05/12/2005 (7:41 am)
Will do, I'm really close to a working implementation at this point.
#17
05/12/2005 (9:39 am)
@Tim
I got this working and am going to try to put together a resource this weekend for it. Mind if I include your code in the resource?
#18
05/12/2005 (9:45 am)
@Todd

Can you let me know when you get this done, if you don't mind. If you are going to put this up as a resource then I will drop them off our server or if you want me to update them on our site then just send me the files and I will get them updated.

Thanks
#19
05/12/2005 (9:50 am)
@Jackie

Sure, I will post here when I get the resource submitted and approved. I'll probably just zip up the files and upload them with the resource, that way you can get em off your server.
#20
05/12/2005 (10:09 am)
Cool...cool....

Thanks Todd!
Page «Previous 1 2