View Full Version : SendKey in d3d screen
gex001
02-22-2008, 12:52 PM
Hi all
i'm trying to creat a bot that "in game" with \ key pick up items. i use function sendkeys like so:
Private sub.timer1..................eccc
SendKeys ("\")
end sub
but don't' work
any suggest?
DJBloodHunter
02-22-2008, 01:33 PM
I don't think that you can create D3D in visualbasic...
maby this will help you (never tryed it)
gex001
02-27-2008, 05:11 AM
I don't think that you can create D3D in visualbasic...
no, in fact i don want create direct 3d. I want send "/" key (fire) to a game, so i can make a exp bot. But when i try using :
Sendkeys "/"
it work only on 2d screen area (chat for example) , not into game scene.
Please help
Dxt-Cobra
02-27-2008, 10:06 AM
i think you are wanting keyboard event's .So it press the key for you?
You should be able to search google for keyboard in vb6 or C++
gex001
02-28-2008, 04:42 PM
i think you are wanting keyboard event's .So it press the key for you?
You should be able to search google for keyboard in vb6 or C++
yes, i have build a cheat for game "Metin2", and it work well
but i want to put on cheat the autoattack. Attack key on keyboard is \ ok?
to build a bot that emulate key press i need a function that send that key to game. Searching ......i discover SENDKEYS "\" function, but not work. It work only on the game chat, infact if i run that BOT anc inside game i open chat, i see :
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ....it work, but not work on character.....it not attack. IF I PRESS \ KEY (real) it attack.
How i can emulate KEYPRESS in VB6?
zezima
03-07-2008, 12:28 AM
i do not know the key for the \ but you use it like this:
sendkeys (VbKeyDivide)
this above will send / key, but i don't know the name for the other one.
try looking in the list below:
vbKeyLButton (1)
vbKeyRButton (2)
vbKeyCancel (3)
vbKeyMButton (4)
vbKeyBack (8)
vbKeyTab (9)
vbKeyClear (12)
vbKeyReturn (13)
vbKeyShift (16)
vbKeyControl (17)
vbKeyMenu (18)
vbKeyPause (19)
vbKeyCapital (20)
vbKeyEscape (27)
vbKeySpace (32)
vbKeyPageUp (33)
vbKeyPageDown (34)
vbKeyEnd (35)
vbKeyHome (36)
vbKeyLeft (37)
vbKeyUp (38)
vbKeyRight (39)
vbKeyDown (40)
vbKeySelect (41)
vbKeyPrint (42)
vbKeyExecute (43)
vbKeySnapshot (44)
vbKeyInsert (45)
vbKeyDelete (46)
vbKeyHelp (47)
vbKeyNumlock (144)
vbKeyScrollLock (145)
Alphabetic Key Code Constants
VbKeyA (65)
VbKeyB (66)
VbKeyC (67)
VbKeyD (68)
VbKeyE (69)
VbKeyF (70)
VbKeyG (71)
VbKeyH (72)
VbKeyI (73)
VbKeyJ (74)
VbKeyK (75)
VbKeyL (76)
vbKeyM (77)
VbKeyN (78)
VbKeyO (79)
VbKeyP (80)
VbKeyQ (81)
VbKeyR (82)
VbKeyS (83)
VbKeyT (84)
VbKeyU (85)
VbKeyV (86)
VbKeyW (87)
VbKeyX (88)
VbKeyY (89)
VbKeyZ (90)
Numeric Key Constants
vbKey0 (48)
vbKey1 (49)
vbKey2 (50)
vbKey3 (51)
vbKey4 (52)
vbKey5 (53)
vbKey6 (54)
vbKey7 (55)
vbKey8 (56)
vbKey9 (57)
Numeric Keypad Key Constants
vbKeyNumpad0 (96)
vbKeyNumpad1 (97)
vbKeyNumpad2 (98)
vbKeyNumpad3 (99)
vbKeyNumpad4 (100)
vbKeyNumpad5 (101)
vbKeyNumpad6 (102)
vbKeyNumpad7 (103)
vbKeyNumpad8 (104)
vbKeyNumpad9 (105)
VbKeyMultiply (106)
VbKeyAdd (107)
VbKeySeparator (108)
VbKeySubtract (109)
VbKeyDecimal (110)
VbKeyDivide (111)
Function Key Constants
vbKeyF1 (112)
vbKeyF2 (113)
vbKeyF3 (114)
vbKeyF4 (115)
vbKeyF5 (116)
vbKeyF6 (117)
vbKeyF7 (118)
vbKeyF8 (119)
vbKeyF9 (120)
vbKeyF10 (121)
vbKeyF11 (122)
vbKeyF12 (123)
vbKeyF13 (124)
vbKeyF14 (125)
vbKeyF15 (126)
vbKeyF16 (127)
this is the complete list of Visual Basic Keys. sorry if this post was too long
gex001
03-11-2008, 09:27 AM
i do not know the key for the but you use it like this:
sendkeys (VbKeyDivide)
this above will send / key, but i don't know the name for the other one.
try looking in the list below:
vbKeyLButton (1)
vbKeyRButton (2)
vbKeyCancel (3)
vbKeyMButton (4)
vbKeyBack (8)
vbKeyTab (9)
vbKeyClear (12)
vbKeyReturn (13)
vbKeyShift (16)
vbKeyControl (17)
vbKeyMenu (18)
vbKeyPause (19)
vbKeyCapital (20)
vbKeyEscape (27)
vbKeySpace (32)
vbKeyPageUp (33)
vbKeyPageDown (34)
vbKeyEnd (35)
vbKeyHome (36)
vbKeyLeft (37)
vbKeyUp (38)
vbKeyRight (39)
vbKeyDown (40)
vbKeySelect (41)
vbKeyPrint (42)
vbKeyExecute (43)
vbKeySnapshot (44)
vbKeyInsert (45)
vbKeyDelete (46)
vbKeyHelp (47)
vbKeyNumlock (144)
vbKeyScrollLock (145)
Alphabetic Key Code Constants
VbKeyA (65)
VbKeyB (66)
VbKeyC (67)
VbKeyD (68)
VbKeyE (69)
VbKeyF (70)
VbKeyG (71)
VbKeyH (72)
VbKeyI (73)
VbKeyJ (74)
VbKeyK (75)
VbKeyL (76)
vbKeyM (77)
VbKeyN (78)
VbKeyO (79)
VbKeyP (80)
VbKeyQ (81)
VbKeyR (82)
VbKeyS (83)
VbKeyT (84)
VbKeyU (85)
VbKeyV (86)
VbKeyW (87)
VbKeyX (88)
VbKeyY (89)
VbKeyZ (90)
Numeric Key Constants
vbKey0 (48)
vbKey1 (49)
vbKey2 (50)
vbKey3 (51)
vbKey4 (52)
vbKey5 (53)
vbKey6 (54)
vbKey7 (55)
vbKey8 (56)
vbKey9 (57)
Numeric Keypad Key Constants
vbKeyNumpad0 (96)
vbKeyNumpad1 (97)
vbKeyNumpad2 (98)
vbKeyNumpad3 (99)
vbKeyNumpad4 (100)
vbKeyNumpad5 (101)
vbKeyNumpad6 (102)
vbKeyNumpad7 (103)
vbKeyNumpad8 (104)
vbKeyNumpad9 (105)
VbKeyMultiply (106)
VbKeyAdd (107)
VbKeySeparator (108)
VbKeySubtract (109)
VbKeyDecimal (110)
VbKeyDivide (111)
Function Key Constants
vbKeyF1 (112)
vbKeyF2 (113)
vbKeyF3 (114)
vbKeyF4 (115)
vbKeyF5 (116)
vbKeyF6 (117)
vbKeyF7 (118)
vbKeyF8 (119)
vbKeyF9 (120)
vbKeyF10 (121)
vbKeyF11 (122)
vbKeyF12 (123)
vbKeyF13 (124)
vbKeyF14 (125)
vbKeyF15 (126)
vbKeyF16 (127)
this is the complete list of Visual Basic Keys. sorry if this post was too long
SENDKEY function wil work only on GAME TEXT AREA, like chat, name tag atc....but not on game charactrers.
For example, try to do that
Make a form with a timer object. Into timer code type:
sendkeys "F" ok?
..good, now open a game and set fire on F key. Start your vb project and go to game. your character not FIRE, but if you press F key it FIRE !!!!!
so....sendkey not emulate keypress
gex001
05-12-2008, 04:45 AM
any news about emulation keystroke?
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.