Jump to content

Recommended Posts

Posted

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

image.thumb.png.84bb67d5a54dac12357c5c838b0ad048.png

 

--------------

My Question: How can you insert a pause before the "-Mode 0" is executed?

Thanks for looking.

Posted (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 by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...