Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] Send a sentence to the program.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Aug 24, 2007 9:16 am    Post subject: [Help] Send a sentence to the program. Reply with quote

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
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Fri Aug 24, 2007 9:18 am    Post subject: Reply with quote

Google page one:
Bingo nice example using vb.net but could easily be ported to normal vb

Google page two:
MSDN - another place you should search for examples before asking Wink

All hail google


Honestly, did you try googling at all?

_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Aug 24, 2007 4:44 pm    Post subject: Reply with quote

Could you help me with this one - MSDN?
How do I make it works?
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Aug 24, 2007 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
O-RLY
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 170

PostPosted: Fri Aug 24, 2007 5:19 pm    Post subject: Reply with quote

Can you give me an Visual Basic code?
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Aug 24, 2007 6:26 pm    Post subject: Reply with quote

i dont now vb.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites