Hello Guest it is July 06, 2020, 05:52:41 PM

Author Topic: ASK user for Password SCRIPT  (Read 2003 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,932 6,932
    • View Profile
ASK user for Password SCRIPT
« on: June 02, 2014, 04:11:33 PM »
Here is a sample of a script that ASKS the user for a password and processes the answer. IT uses the WxLUA call    wx.wxGetPasswordFromUser()

local Pword = "FrogLog"
local Pnum = 0

while Pnum <3 do
local Panswer = wx.wxGetPasswordFromUser("What is the Password ? ")
if Panswer == Pword then
            wx.wxMessageBox("The Password is " ..Panswer)
else
            wx.wxMessageBox("Wrong Password")
            Pnum =(Pnum+1)
    end

 end
wx.wxMessageBox(" Call YOUR Supervisor for HELP! ")