Computer Science Canada Want that Chrome Gone? |
Author: | HRI [ Fri May 06, 2011 2:59 pm ] | ||
Post subject: | Want that Chrome Gone? | ||
This is just something I wrote up quickly for my own use (which is why it's tailored to Google Chrome). What it does is hide the Google Chrome window, as well as the console window. Once hidden, you can look for a text file called "check.txt" in the folder with the application. Delete that to bring Google Chrome back and end the program. Note: Unless you change this code, you must have whichever window of Google Chrome you want closed on a new tab page, because this finds it via the window title. Like I said before, I didn't put much time at all into it, but it still has its uses. Also, please note that this is Windows-oriented.
Pretty self-explanatory with the comments. All of the stuff you've probably never seen before is Windows API stuff. There's a good starting tutorial on the Windows API at winprog.org/tutorial. |
Author: | Insectoid [ Fri May 06, 2011 3:02 pm ] |
Post subject: | RE:Want that Chrome Gone? |
what exactly is the purpose of this? You say you created it for your own use, which implies that you're going to use it, which in turn implies that there is some reason to have a function like this. I don't see the purpose (hide a window until a text file is deleted?) so would you mind enlightening me? |
Author: | Zren [ Fri May 06, 2011 7:49 pm ] |
Post subject: | RE:Want that Chrome Gone? |
It's probably a Get back to work! reminder. Methinks someone has a problem keeping on task. |
Author: | ProgrammingFun [ Sat May 07, 2011 8:24 am ] |
Post subject: | RE:Want that Chrome Gone? |
http://download.cnet.com/Mr-Hyde/3000-2094_4-10521351.html |
Author: | mirhagk [ Sat May 07, 2011 1:21 pm ] |
Post subject: | RE:Want that Chrome Gone? |
I used to have an awesome program that split up all your windows into two sections, and only one section would appear on the screen, or in the taskbar at a time, so you can switch between school/work related ones and your just for fun sites. |
Author: | Zren [ Sat May 07, 2011 7:15 pm ] |
Post subject: | RE:Want that Chrome Gone? |
@Mirhagk: Dexpotp? It's a window's equivalent for virtual desktops. Eg: http://imgur.com/xg951l&9AHnN&6rqqC |
Author: | HRI [ Sat May 07, 2011 7:45 pm ] |
Post subject: | RE:Want that Chrome Gone? |
Actually, I know there is good software to have multiple desktops and whatnot, but being a programmer I like making things like this for fun. The actual point was actually not for that purpose exactly, but to make it look like I was working on my summative when I was home sick >.> To be honest, I couldn't find the handle again in a separate program if the first ended with the browser hidden. |
Author: | train850 [ Tue Oct 11, 2011 9:27 am ] |
Post subject: | Re: RE:Want that Chrome Gone? |
Insectoid @ May 6th 2011, 2:02 pm wrote: what exactly is the purpose of this? You say you created it for your own use, which implies that you're going to use it, which in turn implies that there is some reason to have a function like this. I don't see the purpose (hide a window until a text file is deleted?) so would you mind enlightening me?
Seems like a safeguard against peepers at work. It would be nice to not have the boss interrupt your two girls and a cup while your out for coffee. |