Sign in to follow this  
Followers 0
Izebize

ScreenCapture in Vista

2 posts in this topic

Hi!

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
    Sleep(100)
WEnd

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

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  
Followers 0