Using a list of variables for multiple scripts

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SOBETed
Posts: 15
Joined: 03 May 2018, 12:40

Using a list of variables for multiple scripts

Post by SOBETed » 29 Nov 2020, 16:10

Hi, I have a number of scripts that use the same list of variables.

The variable list is updated every week. Is there a way to have the scripts pull from one Master list of variables rather than copy and paste the list into each script every week?

Thanks!

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

Re: Using a list of variables for multiple scripts

Post by mikeyww » 29 Nov 2020, 16:27

An IniWrite might fit the need. Its very purpose is to maintain a master list of variables and their values. Multiple scripts can access the same INI file.

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Using a list of variables for multiple scripts

Post by BoBo » 29 Nov 2020, 16:30

Yep, that 'Masterlist' is named INI-file. All scripts can access that file and take whatever value from there.
Once you've managed an update time slot (without any script access) you should be fine.

Post Reply

Return to “Ask for Help (v1)”