Jump to content
Sign in to follow this  

ScreenCapture in Vista

Recommended Posts



I've got a little problem.

I've wroted a script to take a screenshot while I'm in game, but it doesn't take screenshot of the game in Vista.

It makes a screenshot of the desktop with the game resolution.

Here's a snippet:

#include <ScreenCapture.au3>

HotKeySet("{TAB}", "ScreenShot")

While 1

Func ScreenShot()
    If WinActive("Counter-Strike") Then _ScreenCapture_Capture("test" & @HOUR & @MIN & @SEC & ".jpg")

As u can see this game is the Counter-Strike. It works perfectly on XP.

I tried to overwrite the ScreenCapture.au3 file changing the '$hWnd = _WinAPI_GetDesktopWindow()' method to '$hWnd = WinGetHandle("Counter-Strike")', and some more little changes, but it doesn't work either.

Anybody any idea, why doesn't is takes screenshot from Vista?

Any suggestion is appreciated!

p.s: Sorry for my english if there's something wrong with it, you're allowed to correct me :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.