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 


visual basic 6 - hotkeys

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

Joined: 21 Oct 2007
Posts: 42

PostPosted: Mon Dec 10, 2007 8:37 am    Post subject: visual basic 6 - hotkeys Reply with quote

hello i want make program that when u click Start it will automatic pressing number 0 can someone tell me code or learn me how to do that i will very thank u if u tell me ^^
_________________
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Mon Dec 10, 2007 9:02 am    Post subject: Reply with quote

Code:
private sub start_click()
      startTim_enabled = true
end sub

private sub startTim_timer()
      sendkeys"{0}"
end sub




this wot u lookin for?
Back to top
View user's profile Send private message
nikoeit
Cheater
Reputation: 0

Joined: 21 Oct 2007
Posts: 42

PostPosted: Mon Dec 10, 2007 10:34 am    Post subject: Reply with quote

i make timer and button with name start and i test then i click start nothing happen

if u didnt understant i will tell you again
i need code that i will just click start and it will automatic clicking 0
we can proove that in text i open text i click start then in text must be 0 ^^

_________________
Back to top
View user's profile Send private message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Mon Dec 10, 2007 12:44 pm    Post subject: Reply with quote

For the timer... just need this...
Code:
 SendKeys "{0}"

Or if your looking for a code for like text inside your program, i think it would go like this
Code:
Text1.Text SendKeys"{0}"

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
nikoeit
Cheater
Reputation: 0

Joined: 21 Oct 2007
Posts: 42

PostPosted: Mon Dec 10, 2007 1:19 pm    Post subject: Reply with quote

amm i know that u have right but its my fould i was wrong ^^

i want make bot for game Silkroad Online and i will realease it here too
but in that game is all on actions so if i give in bar action for attack on number 0 what i must do that it will clickin 0 and player will attack ??

now u understant me

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

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Dec 10, 2007 3:35 pm    Post subject: Reply with quote

SendKeys wont do anything in VB unless you activate the target window first. You need to call "AppActivate" first then call send keys. SendKeys is not for hotkeys as well.

Look into GetAsyncKeyState() and RegisterHotkey() if you want to do hotkeys.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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