View previous topic :: View next topic |
Author |
Message |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Sun Jun 01, 2008 4:37 pm Post subject: vb6 how do i use sendkeys |
|
|
i am making a auto buffer for archlord but i dont know how to use sendkeys to make it say 1, 2, 3, 4, 5, 6, 7, 8, 9, -, +... anyone help?
_________________
Last edited by minium haxor on Sun Jun 01, 2008 4:56 pm; edited 1 time in total |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Sun Jun 01, 2008 4:43 pm Post subject: |
|
|
SendKeys in VB sends the given key stroke(s) to the currently active window. So you will either need to use 'AppActivate' or an API to give the needed window focus for before calling SendKeys for it to work as you want it to.
_________________
- Retired. |
|
Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Sun Jun 01, 2008 4:46 pm Post subject: |
|
|
Wiccaan wrote: | SendKeys in VB sends the given key stroke(s) to the currently active window. So you will either need to use 'AppActivate' or an API to give the needed window focus for before calling SendKeys for it to work as you want it to. | how can i make a text spammer?
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Sun Jun 01, 2008 4:47 pm Post subject: |
|
|
Activate the needed window, then call SendKeys with the given text you want to send. I'm not giving you code for this as I assume you plan to do harm with it..
_________________
- Retired. |
|
Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Sun Jun 01, 2008 4:51 pm Post subject: |
|
|
Wiccaan wrote: | Activate the needed window, then call SendKeys with the given text you want to send. I'm not giving you code for this as I assume you plan to do harm with it.. |
rofl! no im trying to make it say lik 3,4,5,6,7,8,9,0,-,+ for archlord you know auto buffing
_________________
|
|
Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Sun Jun 01, 2008 5:02 pm Post subject: |
|
|
sendkeys "5"? Should work
Sendkeys "{Enter}" Is for enter =D
|
|
Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Sun Jun 01, 2008 5:06 pm Post subject: |
|
|
masterkert3 wrote: | sendkeys "5"? Should work
Sendkeys "{Enter}" Is for enter =D |
it actually doesint work for me
lol it works when i make the exe but not when i test
_________________
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sun Jun 01, 2008 8:50 pm Post subject: |
|
|
try Sendkeys "HEY~" in a loop
(the ~ is the carriage return)
_________________
Get kidnapped often. |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Sun Jun 01, 2008 9:40 pm Post subject: |
|
|
If you want to do this for a game, I suggest looking into other methods instead of 'SendKeys'. Look into SendInput and PostMessage. Both of which have examples already posted in this section.
_________________
- Retired. |
|
Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Mon Jun 02, 2008 12:51 am Post subject: |
|
|
minium haxor wrote: | masterkert3 wrote: | sendkeys "5"? Should work
Sendkeys "{Enter}" Is for enter =D |
it actually doesint work for me
lol it works when i make the exe but not when i test |
You use normal compile right? Press CTRL + F5 for Full compile.
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Jun 02, 2008 1:01 am Post subject: |
|
|
none of compile and Full compile really mean compiling - and Full compile checks for all but strings. {enter} is an enclosed string, so no matter how full you trick vb into thinking it's compiling, it's still the same thing
- but hey, try full compile anyway =D
_________________
Get kidnapped often. |
|
Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Mon Jun 02, 2008 2:26 am Post subject: |
|
|
lol problem solved but how do i use sendinput and that stuff? im kinda new to vb6 i've been on java for 2 years
_________________
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Jun 02, 2008 2:53 am Post subject: |
|
|
minium haxor wrote: | im kinda new to vb6 i've been on java for 2 years |
turn back
_________________
Get kidnapped often. |
|
Back to top |
|
 |
minium haxor Advanced Cheater
Reputation: 0
Joined: 03 Dec 2007 Posts: 82 Location: Faroe islands
|
Posted: Mon Jun 02, 2008 3:04 am Post subject: |
|
|
blland wrote: | minium haxor wrote: | im kinda new to vb6 i've been on java for 2 years |
turn back |
yeah i should but im not that good at it i've only been coded private servers...
_________________
|
|
Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Jun 02, 2008 3:48 am Post subject: |
|
|
If you can "only" code private servers, i think you should just keep at it
coding private servers is not easy
_________________
Get kidnapped often. |
|
Back to top |
|
 |
|