Izebize Posted September 19, 2008 Posted September 19, 2008 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
ChrisL Posted September 22, 2008 Posted September 22, 2008 Is it that the window has some transparency setting, see if you can remove the transparency with winsetTrans() [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now