Jump to content

screen 1024x768 different screen size, how can this be possible?


Daka
 Share

Recommended Posts

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

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

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

 

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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