Run a Command Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
aboose
Posts: 2
Joined: 05 Jun 2023, 18:09

Run a Command

Post by aboose » 05 Jun 2023, 18:13

I have never used this program before and need guidance from a complete noob perspective as I'm not a coder.

I have a program called "Multiscreen Blank" which dims / blanks out predefined regions/groups.

Here is an example of a commandline that it provides:

"multiscreenblank2 /toggle group 1"

If I copy this into my "run" command of my PC, the function performs.

Now all I want to do is create an AHK script where I can find this function to a designated Key (EG: F13)

Can any smart folks here help me with what I hope is a simple request? I tried doing a script as follows:

> run multiscreenblank2 /toggle group 1

But I get an error.

User avatar
mikeyww
Posts: 26849
Joined: 09 Sep 2014, 18:38

Re: Run a Command  Topic is solved

Post by mikeyww » 05 Jun 2023, 18:38

Welcome to this AutoHotkey forum!

Some helpful things to do on the forum:
1. Post your script.
2. Post a screenshot of the error message that you receive.

Code: Select all

#Requires AutoHotkey v2.0
app      := 'd:\utils\multiscreenBlank\MultiscreenBlank2.exe'
groupNum := 1
groupNum := 2
F3::Run app ' /toggle group ' groupNum - 1

Post Reply

Return to “Ask for Help (v2)”