Store variable within variable Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ecimeric
Posts: 130
Joined: 11 Jan 2017, 02:23

Store variable within variable

Post by Ecimeric » 13 Jun 2021, 17:50

Code: Select all

PC := "PCName"
How can I store the A_ComputerName variable name in PC so that I can write if PC instead of if (A_ComputerName = PC)?
User avatar
mikeyww
Posts: 27068
Joined: 09 Sep 2014, 18:38

Re: Store variable within variable  Topic is solved

Post by mikeyww » 13 Jun 2021, 18:53

Code: Select all

PC := A_ComputerName = "PCName"
If PC
 MsgBox, 64, Success, It worked!
Post Reply

Return to “Ask for Help (v1)”