marko001 Posted June 30, 2014 Share Posted June 30, 2014 Hi all guys, I was asked to develop a tool to manage a .NET application in our office (medical equipment). I need to store informations as soon as windows appear. I used the following: $PId = RunWait(@comspec & " /c " & chr(34) & $s_appfolder & "\" & $s_appname & chr(34)) ; WinMove($s_app_label, "", 0, 0) Local $t = 0 While $t = 0 If _ImageSearcharea($imagesearchfolder2 & "\query.bmp", 1, 0, 0, @DesktopWidth, @DesktopHeight, $x, $y, 100) = 1 Then WinMove($s_app_label, "", 0, 0) $t = 1 EndIf WEnd ; _status(0, "Compiling Datas") But this time it doesn't work and for sure query.bmp is the correct file i need to search for. To understand better I tried the following: if Not WinActive($s_app_label) Then WinActivate($s_app_label) WinMove($s_app_label,"",0,0) EndIf _ScreenCapture_Capture("query.bmp",0,0, 500,500,0) and... result is a query.bmp that doesn't capture the .Net program but the desktop. It seems both imagesearch() and _screencapture() don't recognize the program window but go back to desktop (seems a transparent window but window is not transparent). In the past I used, for other projects, #AutoIt3Wrapper_UseX64=n I'm under W7X64. Any clue on how to solve that? Thanks erveryone? Marko Link to comment Share on other sites More sharing options...
Bert Posted June 30, 2014 Share Posted June 30, 2014 Have you looked at this: '?do=embed' frameborder='0' data-embedContent>> You may be able to look at the controls directly and not do an image search. That way it would be MUCH more stable. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
marko001 Posted June 30, 2014 Author Share Posted June 30, 2014 @MBALZESHARI : Hmm sounds interesting. Honestly speaking I never used these methods. Do you mind trying to explain me the basics to fit it into my project? Regards, Marco Link to comment Share on other sites More sharing options...
Bert Posted July 1, 2014 Share Posted July 1, 2014 I suggest you read the thread. It explains everything and give links to resources. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
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