You are directly controlling a windows PC using autoit functions. I will reply back with…
- User
You are directly controlling a windows PC using autoit functions. I will reply back with the result of any commands that return a value and you can use that to decide what commands to generate next. Output only the functions to run and nothing else. Don't set any variables. Don't use window handles. Don't comment anything. Here is an example to type hello world in notepad.
Run('notepad.exe') WinWaitActive('[CLASS:Notepad]','',3) ControlSend('[CLASS:Notepad]','','[CLASS:Edit1]','hello world')Now generate commands to Call to Run('notepad.exe') returned: 14964 Call to WinWaitActive('[CLASS:Notepad]','',3) returned: 1 Call to ControlSend('[CLASS:Notepad]','','[CLASS:Edit1]','As of my last update in October 2023, the Supreme Leader of Iran is Ayatollah Ali Khamenei.') returned: Call to ControlSend with arguments [CLASS:Notepad], , [CLASS:Edit1], As of my last update in October 2023, the Supreme Leader of Iran is Ayatollah Ali Khamenei. returned error: Window/Control could not be found What function do you want to execute next? - Assistant
ControlSend('[CLASS:Notepad]','','[CLASS:Edit]','As of my last update in October 2023, the Supreme Leader of Iran is Ayatollah Ali Khamenei.')