Earthshine Posted November 9, 2017 Share Posted November 9, 2017 it appears to work interpreted fine on the dev VMs so that's cool. my host might be munged up somehow. My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
TheDcoder Posted November 9, 2017 Share Posted November 9, 2017 The error is not what I expected, was expecting a COM error. Anyway looks like one of the Arrays is not formatted properly, @junkew might be able to help furthur Earthshine 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Earthshine Posted November 9, 2017 Share Posted November 9, 2017 (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 November 9, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
TheDcoder Posted November 9, 2017 Share Posted November 9, 2017 Well, that looks suspicious. No idea why Explorer dies, I recommend you to investigate the problem further with tools like Process Monitor... or wait for @junkew's comments. EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Earthshine Posted November 9, 2017 Share Posted November 9, 2017 (edited) thanks. I got this off GitHub. I use SysInternals tools constantly as well. Already digging. Edited November 9, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
junkew Posted November 9, 2017 Share Posted November 9, 2017 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. Earthshine 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Daka Posted November 10, 2017 Author Share Posted November 10, 2017 Ok here another video of how the button has no id or class How to talk to this kind of buttons without going to x and y positions?https://www.youtube.com/watch?v=Zv6-LRzg16I Link to comment Share on other sites More sharing options...
Daka Posted November 10, 2017 Author Share Posted November 10, 2017 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? Link to comment Share on other sites More sharing options...
Earthshine Posted November 10, 2017 Share Posted November 10, 2017 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 Link to comment Share on other sites More sharing options...
Daka Posted November 11, 2017 Author Share Posted November 11, 2017 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! Earthshine 1 Link to comment Share on other sites More sharing options...
Daka Posted November 11, 2017 Author Share Posted November 11, 2017 or even better said: can it be done with autoit, so I dont mix many languages? Link to comment Share on other sites More sharing options...
Daka Posted November 11, 2017 Author Share Posted November 11, 2017 I found some video tutorial and it is good, but can it be done with autoit to avoid mixing of progam languages? Link to comment Share on other sites More sharing options...
Earthshine Posted November 11, 2017 Share Posted November 11, 2017 That’s your solution. Not sure it AutoIt can do that. I would be surprised if it could My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Daka Posted November 11, 2017 Author Share Posted November 11, 2017 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 Link to comment Share on other sites More sharing options...
Earthshine Posted November 11, 2017 Share Posted November 11, 2017 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 Daka 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted November 11, 2017 Share Posted November 11, 2017 Visual code is also 100% free and you can program in python if you like My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted November 11, 2017 Share Posted November 11, 2017 (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 November 11, 2017 by Earthshine Daka 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted November 11, 2017 Share Posted November 11, 2017 https://stackoverflow.com/questions/758494/how-can-i-run-another-application-within-a-panel-of-my-c-sharp-program My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Daka Posted November 13, 2017 Author Share Posted November 13, 2017 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 Link to comment Share on other sites More sharing options...
junkew Posted November 15, 2017 Share Posted November 15, 2017 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 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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