PDA

View Full Version : Application.LoadScript what to do....


Jonas DK
09-22-2005, 09:00 AM
HI

I was looking at the loadscript function in the help menu, and tourght that someone here might have more experience with it then I.

I have an application where the users login. Every time a user logs in a variable is set so if John logsin the variable is set to 1 or if its Jane it is set to 2 and so forth...

Now If I want a different menu for each user with different functionallety can I then do this by calling a lua script file?

EX. when John logs in the program checks the variable and sees that it is set to 1 and then call the lua file john.lua ...

Get the Idea of what it is I want to do here?

cheers,
Jonas DK

TJ_Tigger
09-22-2005, 09:23 AM
Now If I want a different menu for each user with different functionallety can I then do this by calling a lua script file?


You sure can. Just write the LUA code or AMS LUA code into a file and then load the script, have it set environment variables that customize the features to that particular user.

tigg