Assembly(Problem)Hurrry

This is a discussion on Assembly(Problem)Hurrry within the Tech Board forums, part of the Community Boards category; I want to get a code :: In Assembly language=> Quest=> Disable any Key of Keyboard as user wants + ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    5

    Assembly(Problem)Hurrry

    I want to get a code :: In Assembly language=>

    Quest=> Disable any Key of Keyboard as user wants

    +

    recover it also.

    Problem Discription=>

    U should Run the programme , press any key u want

    to be disabled and then exit programme....... then,

    ur specific key must not work in any application of windows.

    +

    programme must have a utility to recover key so that by again

    running the programme we can enable that key

    ( Mail it as soon as possible)

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Why assembly when you can do this easilly in C++ with a global hook?

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Let me think about this for a second. Here is the solution to the homework problem. DO IT YOURSELF YOU LAZY SLIME

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    If you can't even start this in DOS assembly you have no business messing with it in Windows.

    The DOS assembly is not hard but it does require some understanding of advanced concepts. Here is a small snippet

    Code:
    ....
    push    di
    les       di,[Keys]
    in         ax,060h
    cmp      ax,127
    ja         KEYUP
    add      di,ax
    mov      es:[di],1
    jmp      DONE
    KEYUP:
    and      ax,07Fh
    add      di,ax
    xor       es:[di],es:[di]
    DONE:
    pop      di
    iret
    ...
    Not sure about the xor es:[di],es:[di] - might be better to do a mov es:[di],0.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21