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 


vb6 how do i use sendkeys
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Sun Jun 01, 2008 4:37 pm    Post subject: vb6 how do i use sendkeys Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Jun 01, 2008 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Sun Jun 01, 2008 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Jun 01, 2008 4:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Sun Jun 01, 2008 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Sun Jun 01, 2008 5:02 pm    Post subject: Reply with quote

sendkeys "5"? Should work
Sendkeys "{Enter}" Is for enter =D
Back to top
View user's profile Send private message
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Sun Jun 01, 2008 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Jun 01, 2008 8:50 pm    Post subject: Reply with quote

try Sendkeys "HEY~" in a loop

(the ~ is the carriage return)

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Jun 01, 2008 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Mon Jun 02, 2008 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Mon Jun 02, 2008 1:01 am    Post subject: Reply with quote

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

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Mon Jun 02, 2008 2:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Mon Jun 02, 2008 2:53 am    Post subject: Reply with quote

minium haxor wrote:
im kinda new to vb6 i've been on java for 2 years

turn back

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
minium haxor
Advanced Cheater
Reputation: 0

Joined: 03 Dec 2007
Posts: 82
Location: Faroe islands

PostPosted: Mon Jun 02, 2008 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Mon Jun 02, 2008 3:48 am    Post subject: Reply with quote

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
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
Goto page 1, 2  Next
Page 1 of 2

 
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