|
-
May 25th, 2012, 04:09 PM
#1
Thread Starter
Lively Member
keys
what i have to do if i want to do a commbact a key on key board
-
May 25th, 2012, 04:13 PM
#2
Hyperactive Member
Re: keys
commbact ? what does it mean
-
May 25th, 2012, 04:18 PM
#3
Thread Starter
Lively Member
-
May 25th, 2012, 04:20 PM
#4
Hyperactive Member
Re: keys
command is sendkey {13}
this is used for enter key
for other search keyascii
-
May 25th, 2012, 04:20 PM
#5
Hyperactive Member
Re: keys
sendkey not sendkeys with s ok
-
May 25th, 2012, 04:23 PM
#6
Thread Starter
Lively Member
Re: keys
and where i have to write it?
Last edited by paok; May 25th, 2012 at 04:24 PM.
Reason: wrong
-
May 25th, 2012, 04:26 PM
#7
Hyperactive Member
Re: keys
if u need it at button click than in click event, when u will press button it will press enter key, what u want to make ?
-
May 25th, 2012, 04:31 PM
#8
Thread Starter
Lively Member
Re: keys
if u need it at button click than in click event, when u will press button it will press enter key, what u want to make ?
no
pressing one key on keyboard do the code automatically
-
May 25th, 2012, 04:34 PM
#9
Hyperactive Member
Re: keys
draw a text box and timer
set the time inteverl to 2
than write this code in timer
Private Sub Timer1_Timer()
text1.setfocus
SendKeys "a"
sendkeys "b"
sendkyes "c"
End Sub
-
May 25th, 2012, 04:34 PM
#10
Hyperactive Member
Re: keys
draw a text box and timer
set the time inteverl to 2
than write this code in timer
Private Sub Timer1_Timer()
text1.setfocus
SendKeys "a"
sendkeys "b"
sendkyes "c"
End Sub
-
May 25th, 2012, 04:36 PM
#11
Thread Starter
Lively Member
Re: keys
and how i will programe them
-
May 25th, 2012, 04:38 PM
#12
Thread Starter
Lively Member
Re: keys
and how i will progremme them?
-
May 25th, 2012, 04:39 PM
#13
Hyperactive Member
Re: keys
its visual basic ... double click on timer
than write code from text1.setfoucs to sendkeys "c"
-
May 25th, 2012, 04:45 PM
#14
Thread Starter
Lively Member
Re: keys
you can do an example? plz
-
May 25th, 2012, 04:47 PM
#15
Hyperactive Member
-
May 25th, 2012, 04:57 PM
#16
Hyperactive Member
Re: keys
-
May 25th, 2012, 05:11 PM
#17
Thread Starter
Lively Member
Re: keys
it works but it isn't that i want to do i don't want that
i want just to press a button and do one code that only that
-
May 25th, 2012, 05:20 PM
#18
Hyperactive Member
Re: keys
click text box and press enter
it will snd you msg your command
-
May 25th, 2012, 05:21 PM
#19
Hyperactive Member
-
May 25th, 2012, 05:26 PM
#20
Thread Starter
Lively Member
Re: keys
this think can de done with this thinks +-=/*?
-
May 25th, 2012, 05:30 PM
#21
Hyperactive Member
Re: keys
yes see keyascii chart for key code
-
May 26th, 2012, 04:18 PM
#22
Thread Starter
Lively Member
Re: keys
if i want to have combination of keys
what i have to do?
-
May 26th, 2012, 06:39 PM
#23
Hyperactive Member
Re: keys
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Option Explicit
Private Const VK_CONTROL = &H11
Private Const VK_C = &H43
Private Const VK_A = &H41
Private Const KEYEVENTF_KEYUP = &H2
Private Sub Timer1_Timer()
keybd_event VK_CONTROL, 0, 0, 0
keybd_event VK_A, 1, 0, 0
End Sub
this pres ctrl a for other keys change key
-
May 27th, 2012, 11:08 AM
#24
Thread Starter
Lively Member
Re: keys
ie the control and sift the program will make the combinatio
i want press sift and 8 the programme will take the ADD
i think i have helped you to understand
-
May 27th, 2012, 11:18 AM
#25
Hyperactive Member
Re: keys
u want to pres "+" this key rit ?
-
May 27th, 2012, 11:21 AM
#26
Thread Starter
Lively Member
Re: keys
yes but my comouter is mini and i dont have the keys next to main key board
-
May 27th, 2012, 11:34 AM
#27
Hyperactive Member
Re: keys
if u r doing it bcoz of ur keybord then use virtual keybord to type
-
May 27th, 2012, 02:59 PM
#28
Thread Starter
Lively Member
Re: keys
can write all letters of world pleaze
-
May 27th, 2012, 03:17 PM
#29
Hyperactive Member
-
May 28th, 2012, 05:20 AM
#30
Thread Starter
Lively Member
Re: keys
bcoz can you explian please
-
May 28th, 2012, 08:13 AM
#31
Thread Starter
Lively Member
Re: keys
i want to replace one button with one key where i have to write it?
-
May 28th, 2012, 08:19 AM
#32
Hyperactive Member
Re: keys
plz clear ur question its confusing
-
May 28th, 2012, 08:26 AM
#33
Thread Starter
Lively Member
Re: keys
i want to replace a dutton in form with a key on keyboard
where i have to write the code
-
May 28th, 2012, 08:39 AM
#34
Hyperactive Member
Re: keys
ok u want to press enter suppose and change the color ... like this ?
-
May 28th, 2012, 08:42 AM
#35
Hyperactive Member
Re: keys
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Sub Timer1_Timer()
Dim KeyNumber As Integer
For KeyNumber = 1 To 132
If GetAsyncKeyState(13) < 0 Then
SendKeys "{+}"
End If
Next
end sub
press enter
set interval 100
it will wirte " + " when u will press enter
Last edited by useruseronline; May 28th, 2012 at 07:58 PM.
-
May 28th, 2012, 08:43 AM
#36
Hyperactive Member
-
May 29th, 2012, 04:24 AM
#37
Thread Starter
Lively Member
Re: keys
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Sub Timer1_Timer()
Dim KeyNumber As Integer
For KeyNumber = 1 To 132
If GetAsyncKeyState(13) < 0 Then
SendKeys "{+}"
End If
Next
end sub
press enter
set interval 100
it will wirte " + " when u will press enter
i want to do the option
-
May 29th, 2012, 07:05 AM
#38
Hyperactive Member
Re: keys
option for wat ? explain wat u want more its confusing
-
May 29th, 2012, 09:21 AM
#39
Thread Starter
Lively Member
Re: keys
i want to replace a button of form not to write to a text and puss eg the enter key of key board
think i am understandable
-
May 29th, 2012, 09:24 AM
#40
Hyperactive Member
Re: keys
entery key should do wat ? if u press button enter key should be press of key board ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|