I wrote a simple script which installs a setup via powershell, which wokrs completeley fine.
But when the setup starts, theres an UAC asking for you to allow the application to make changes, we all know that one...
But I cant get past it, Ive tried Leftarrow and 2x Tab(with a delay between them).
It just doesnt work, and im nut exactly sure what I have to fix, however I think there might be something wrong with the Delays... (Theres enough time to install, I have measured it with a timer multiple times)
This is the part of my script:
WAIT_FOR_BUTTON_PRESS
ATTACKMODE HID
GUI r
DELAY 250
STRINGLN powershell
DELAY 1000
STRING powershell -command "Invoke-WebRequest -Uri 'https://nmap.org/dist/nmap-7.94-setup.exe' -OutFile 'nmap-7.94-setup.exe'; Start-Process .\nmap-7.94-setup.exe -Wait"
DELAY 50
ENTER
DELAY 40000
TAB
DELAY 500
TAB
DELAY 500
ENTER
Thank you guys!