AutoHotkey Community

It is currently May 27th, 2012, 12:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: September 1st, 2004, 9:56 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Hello,
I don't know if something like this exists but can I make my script password protected so unauthorised users can't use my script?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 12:34 am 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
Heres a start .
Code:
InputBox, password, Enter Password, (your input will be hidden), hide


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 2:32 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
That's good. Also, if you want to physically protect the script file itself, you can convert it to an EXE with a password on it. Then put the original .ahk script in a hidden place, or don't distribute it.


Last edited by Chris on September 2nd, 2004, 2:42 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 2:34 am 
Offline

Joined: June 19th, 2004, 9:02 pm
Posts: 68
remember to put suspend on and turn it off when the password is correct else the keys will still work

_________________
AHK = Hella fun


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 5:05 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Ok...

Can I make something like a tickbox option so to not ask for password again (if password was already entered sucesfully once)?


Last edited by polyethene on September 3rd, 2004, 1:24 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 11:30 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
Ya you could save it maybe to a ini file .someplace that would not be seen or something .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 1:28 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
I don't get it...

Code:
#SingleInstance force
InputBox, pass, Validation, Please type in the password:, , 350, 125
if ErrorLevel <> 0
MsgBox, 16, Error, You cancelled.,
   ExitApp
ifInputBox, letmein
   Goto, Program

Program:
[program content goes here]


The password is 'letmein' but the script doesn't work, that's because there is no function to say what password exists ?!? Can somebody help :!:

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 1:35 am 
Offline

Joined: April 28th, 2004, 1:12 pm
Posts: 349
the variable pass stores what the user types in. so you would need something like-

if pass=letmein
Goto, Program


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 1:00 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
tried that and it still doesn't work :'(

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 3:15 pm 
Code:
#SingleInstance force
InputBox, pass, Validation, Please type in the password:, , 350, 125
        if ErrorLevel <> 0
           {
           MsgBox, 16, Error, You cancelled.
           ExitApp
           }
        if pass=letmein
           Goto, Program
        Else
           {
           MsgBox, 16, Error, Wrong password.
           ExitApp
           }

Program:
[program content goes here]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2004, 3:37 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Wkd, that worked like a dream, thanks mate!

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: chaosad, jrav, MSN [Bot] and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group