Page 1 of 3 123 LastLast
Results 1 to 40 of 81

Thread: keys

  1. #1
    Lively Member
    Join Date
    May 12
    Posts
    103

    keys

    what i have to do if i want to do a commbact a key on key board

  2. #2
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    commbact ? what does it mean

  3. #3
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    Command that i mean

  4. #4
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    command is sendkey {13}
    this is used for enter key
    for other search keyascii

  5. #5
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    sendkey not sendkeys with s ok

  6. #6
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    and where i have to write it?
    Last edited by paok; May 25th, 2012 at 04:24 PM. Reason: wrong

  7. #7
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    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 ?

  8. #8
    Lively Member
    Join Date
    May 12
    Posts
    103

    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

  9. #9
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    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

  10. #10
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    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

  11. #11
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    and how i will programe them

  12. #12
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    and how i will progremme them?

  13. #13
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    its visual basic ... double click on timer
    than write code from text1.setfoucs to sendkeys "c"

  14. #14
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    you can do an example? plz

  15. #15
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    how to send u file ?

  16. #16
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    work ?
    Attached Files Attached Files

  17. #17
    Lively Member
    Join Date
    May 12
    Posts
    103

    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

  18. #18
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    click text box and press enter
    it will snd you msg your command
    Attached Files Attached Files

  19. #19
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    work ?

  20. #20
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    this think can de done with this thinks +-=/*?

  21. #21
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    yes see keyascii chart for key code

  22. #22
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    if i want to have combination of keys
    what i have to do?

  23. #23
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    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

  24. #24
    Lively Member
    Join Date
    May 12
    Posts
    103

    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

  25. #25
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    u want to pres "+" this key rit ?

  26. #26
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    yes but my comouter is mini and i dont have the keys next to main key board

  27. #27
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    if u r doing it bcoz of ur keybord then use virtual keybord to type

  28. #28
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    can write all letters of world pleaze

  29. #29
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    world keys ? what

  30. #30
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    bcoz can you explian please

  31. #31
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    i want to replace one button with one key where i have to write it?

  32. #32
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    plz clear ur question its confusing

  33. #33
    Lively Member
    Join Date
    May 12
    Posts
    103

    Re: keys

    i want to replace a dutton in form with a key on keyboard


    where i have to write the code

  34. #34
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    ok u want to press enter suppose and change the color ... like this ?

  35. #35
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    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.

  36. #36
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    inteveral = 1
    not 100

  37. #37
    Lively Member
    Join Date
    May 12
    Posts
    103

    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

  38. #38
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    option for wat ? explain wat u want more its confusing

  39. #39
    Lively Member
    Join Date
    May 12
    Posts
    103

    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

  40. #40
    Hyperactive Member
    Join Date
    May 12
    Posts
    338

    Re: keys

    entery key should do wat ? if u press button enter key should be press of key board ?

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •