View previous topic :: View next topic |
Author |
Message |
O-RLY Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 170
|
Posted: Fri Aug 24, 2007 9:16 am Post subject: [Help] Send a sentence to the program. |
|
|
How do I do it?
Lets say I wanna send "You are gay" to "Flyff.exe".
Once I click the command button, its send it.
I do not need any [enter] strokes or so, just "You are gay".
I will be pleased for Delphi\Visual Basic script.
There's the details:
Message to send: You are gay
Target: Flyff.exe
Button's caption: SendIt
|
|
Back to top |
|
 |
zart Master Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 351 Location: russia
|
|
Back to top |
|
 |
O-RLY Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 170
|
Posted: Fri Aug 24, 2007 4:44 pm Post subject: |
|
|
Could you help me with this one - MSDN?
How do I make it works?
|
|
Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Aug 24, 2007 5:03 pm Post subject: |
|
|
DELPHI Send Message
Code: |
var
Hwnd: HWND;
i: Integer;
Keys: string;
begin
Hwnd := FindWindow('Flyff, nil);
if wnd <> 0 then
begin
Hwnd := FindWindowEx(wnd, 0, 'Edit', nil);
Keys := 'Text Here' <~ Put in the text you want sent.
for i := 1 to Length(s) do
SendMessage(Hwnd, WM_CHAR, Word(s[i]), 0);
PostMessage(Hwnd, WM_KEYDOWN, VK_RETURN, 0);
PostMessage(Hwnd, WM_KEYDOWN, VK_SPACE, 0);
end;
end;
|
|
|
Back to top |
|
 |
O-RLY Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 170
|
Posted: Fri Aug 24, 2007 5:19 pm Post subject: |
|
|
Can you give me an Visual Basic code?
|
|
Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Aug 24, 2007 6:26 pm Post subject: |
|
|
i dont now vb.
|
|
Back to top |
|
 |
|