Posted: Mon Dec 10, 2007 8:37 am Post subject: visual basic 6 - hotkeys
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 ^^ _________________
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 ^^ _________________
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 ??
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Mon Dec 10, 2007 3:35 pm Post subject:
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. _________________
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