JackD Posted 13 hours ago Posted 13 hours ago Hi Support. Got AutoIt v3 installed, and this script works in a ScriptDeck plugin for my Streamdeck XL hardware unit. ----------- import-Module “F:\UTILLITIES\AutoIt3\AutoItX” Initialize-AU3 Send-AU3Key -Key “{LALT}{LWIN}1{LALT}{LWIN}” -Mode 0 -------------- My Question: How can you insert a pause before the "-Mode 0" is executed? Thanks for looking.
rudi Posted 8 hours ago Posted 8 hours ago (edited) Hello, welcome to the forums. I don't use AutoitX, looks like powershell, right? then possibly the PS included sleep will do the trick? Import-Module "F:\UTILLITIES\AutoIt3\AutoItX" Initialize-AU3 Start-Sleep -Milliseconds 500 # or -Seconds 1 Send-AU3Key -Key "{LALT}{LWIN}1{LALT}{LWIN}" -Mode 0 Hint: Use the button labeled "<>" to post code. You cannot pause “before -Mode 0”, because within PowerShell the parameters are evaluated together. Edited 8 hours ago by rudi JackD 1 Earth is flat, pigs can fly, and Nuclear Power is SAFE!
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