*SOLVED* save edi text for later use temporarily

Hello, I am not sure what to call this but I will do my best to explain the situation.

on my form I have many sub frames, each fram has some edit boxes that are saved to an ini file.

On the first frame (main start) it shows the user name (from ini file) and an edit box.

In this edit box will go a password.

I need to save this password either to clipboard or memory for as long as the program is running.

What this is doing is:
You fill out all the information needed (for now just user name and password) then click go, the go button will open another program where the user name (which comes from the ini) is posted in the edit box of the program.
Then I send a "tab" to select the next edit box on the program where the password needs to go.
I want to post the password enterd into the password edit box of my form into this new edit box.
I do NOT want to save this password in the ini for obvious reasons.
Either save to clipboard (which may not work as other things will go to clipboard and this will be overwritten as clipboard only holds one at a time (as far as I know(I could be wrong))
OR
save to memory (which I hope is a better choice)

Now if the (new prog) should lose connection my program will re login using user name from ini AND the password saved earlier from my form.

Do you have any ideas how this can be done (or what it would be called so I can google it)

I have searched for:
save edit box to clipboard
password text in memory
"delphi" save text to clipboard
etc.
to no prevail.
Thank you all for your help on this.
Thank you

Comments

  • : Hello, I am not sure what to call this but I will do my best to
    : explain the situation.
    :
    : on my form I have many sub frames, each fram has some edit boxes
    : that are saved to an ini file.
    :
    : On the first frame (main start) it shows the user name (from ini
    : file) and an edit box.
    :
    : In this edit box will go a password.
    :
    : I need to save this password either to clipboard or memory for as
    : long as the program is running.
    :
    : What this is doing is:
    : You fill out all the information needed (for now just user name and
    : password) then click go, the go button will open another program
    : where the user name (which comes from the ini) is posted in the edit
    : box of the program.
    : Then I send a "tab" to select the next edit box on the program where
    : the password needs to go.
    : I want to post the password enterd into the password edit box of my
    : form into this new edit box.
    : I do NOT want to save this password in the ini for obvious reasons.
    : Either save to clipboard (which may not work as other things will go
    : to clipboard and this will be overwritten as clipboard only holds
    : one at a time (as far as I know(I could be wrong))
    : OR
    : save to memory (which I hope is a better choice)
    :
    : Now if the (new prog) should lose connection my program will re
    : login using user name from ini AND the password saved earlier from
    : my form.
    :
    : Do you have any ideas how this can be done (or what it would be
    : called so I can google it)
    :
    : I have searched for:
    : save edit box to clipboard
    : password text in memory
    : "delphi" save text to clipboard
    : etc.
    : to no prevail.
    : Thank you all for your help on this.
    : Thank you
    :
    The easiest way to perform this is to use a sendkey function. Your program can then "type in" the password by simulating key presses. A possible source code is this:
    http://www.tt.rim.or.jp/~muramatu/delphi/SendKey/SENDKEY.PAS
    Found using: "sendkey Delphi"
  • : The easiest way to perform this is to use a sendkey function. Your
    : program can then "type in" the password by simulating key presses. A
    : possible source code is this:
    : http://www.tt.rim.or.jp/~muramatu/delphi/SendKey/SENDKEY.PAS
    : Found using: "sendkey Delph


    Thank you, I will look into that.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories