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 


Auto Spammer (Visual Basic 2008) [help]

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

Joined: 06 May 2008
Posts: 197

PostPosted: Thu Apr 05, 2012 7:50 pm    Post subject: Auto Spammer (Visual Basic 2008) [help] Reply with quote

So I want to make a program that, when I press F6, it will say what I've put into the text box.

So if I wanted to put "Hello" in the text box, then I press F6, the program will automatically type "Hello" (each time i press F6).

Thanks in advance.

_________________

.erutangis ruoy ni siht esu neht ,sdrawkcab siht daer ot hguone trams erew uoy fI
Back to top
View user's profile Send private message
NotReallySureWhatGoesHere
Expert Cheater
Reputation: -1

Joined: 20 Feb 2012
Posts: 110

PostPosted: Fri Apr 06, 2012 12:49 am    Post subject: Reply with quote

Do you want it to type onto another program or type in your program? Sorry if that's a silly question.

http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys

http://msdn.microsoft.com/en-us/library/aa931932.aspx


This looks like it will help you most: http://social.msdn.microsoft.com/Forums/en-us/Vsexpressvb/thread/7b80f4d9-c5e2-4869-9f6c-460aba61e75b
Back to top
View user's profile Send private message
Chobito1337
Expert Cheater
Reputation: 2

Joined: 06 May 2008
Posts: 197

PostPosted: Fri Apr 06, 2012 12:03 pm    Post subject: Reply with quote

I want it to type on the active program.

Like i know about the sendkeys thing, but i cant get the part where it registers pressing F6.

_________________

.erutangis ruoy ni siht esu neht ,sdrawkcab siht daer ot hguone trams erew uoy fI
Back to top
View user's profile Send private message
vnlagrla
Cheater
Reputation: 0

Joined: 10 Apr 2011
Posts: 33

PostPosted: Sun Apr 08, 2012 9:48 pm    Post subject: Reply with quote

I dont know much about visual basic, but in c# you can use global hotkeys, just use google to see how to do it in VB
Back to top
View user's profile Send private message
BlackDeviL13
Newbie cheater
Reputation: 0

Joined: 17 Mar 2012
Posts: 15

PostPosted: Wed Apr 11, 2012 11:42 pm    Post subject: Reply with quote

I dont know in VB..
but in delphi you can use this part of code, maybe at onTimer event..

if getasynckeystate(VK_F6)<>0 then
begin
//use your sendkeys code here..
end;

getasynckeystate is a function to check if a button is pressed.. in this case is F6.. use it at OnTimer event to check it everytime.. you can set the interval of Timer to 100-250 ms..

_________________
GG always one step behind ~
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