Skip to main content
gamedev.net
🔒 Locked

i

Started by aeleneski Jul 6, 2004 at 1:40 PM 6 replies 750+ views
Original Post
aeleneski
aeleneski
i [Edited by - aeleneski on April 24, 2006 11:11:42 PM]
Alpha_ProgDes
Alpha_ProgDes
time for someone to learn the Win32 API....

no but seriously that's a good idea. i need that for myself.
i guess i'll be googling on your behalf for such a product.
Beginner in Game Development?  Read here. And read here.  
fisheyel83l
fisheyel83l
I've written a "pop-up" blocker that maintained a list of title-bar texts and monitored the taskbar. If one of em showed up, BAM!

So that's possible at least. Control-alt-delete to find out the identity Starfraft uses and if a window exists with that title for more than X minutes, post a close message to it. Easy to write in C# if you're familiar with P/Invoke.

Starcraft may not handle close messages like you want it to though. That's the only problem I can see. I don't know how to "force" a program to exit nicely.
Tolerance is a drug. Sycophancy is a disease.
tHiSiSbOb
tHiSiSbOb
Quote:
Original post by fisheyel83l
I've written a "pop-up" blocker that maintained a list of title-bar texts and monitored the taskbar. If one of em showed up, BAM!

So that's possible at least. Control-alt-delete to find out the identity Starfraft uses and if a window exists with that title for more than X minutes, post a close message to it. Easy to write in C# if you're familiar with P/Invoke.

Starcraft may not handle close messages like you want it to though. That's the only problem I can see. I don't know how to "force" a program to exit nicely.


Perhaps he could write a program that will run Starcraft and keep track of how long it goes...
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
Xtremehobo
Xtremehobo
A bit off topic, but Win32 can do quite a bit :)

Last year, I wrote a program in C that ran in the background and whenever I hit "ctrl+alt+shit", all the Internet Explorer windows dissapeared (from the screen AND from the taskbar), then if you hit it again, they all re-appeared.

I used this at school so I could browse the web when we're suppose to be working, then when someone comes, I hide all the IE windowsa nd Im left with a word document open or something :)
pixelwrench.com | [email="matt[nospam]@pixelwrench[nospam]com"]email[/email] lethalhamster: gamedev keeps taking my money, but im too lazy to not let them
tHiSiSbOb
tHiSiSbOb
Quote:
Original post by Xtremehobo
A bit off topic, but Win32 can do quite a bit :)

Last year, I wrote a program in C that ran in the background and whenever I hit "ctrl+alt+shit", all the Internet Explorer windows dissapeared (from the screen AND from the taskbar), then if you hit it again, they all re-appeared.

I used this at school so I could browse the web when we're suppose to be working, then when someone comes, I hide all the IE windowsa nd Im left with a word document open or something :)


You are cool.
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
andy-pandy
andy-pandy
Quote:
Original post by Xtremehobo
whenever I hit "ctrl+alt+shit"...


The shit key? Would that be the Windows key?
Zul
Zul
Quote:
Original post by andy-pandy
Quote:
Original post by Xtremehobo
whenever I hit "ctrl+alt+shit"...


The shit key? Would that be the Windows key?


Roofles. he built his own keyboard I guess [wink]

But seriously, you could write such a program with just a few win32 API calls.
oh hai

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.