Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
enable/disable programs via a plugin
#2
You are on the right track.

The program data in Python is a dict.
Once you have the index of the program that you want to disable/enable you just need to set the "enabled" item to 0 for disabled or 1 for enabled.

The index of a program in the dict is the program number -1.

For example to disable program 2 you would use something like:
Code:
gv.pd[1]["enabled"] = 0
<p><br></p>
Reply


Messages In This Thread
enable/disable programs via a plugin - by tutqiunnh - 2023 Jun 11, 02:25 AM
RE: enable/disable programs via a plugin - by dan - 2023 Jun 11, 01:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)