Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

*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

  • zibadianzibadian Posts: 6,349Member
    : 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"
  • caspert_ghostcaspert_ghost Posts: 53Member
    : 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.