Hello Lifepower!
How are you?
A little bit of off topic here....
Code:
With this code below, I'm able to locate a window, and paste a password on it... using Delphi 7 all is running fine inside the debugger, when I compile .exe and run the app the code dont works...
I just need to select other application and paste a text on it using a handle...
Do you have suggestion how to fix it?
Thanks
How are you?
A little bit of off topic here....
Code:
Code:
procedure TForm1.Button3Click(Sender: TObject); var H : HWnd; begin H := FindWindow(nil, pchar('Kaspersky Password Manager')); if H <> 0 then begin // Try to bring target window to foreground ShowWindow(H,SW_SHOW); SetForegroundWindow(H); Clipboard.AsText := 'mypass'; Keybd_event(VK_CONTROL, 0, 0, 0); Keybd_event(Byte('V'), 0, 0, 0); Keybd_event(Byte('V'), 0, KEYEVENTF_KEYUP, 0); Keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0); Keybd_event(VK_RETURN, 0, 0, 0); Keybd_event(VK_RETURN, 0, KEYEVENTF_KEYUP, 0);
I just need to select other application and paste a text on it using a handle...
Do you have suggestion how to fix it?
Thanks
Comment