Jump to content

Recommended Posts

Posted (edited)

I am seeing the behavior sometimes on Win7 and 2008R2, where even in interpreted mode, it runs for a long time, then Explorer dies and needs to restart, then once your shell starts up again you get that error. on my Win10 box it seems to run fine though.

Problem signature:
  Problem Event Name:    BEX64
  Application Name:    Explorer.EXE
  Application Version:    6.1.7601.17514
  Application Timestamp:    4ce7a144
  Fault Module Name:    StackHash_d365
  Fault Module Version:    0.0.0.0
  Fault Module Timestamp:    00000000
  Exception Offset:    0000000000401b10
  Exception Code:    c0000005
  Exception Data:    0000000000000008
  OS Version:    6.1.7601.2.1.0.256.48
  Locale ID:    1033
  Additional Information 1:    d365
  Additional Information 2:    d365b429a31543b41a5b8606056b2782
  Additional Information 3:    6d65
  Additional Information 4:    6d65e6627d1b5f65dc45cfce37dd0990

 

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Posted (edited)

thanks. I got this off GitHub. I use SysInternals tools constantly as well. Already digging.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Posted

Take the zip files in example section of iuiautomation thread.

Github things is not written by me.

The error you get is due to element not returning its size and as such a rectangle can not be drawn to higlight.

What happens when you hover over the yellow circles with your mouse cursor. Anything then changing visually somewhere in screen. Status bar, information, tooltip etc.

Posted

and if I go with image detection, still having problem because of the resolution
so id is the best but how to find those things?
is there something like Xpath with desktop apps?

Posted

can you run that application in a window of it's own that limits it to 1024x768 ? you might be ok if you can always center it and go for x/y coords that way and image searches.

My resources are limited. You must ask the right questions

 

Posted
15 hours ago, Earthshine said:

can you run that application in a window of it's own that limits it to 1024x768 ?

YES that would be awesome, is this possible to say run this .exe program inside of limited 1024x768?
to lets say develop in the VB or any other language, where you limit the size of program that is started?

That would be great solution!

Posted

I found some video tutorial and it is good, but can it be done with autoit to avoid mixing of progam languages?

 

Posted

Ok cool....can you help me on choosing the program language?
My programming experience is more webdevelopment, think about 
PHP/mysql etc.

So can you recommand me something that I could set it up
with free tools and get it done?

My thoughts are: 
- if the program runs only on Windows machine, the I should do with microsoft tools and not like Java, ruby, python etc.
- visual studio as I heard it is free or not really?
- how fast is something to accomplish, I love video tutorials so my way of learning is video and not text

So any help by choosing the program would be great help

Posted

I recommend Microsoft visual code and or the free community version of visual studio 2017. C-sharp is just like python take that example you saw in instead of Calc make it your program that gets called and is a child of your form.  That example you show is exactly how to do it and he’s using C-sharp 

My resources are limited. You must ask the right questions

 

Posted (edited)

He used visual studio and started a new windforms project And I think that would be the easiest thing for you to do. 

 

If you follow that tutorial with the free version of visual studio 2017 it should turn out just like his then you can call your program instead of the Calculator application

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Posted

Yeah I managed to run the notepad inside of it, but that program that I have I couldn't and that program goes to fullscreen mode....it is littlebit complicated then expected :( 

Posted

This looks similar this way in AutoIt but seems to behave differently 

 

#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>
Local $hWndParent = GUICreate('Test ', 400, 400, 100, 100 )
run("calc.exe")
sleep(3000)
local $hWndChild=wingethandle("[TITLE:Rekenmachine]")
;~ local $hWndChild=wingethandle("[TITLE:Calculator]")



GUISetState(@SW_SHOW)
sleep(500)
consolewrite($hWndChild)
consolewrite($hWndParent )

DllCall("user32.dll", "hwnd", "SetParent", "hwnd", $hWndChild, "hwnd", $hWndParent)
;~ _WinAPI_SetParent($hWndChild, $hWndParent )
sleep(500)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...