JippyJouns Posted March 24, 2022 Posted March 24, 2022 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
Musashi Posted March 24, 2022 Posted March 24, 2022 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 ? "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
JippyJouns Posted March 24, 2022 Author Posted March 24, 2022 Thank you for your prompt reply. No I have not. Sorry I'm a beginner. How exactly do I have to use the parameter?
junkew Posted March 25, 2022 Posted March 25, 2022 https://www.google.com/search?q=daemon+tools+lite+silent+install FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
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