How to detect GPC Interactive Configuration change

GPC2 script programming for Titan Two. Code examples, questions, requests.

How to detect GPC Interactive Configuration change

Postby lostkiwi » Sat Oct 23, 2021 1:28 am

Hi All,

I have had a good look through the forums and GPC guide but cant find an answer to this one....

How do I detect in a script that the user has changed values via the Interactive Configuration screen so I can reload the pmem values on a change (within main). Or is there a way to force a reload of the script on a save of the Interactive Configuration screen?

At the moment whenever I make a change I need to reload the slot. It would be great if I could detect a change and reload in the script on the fly.

Is this possible?

Many thanks!
User avatar
lostkiwi
Corporal
Corporal
 
Posts: 4
Joined: Tue Oct 19, 2021 3:03 am

Re: How to detect GPC Interactive Configuration change

Postby Scachi » Sat Oct 23, 2021 2:17 am

you can hit the "save and run" button in the IC to force the reload the script from the Interactive Config menu.
Ok button is just storing the new setting without reloading the slot.
save and run button does save the settings and reloads the script.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: How to detect GPC Interactive Configuration change

Postby lostkiwi » Sat Oct 23, 2021 3:55 am

Totally missed that - now I feel real stupid.....

Thank you!
User avatar
lostkiwi
Corporal
Corporal
 
Posts: 4
Joined: Tue Oct 19, 2021 3:03 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 82 guests