Welcome Guest.   Make a donation to an author on the site April 25, 2014, 02:43:27 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Execute a launch menu with prior password protection  (Read 1039 times)
Contro
Participant
*
Posts: 1,943

View Profile Give some DonationCredits to this forum member
« on: June 16, 2012, 05:46:52 PM »

Execute a launch menu with prior password protection

I have found a little piece of soft to protect a procedure. But I don't know where to put my menu soft : menuak.ahk

the piece is this :

#SingleInstance Ignore
SetBatchLines, -1

Menu, Tray, NoStandard
Menu, Tray, Add, Exit, GuiClose
Menu, Tray, Default, Exit

InputBox, uName, User`?, Enter your USERNAME!
If uName = Hotdog
  InputBox, uPass, Pass`?, Enter your PASSWORD!, HIDE
Else
  {
    Msgbox, 48, LOL, Wrong guess`, oh foolish mortal!
    Goto, GuiClose
  }

If uPass = Bun
  Goto, EnterScript
Else
  Msgbox, 48, LOL, Geez`, you just can't win!

GuiClose:
  ExitApp
Return

EnterScript:
Msgbox, 48, Ah-HA, Congratulations! You've made it!


Where can I put to run my menuak.ahk ?¿?¿

Best Regards

P.D. Any other piece of source code more powerful is welcome (by example giving me 3 tries, or more complex interaction)

Logged
4wd
Supporting Member
**
Posts: 3,222



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: June 16, 2012, 09:29:35 PM »

EnterScript:
Msgbox, 48, Ah-HA, Congratulations! You've made it!

Replace everything below EnterScript: with menuahk.ahk contents.

ie. Delete the Msgbox, 48, Ah-HA, Congratulations! You've made it! and continue with your script.
Logged

Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum Evil
Contro
Participant
*
Posts: 1,943

View Profile Give some DonationCredits to this forum member
« Reply #2 on: June 17, 2012, 05:24:24 PM »

Let's go.
 Kiss

Best Regards
Logged
Contro
Participant
*
Posts: 1,943

View Profile Give some DonationCredits to this forum member
« Reply #3 on: June 17, 2012, 05:34:28 PM »

Worksssss Worksssss !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.025s | Server load: 0.12 ]