Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password Generator
#1
Hello. I need some help with this. OK, basically what im trying to do is have a " random password " generated in box " b " and then take that password and put it in box " a ' and then once you hit " continute " it says the password has matched

Thing is, i cant find much about this so if this is possible, an exampple please. thank you.


Function Password2
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Proceedings"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Edit 0x54030080 0x200 76 22 96 14 ""
;4 Static 0x54000000 0x0 8 22 64 14 "Enter Password"
;5 Edit 0x54030080 0x200 76 60 96 14 ""
;6 Static 0x54000000 0x0 8 58 64 16 "Random Password"
;7 Static 0x54000000 0x0 182 26 16 14 "A"
;8 Static 0x54000000 0x0 184 64 14 12 "B"
;9 Button 0x54032000 0x0 30 90 66 20 "Continue"
;END DIALOG
;DIALOG EDITOR: "" 0x2030109 "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1




NOTEl: This is just a quick example of how i want it
#2
Macro Macro1283
Code:
Copy      Help
str pw
pw.RandomString(10 10)
;...
pw.setwintext(id(a hDlg))
;...
pw.getwintext(id(b hDlg))
#3
See in vb6, i can do exactly whats on my mind but i cant with this. Im trying to have generated password generated, then once you get that generated password, you then take it and put it inside box " a ", then you hit " continue ", then once that is pressed, it says the passwords have matched and if it dont match, it says so etc. How do i get it to notice it to match if its always random. Below, i added some stuff to the pw.

Macro Macro
Code:
Copy      Help
str pw
pw.RandomString(10 10 "A-B-zO1-B")
pw.setwintext(id(3 win("Proceedings" "#32770")))
pw.getwintext(id(5 win("Proceedings" "#32770")))
#4
Quote:How do i get it to notice it to match if its always random

sorry, English is not my language, don't understand this
do you need to compare strings? then use if(string1=string2) ...
#5
.Ok

Im tring to have a ' Generated Password " become " Generated " in " Box B "

Once " Box B's password is shown, you then take that password and put it in " Box A "

Then you hit " Continue " and from doing so, it will say that passwords either match or, they do not match.

Problem is, " How do i make it know, wether the password matches or it doesnt match, considering, the password is always random ?

This is the best to my knowledge in english of how i can write this.
#6
Don't know, save it somewhere.
#7
I just asked you how to do this and you say save it somewhere. Save what " somewhere " ? Unbelievable i can never get help when i need it. I explained my self to the best of my ability Ginataras, asking you for help.You say you dont understand english but yet qm is in english. I dont understand ginataras, where can i get help. Apparently my questions to hard for people to answer. Un real, a paying customer i am and i cant get my bloody monies worth. This was my last resort, coming here for help. A very simple question, by a very simple person, that cant be very simply answered..........................................
#8
You may want to try, http://keepass.info/. It will generate and type passwords automatically with the default trigger, Ctl-Alt-A.
#9
Hello snikers I'm 99% sure I can help with what your asking. My only question is for both of your password boxes what are you trying to do? Generate 2 random passwords for each box mixed with numbers and letters and compare each to see if they are the same? If i'm wrong give me an explanation what you want it to do. And I can whip up an example for you.
QM Student


Forum Jump:


Users browsing this thread: 1 Guest(s)