| View previous topic :: View next topic |
| Author |
Message |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Mon Mar 24, 2008 11:42 pm Post subject: [Delphi Request] Script for SpamKey to Button |
|
|
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 |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Tue Mar 25, 2008 12:11 am Post subject: Re: [Delphi Request] Script for SpamKey to Button |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Mar 25, 2008 12:30 am Post subject: |
|
|
PostMessage WM_CHAR (or Keyup / Keydown I guess)
or SendInput
|
|
| Back to top |
|
 |
andy105 Cheater
Reputation: 0
Joined: 12 Mar 2007 Posts: 38
|
Posted: Tue Mar 25, 2008 1:32 pm Post subject: |
|
|
| 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 |
|
 |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Fri Mar 28, 2008 10:44 pm Post subject: Re: [Delphi Request] Script for SpamKey to Button |
|
|
| 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 |
|
 |
Michel Expert Cheater
Reputation: 0
Joined: 16 May 2007 Posts: 214 Location: The Netherlands
|
Posted: Sat Mar 29, 2008 9:35 am Post subject: |
|
|
| Just make a button and make it enable/disable the timer.
|
|
| Back to top |
|
 |
|