Hello Guest it is January 25, 2022, 12:01:45 AM

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

0 Members and 1 Guest are viewing this topic.

Offline BR549

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