Progh0st Posted December 8, 2019 Share Posted December 8, 2019 I find that _ScreenCapture_CaptureWnd is not working properly for me.. (Win10 64) This gives me error: #include <ScreenCapture.au3> Global $SSPath = @ScriptDir & "\Pics\SS55.jpg" $Handle = WinGetHandle("[CLASS:Progman]", "") Sleep(1000) _ScreenCapture_CaptureWnd($SSPath, $Handle, 440, 651, 637, 693, False) ;CLIENT COORDS If @error Then MsgBox(0,"","error") EndIf This does not: #include <ScreenCapture.au3> Global $SSPath = @ScriptDir & "\SS55.jpg" $Handle = WinGetHandle("[CLASS:Progman]", "") Sleep(1000) _ScreenCapture_CaptureWnd($SSPath, $Handle, 440, 651, 637, 693, False) ;CLIENT COORDS If @error Then MsgBox(0,"","error") EndIf Is it me or something is going on? Link to comment Share on other sites More sharing options...
Musashi Posted December 8, 2019 Share Posted December 8, 2019 (edited) 7 hours ago, Progh0st said: Is it me or something is going on? I'm guessing the folder \Pics\ doesn't exist. The folder will not be created by _ScreenCapture_CaptureWnd ! Once the folder @ScriptDir & "\Pics\" exists, your first script works. Edited December 8, 2019 by Musashi typo "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Progh0st Posted December 8, 2019 Author Share Posted December 8, 2019 12 hours ago, Musashi said: I'm guessing the folder \Pics\ doesn't exist. The folder will not be created by _ScreenCapture_CaptureWnd ! Once the folder @ScriptDir & "\Pics\" exists, your first script works. Sorry, it was a stupid video-game I had minimized causing my script to malfunction. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2019 Developers Share Posted December 9, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts