EDIT:
Figured it out... its really simple and now I feel like an idiot -.-
Code below for anyone else that has this issue in the future.
Code:
Lua.FrameScript_Execute("visible = ClassTrainerFrame:IsVisible(); return visible;", "visible");
--------------------------------------------
Hey all,
I had a chat with some people in the bawx earlier today about this issue.
I'm trying to get a variable from Lua, in this case I am using
Code:
visible = ClassTrainerFrame:IsVisible()
My C# code is like this: (I won't post the code for the function as its the same as normally used)
Code:
string value = Lua.FrameScript_Execute("visible = ClassTrainerFrame:IsVisible()", "visible");
I know the Lua works, as I have tried it in a macro, this however returns nothing even when the frame is visible when called from my bot.
It should be noted that I can get return values for Script_ functions, so I am really at a loss here.
Does anyone have any ideas?
Thanks!