Jump to content
This is not recommended for shared computers
Sign in anonymously
Don't add me to the active users list
We're offering banner ads on our site from just $5!
1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.
Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!
Posted 03 May 2013 - 07:17 AM
h = FindWindow(NULL,"firefox");
The above code should make the window for mozilla firefox get hidden,but nothing happens.Can anybody give me an ideea why?
Posted 03 May 2013 - 07:23 AM
Posted 03 May 2013 - 07:25 AM
yes,it doesn't find firefox.I tried firefox.exe,Firefox all possible names,but it doesn't find it.Why?
Posted 03 May 2013 - 07:30 AM
FindWindow uses GetWindowText to get the window name for comparison. It is unlikely that your firefox window only has the word "firefox" in it's title...
Posted 03 May 2013 - 07:34 AM
damn.I always check msdn for functions,but this time I didn't,and it bit my... Thanks a lot!
Posted 07 May 2013 - 12:17 AM
It's better to give the class name rather than windows caption. Just use spy++ or a similar tool to get it.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC