Hello Guest it is March 29, 2024, 02:13:18 AM

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

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • 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! ")