Jump to content

Recommended Posts

Posted

Hello guys,

(Sorry for my bad English)

I'm trying to write a bot to install Daemon Tools Lite. For those who want to try it:

Download: https://www.daemon-tools.cc/deu/products/dtLite

My problem is that the installation window is difficult to handle and gives me not much information.
so unfortunately ControlClicks don't work.

Installation:
Step 1: choose "Free License"
Step 2: downloading installation Software.
Step 3: ...

Problem: PixelChecksum does not recognize that the Install button appears.

Question: What options are there to check that the Installation "button" can be pressed now?

I tried PixelChecksum and PixelGetColor but I can't manage that the functions always check Pixel of the Daemon Tools window. There are always different values..


Part of the script:

#RequireAdmin
AutoItSetOption('PixelCoordMode', 0)
$sDTLi = 'DAEMON Tools Lite Installer'

Run(@ScriptDir & '\Material\01 Daemon Tools Lite.exe')
WinWait($sDTLi)
WinWaitActive($sDTLi)
Send('{TAB}{SPACE}')

Sleep(3000)
$handle = WinGetHandle($sDTLi)
WinActivate(HWnd($handle))

Local $check1 = PixelChecksum(242, 356, 403, 385, '', HWnd($handle))    ; coordinates of the install 'button' that appears when the download is complete

While $check1 = PixelChecksum(242, 356, 403, 385, '', HWnd($handle))
    Sleep(100)                                                                                                          ; heres the problem, he can't find any change
WEnd

Sleep(300)
Send('{TAB 4}{SPACE}')

...
...
...

 

I want CheckSum to always return the same values, even if the window is moved.
I've tried many different versions, but I think this is how it should normally work.

I uploadet the Script. You can download the Daemon Tools Installer file from the above.

Thanks for Help :)

Daemon Tools Install Script.au3

Posted
9 minutes ago, JippyJouns said:

I'm trying to write a bot to install Daemon Tools Lite.

Have you tried to run a silent installation using the parameter /s ?

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

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...