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 


[Delphi Request] Script for SpamKey to Button

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Mon Mar 24, 2008 11:42 pm    Post subject: [Delphi Request] Script for SpamKey to Button Reply with quote

Can somebody give me a script that I can code to a button to make that button spam a key, like a bot. Then click again to stop. Thank you!
_________________

Back to top
View user's profile Send private message AIM Address MSN Messenger
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Tue Mar 25, 2008 12:11 am    Post subject: Re: [Delphi Request] Script for SpamKey to Button Reply with quote

mrkrishan wrote:
Can somebody give me a script that I can code to a button to make that button spam a key, like a bot. Then click again to stop. Thank you!


do you mean send key or mouse click ?

anyway make a timer

postmessage for maplestory (dosent work for gms etc just private server)

Code:

var
h:hWnd;
A:DWORD;
begin
 h:=FindWindowA('MapleStoryClass',nil); // class name for the form you will send the key too
 A:=MapVirtualKey(96,0);                     // A Key
 A:=A shl 16; // thanks to rot1

    PostMessage(h,WM_KEYDOWN,96,A); // A = key press
    PostMessage(h,WM_KEYUP,96,A); // 96 = Text or how i should say it

to get virutual keys just search on google

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Mar 25, 2008 12:30 am    Post subject: Reply with quote

PostMessage WM_CHAR (or Keyup / Keydown I guess)

or SendInput
Back to top
View user's profile Send private message
andy105
Cheater
Reputation: 0

Joined: 12 Mar 2007
Posts: 38

PostPosted: Tue Mar 25, 2008 1:32 pm    Post subject: Reply with quote

slovach wrote:
PostMessage WM_CHAR (or Keyup / Keydown I guess)

or SendInput


how would you use that put it in a timer? or a button
i am trying to make a auto potter, auto pick up, etc for maplestory any idea?
Back to top
View user's profile Send private message
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Fri Mar 28, 2008 10:44 pm    Post subject: Re: [Delphi Request] Script for SpamKey to Button Reply with quote

ups2000ups wrote:
mrkrishan wrote:
Can somebody give me a script that I can code to a button to make that button spam a key, like a bot. Then click again to stop. Thank you!


do you mean send key or mouse click ?

anyway make a timer

postmessage for maplestory (dosent work for gms etc just private server)

Code:

var
h:hWnd;
A:DWORD;
begin
 h:=FindWindowA('MapleStoryClass',nil); // class name for the form you will send the key too
 A:=MapVirtualKey(96,0);                     // A Key
 A:=A shl 16; // thanks to rot1

    PostMessage(h,WM_KEYDOWN,96,A); // A = key press
    PostMessage(h,WM_KEYUP,96,A); // 96 = Text or how i should say it

to get virutual keys just search on google


Thanks! Now I need to find out how to make a GUI for it

_________________

Back to top
View user's profile Send private message AIM Address MSN Messenger
Michel
Expert Cheater
Reputation: 0

Joined: 16 May 2007
Posts: 214
Location: The Netherlands

PostPosted: Sat Mar 29, 2008 9:35 am    Post subject: Reply with quote

Just make a button and make it enable/disable the timer.
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