Hello zetat,zetat wrote:...I have tried to add a python command after a HTTP event that says "lrwinstate = true" but I get this error:...
The problem is, at the moment there is no documentation/example how to use the new functions, but Pako allready promised to create some example files.
Anyway, maybe I can help you a bit:
-The new functions like set or get variables ONLY work with POST requests, not with GET. (I don't know how you were trying to request it)
-The variables you can set are not variables from eg.globals, you have to read or write them by using the commands from the webserver Plugin. -I don't know about the json request, but with a normal post request your first argument (arguments are separated by "&") needs to be one of those depending on what you want to do:
GetValue #gets the value of a temporary variable with the name defined by the second argument
GetPersistentValue #gets the value of a persistent variable with the name defined by the second argument
SetValue #sets the value of a temporary variable with the name defined by the second argument and the value defined by the third argument
SetPersistentValue #sets the value of a persistent variable with the name defined by the second argument and the value defined by the third argument
GetAllValues #gets a list with all names and values of all (webserver) variables
GetChangedValues
ExecuteScript #executes a function defined in the second argument, returns the return value of this function
TriggerEvent
TriggerEnduringEvent
RepeatEnduringEvent
EndLastEvent
-the type of the variables needs to be string (or unicode)
I hope that helps,
Sem;colon
