
beelzeboul
Members-
Posts
14 -
Joined
-
Last visited
Everything posted by beelzeboul
-
Whats throwing me off is there a auto include script called capturewindow but no descriptions on it really to be found and the code is alien to a noobie like me
-
#include <ScreenCapture.au3> #include <GUIConstants.au3> #include <WinAPI.au3> #include <findbmp.au3> #include <capturewindow.au3> Func CaptureWindow($sFileName = "D:\test\test.bmp", $iLeft = -1, $iTop = -1, $iWidth = -1, $iHeight = -1, $hWnd = WinGetHandle("[test]")) is this correct than? this doesnt shoot me any errors but doesnt have the desired effect either
-
so my understanding is I can save this to my include folder and in my script stipulate this as well as its pre requisites as includes and than call apon the function whenever I want provided ie #include <ScreenCapture.au3> #include <GUIConstants.au3> #include <ScreenCapture.au3> #include <WinAPI.au3> #include <findbmp.au3> capturewindow(test) is this the line I would adjust for the save location? _ScreenCapture_SaveImage(@ScriptDir & "\" & $inpWindow & ".png", $hHBitmap)
-
That clarifies a ton inuno thanx much bud
-
im sorry you were right _ScreenCapture_CaptureWnd("d:\test\test.bmp", $test) did fix the error and took a screen shot but its of the desktop not the window.
-
imma have to work on my screenshot skills here but hopefully you can zoom in far enough to read that error msg
-
-
Can capturewnd command be used to capture a screenshot or bmp of a window that is inactive or hidden? this was my understanding If so than I think my issue is with the $hWnd parameter I had tried the direct window title and handle #include <ScreenCapture.au3> $test = WinGetTitle ("test") _ScreenCapture_CaptureWnd("d:\test\test.bmp", "$test")
-
Screen Capture Browser Window Only
beelzeboul replied to tonyrocks's topic in AutoIt General Help and Support
ok by my logic which is not very fluent this should include screen cap get a variable $handle insert that variable as a destination window for screencapture and save the capture to d:\test\test.bmp #include <ScreenCapture.au3> $handle = WinGetHandle( "test1" ) _ScreenCapture_CaptureWnd("d:\test\test.bmp", "$handle") -
Screen Capture Browser Window Only
beelzeboul replied to tonyrocks's topic in AutoIt General Help and Support
this is subetley become more clear to me Im trying to accomplish the same thing and have a slight issue with defining the window I want to use I thought it might work the same as controlclick where I could define $handle as the destination but I think my application is incorrect I understand the basis of what this script is doing but when I look at the page this is posted as an example for it itemized and explains everything except the entire gui function so basically the changes I made insert a variable definition to be used as a target for the screen capture changed the function name to screencap set the save path to d:\test\test changed what I thought was optional coords I get an error regarding line 18 $handle = WinGetHandle( "Test" ) Sceencap() Func Screencap() Local $hGUI ; Create GUI $hGUI = GUICreate("Screen Capture", , ) GUISetState(@SW_SHOW) Sleep(250) ; Capture window _ScreenCapture_CaptureWnd(D:\test\test.bmp, $handle) ShellExecute(D:\test\test.bmp") EndFunc ;==>Example -
Searchimage Control click or search another image
beelzeboul replied to beelzeboul's topic in AutoIt General Help and Support
this was kinda a breakdown it looks like he is using the method your illustrating so It would seem you were exactly right junkew I appreciate the help of getting me on track here -
Searchimage Control click or search another image
beelzeboul replied to beelzeboul's topic in AutoIt General Help and Support
this was the intial function I was looking at but the limitations of not being able to define a window to search was what I was hoping to work around -
Searchimage Control click or search another image
beelzeboul replied to beelzeboul's topic in AutoIt General Help and Support
Thanx junkew I had seen the commands for find image or search image functions the problem I was having was confinging the search to a window rather than desktop. I had seen your other post rather than necroing it or spamming I figured I would keep my query to this thread. correct me if im wrong but in order for this process to suit my needs I would need to capture an image from the window I want than search that image for specifics and than create the conditions for each being found or not. this could be how all general search functions work for all I know I was hoping for something a little more concise with my needs ie search window for image if image exist control click its location I wouldnt mind having to configure the coordinates for the controlclick ie search image if exist then click predefined location if this is not possible than this is very helpful as far as putting me on the right path Thanx again for chiming in man -
So I am relatively new here and I know people dont generally like writing code for someone else hopefully this request is small enough that it can be granted The end goal is to have a window that is never active but open get searched for a specific image and than take an action of either cotrol clicking a coordinate or searching another image I believe the code would look something like Loop Search image(destination of image) inside specific window (window title or handle) if that image exist then control click x y location in that specific window then search for another image if found then exit loop Else search for another image if exist then control click x y location inside specific window Loop If someone has some sort of template that I could use for this I would be eternally grateful while programming architecture and conditionals are clear concepts transferring those concepts to code has been difficult