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 


Send keys? {delphi}

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

Joined: 07 Apr 2007
Posts: 238

PostPosted: Tue Nov 27, 2007 10:43 pm    Post subject: Send keys? {delphi} Reply with quote

hey, i was wondering on how i could make it so lets say, if i click a button, i will type something like if i click a button it would press g. i have heard about Sendinput() but what do i do with this? do i use like Sendinput(aaaaa); or something? because i tried and it dosent work... it says there is an error in scripting... help?? Confused
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Nov 28, 2007 12:13 am    Post subject: Reply with quote

might want to learn how to use api calls first.

then http://msdn2.microsoft.com/en-us/library/ms724875.aspx
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Nov 28, 2007 1:34 pm    Post subject: Reply with quote

Did you try:

Code:

SendInput('aaaaa');


?

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Wed Nov 28, 2007 2:39 pm    Post subject: Reply with quote

Look at this post:
http://forum.cheatengine.org/viewtopic.php?p=1641564#1641564

And next time use search.
Back to top
View user's profile Send private message
Lewiathan
How do I cheat?
Reputation: 0

Joined: 06 Dec 2007
Posts: 5

PostPosted: Thu Dec 06, 2007 1:14 pm    Post subject: Reply with quote

My proposition:

Code:
function SendMess(WindowCaption:String;Text:String):Boolean;
var
i:Integer;
hwnd:THandle;
begin
 Result:=False;
 hwnd:=FindWindow(NULL,WindowCaption);
  if hwnd = Null then
  begin
   Result:=False;
   Exit;
  end;
 SendMessage(Handle,WM_ACTIVATE,1,1);
  for i:=1 to length(Text) do
  begin
   SendMessage(Handle,WM_CHAR,word(Text[i]),1);
  end;
end;
Back to top
View user's profile Send private message
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