Nine Posted August 30 Share Posted August 30 Alright, at least you are trying stuff, although your attempts are kind of pathetic (no offense). I told you to keep away from MouseClick. Anyway, let's move your script a step further. #include <Constants.au3> Opt("MustDeclareVars", True) ; this is good practice, use it Opt("WinTitleMatchMode", -2) ; to let you use any part of a window title (minus means Case insensitive) ; Activate the application Local $hWnd = WinActivate("AccuRenderStudio") If Not $hWnd Then Exit MsgBox($MB_OK, "Error", "Unable to locate AccuRenderStudio window") WinWaitActive($hWnd) ; Select drop down option ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "ShowDropDown", "") If @error Then Exit MsgBox($MB_OK, "Error", "Unable to show drop down") ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "SelectString", "f1") If @error Then Exit MsgBox($MB_OK, "Error", "Unable to select string") Sleep(500) ; give time to the application to apply the change ; Click start button and wait AutoSave window to appear ControlClick($hWnd, "", "control name of the start button") ; instead of MouseClick (348,71) Local $hWnd2 = WinWait("AutoSave") ; instead of MouseClick (1178,38) WinSetState($hWnd2, "", @SW_MAXIMIZE) Make it work. ps. Adding error handling is also very important, it helps you understand what is going on... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ebanj88 Posted August 30 Author Share Posted August 30 The code is not giving me any error but i have not seen any execution #include <Constants.au3> Opt("MustDeclareVars", True) ; this is good practice, use it Opt("WinTitleMatchMode", -2) ; to let you use any part of a window title (minus means Case insensitive) ; Activate the application Local $hWnd = WinActivate("AccuRenderStudio") If Not $hWnd Then Exit MsgBox($MB_OK, "Error", "Unable to locate AccuRenderStudio window") WinWaitActive($hWnd) ; Select drop down option ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "ShowDropDown", "") ControlCommand($hWnd, "", "HwndWrapper[ArStudioWpf.exe;;9ac232e9-2be7-47fe-902e-afed50e034f0]", "SelectString", "f1") Sleep(500) ; give time to the application to apply the change ; Click start button and wait AutoSave window to appear ControlClick($hWnd, "", "control name of the start button") ; instead of MouseClick (348,71) Local $hWnd2 = WinWait("AutoSave") ; instead of MouseClick (1178,38) WinSetState($hWnd2, "", @SW_MAXIMIZE) $loops = 2500 for $a=0 to 2500 ConsoleWrite("This is a: " & $b &@CRLF) next ConsoleWrite ("Inner loop:"&loops& " set finished"&@CRLF) $loops+=2500 What can i do ? I added a loop function and got rid of the error checking mechanism. What do you think ? Link to comment Share on other sites More sharing options...
Nine Posted August 31 Share Posted August 31 Forget it. I am out. I told you I was giving you one last chance and you blew it. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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