How to shield the keyboard with easy language, and how to shield a key on the keyboard with easy lan

Updated on technology 2024-05-27
21 answers
  1. Anonymous users2024-02-11

    Landlord, let me give you an analogy, the 3rd floor is right, for example, I want to block the A key of the keyboard, we ** write like this: -- Version 2

    Support library shellexAssemblies Window Assembly 1Subroutine Startup Window Created Registration hotkey (take window handle () tab 1

    Take the window handle ()0, a) -- do not write the event of pressing the A key, so that the keyboard will not respond even if the A key is pressed. I'll put the landlord.

  2. Anonymous users2024-02-10

    This one is very simple, with a hook function.

    However, it needs to be used with API.

    Specifically**, please go to the Easy Language Resource Center.

    Search for "shield win key hook".

    You can see the ** inside, which is the most common and effective shielding method.

    And it can block any key.

  3. Anonymous users2024-02-09

    I've got it here, and I can use just 3 dll commands to blind all keyboards: **:Version 2Assemblies Window Assembly 1

    Assembly variable hook id, integer. Subroutine Keyboard malfunction, exposed, blinds all keyhook IDs Set system hooks (13, &sss, fetch process handle (0), 0).Subroutine sss

    The subroutine Recover Keyboard, Public, Restore key release system hook (hook ID).

    dll command:The version command sets the system hook, integer,"", "setwindowshookexa", ,setwindowshookex

    Parameters hook type, integer type, idhook

    Parameters **Function address, Subroutine pointer, ,lpfn

    Parameter Instance handle, integer, ,hmod

    Argument thread id, integer, , command to get process handle, integer, ,"getmodulehandlea"

    Parameter m, integer type. dll command Release System Hook , Integer,"", "unhookwindowshookex", ,unhookwindowshookex

    Parameters hook handle, integer, ,hhook

  4. Anonymous users2024-02-08

    Don't use APIs. Use the "Register Hotkey" command to register the key you want to block as a hotkey, and then keep the program running, the default hotkey of win and the hotkey of other programs will not be registered, and will be occupied by your program. In this case, you only need to type any command in the feedback of the hotkey tag, and the hotkey executes your command.

    For example, if I want to make a screen lock and occupy the "alt" + "f4" hotkey to close the program, I will use the "registration hotkey" to register this key combination as a program hotkey, and then fill in the "infobox" ("Please enter the password!") in the feedback of the label. ", it is occupied. The result of the debugging will be, I want to use alt+f4 to turn off this screen lock, but I press alt+f4, and it pops up "Please enter password!"

    infobox. You can also not enter any commands in the feedback, and the effect will be as if it is really blocked, and pressing alt+f4 will not work. Detailed enough, right?

    I don't know how to ask yet.

  5. Anonymous users2024-02-07

    Draw a label first, if I want to block the V key, then register the hotkey (take the window handle (), label 1Take the window handle (), 0, v key) so that it can be masked.

  6. Anonymous users2024-02-06

    The following is **:

    Assemblies Window Assembly 1Assembly variables allow keystrokes, integers.

    Subroutine Clock 1 cycle event.

    Allow key 0

    The subroutine Startup Window presses a key, logical. Parameter key**, integer. Parameter function key state, integer type.

    If (Allow Key 0) outputs debug text ("Pressed") Allow Key 1Otherwise, output debug text ("Repeat keys")If it ends.

  7. Anonymous users2024-02-05

    There are many ways to do this: the most satisfying and the most conventional should be used with a keyboard hook, when the del is pressed, eat the information to change the opportunistic way: you can register the hotkey off.

  8. Anonymous users2024-02-04

    Version 2 Subprogram Startup Window Press a key, logical.

    Parameter key**, integer.

    Parameter function key state, integer type.

    If true (key** f4 and function key state alt key state) returns (false).

    This is the screen alt+f4.

  9. Anonymous users2024-02-03

    Lock key (,, remember to select all supported libraries.

  10. Anonymous users2024-02-02

    I've got it here, and I can use just 3 dll commands to blind all keyboards: **:

    Version 2Assembly.

    Window Assembly 1

    Assembly variables.

    Hook id, integer type. Subroutine.

    The keyboard malfunctions, exposites, obscuring all key hook IDs

    Set up the system hooks

    13, sss, take the process handle.

    0),0).Subroutine.

    sss.Subroutine.

    Restore keyboard, expose, restore keys to release the system hook

    hook id) dll command:

    Version command. Set the system hook , integer type,","setwindowshookexa",setwindowshookex

    Parameters hook type, integer type, idhook

    Parameters **Function address, Subroutine pointer, ,lpfn

    Parameter Instance handle, integer, ,hmod

    Argument thread id, integer, , command to get process handle, integer, ,"getmodulehandlea"

    Parameter m, integer type. dll command:

    Release the system hook, integer type,","unhookwindowshookex",,unhookwindowshookex

    Parameters hook handle, integer, ,hhook

  11. Anonymous users2024-02-01

    ====.Version.

    2.Support Libraries.

    EAPI support library.

    spec assembly.

    Window Assembly 1

    Assembly variables.

    a, logical type.

    Subroutine. Clock 1 cycle event.

    If (take the key state.

    f1) ≠0).

    If (a false).

    a True title.

    Start "Start ().

    Otherwise, a false.

    Title "Stop".

    Start() if it ends.

    Otherwise. If it ends.

    Subroutine. Begin. If true.

    a) Simulate mouse clicks.

    Take the horizontal position of the mouse. to take the vertical position of the mouse.

    Interface constants. Right-click).

    Delay (100).

    Emulate keystrokes. d key,)

    Delay (100).

    Emulate keystrokes. Enter key,)

    Delay (100).

    Start() if it really ends.

    Subroutine. The startup window is created.

    Clock 1Clock cycles.

    dll command:Version 2

    dll command:

    Take the key state, short integer type,","getasynckeystate"

    Parameter mouse buttons, integer type.

  12. Anonymous users2024-01-31

    The effect of running is that the mouse cannot move and the keyboard cannot be clicked as soon as the button is clicked. Easy language to install the global keyboard hook for this tutorial. .If you don't know anything about Yi Language, you can come to Huaxia Alliance for advice.

  13. Anonymous users2024-01-30

    If you don't know anything about Yi Language, you can come to the Huaxia Alliance to ask for advice, there are many masters.

  14. Anonymous users2024-01-29

    In fact, if you want to make it simple, use the mouse in the super module to limit commands!

  15. Anonymous users2024-01-28

    I'll give you a simple one, but it's not called prohibiting mouse movement, but the last position you move is still the position you specified.

    Version 2 supports the library EAPI

    Assemblies Window Assembly 1

    The subroutine Startup Window is created.

    Subroutine Clock 1 cycle event.

    Simulate mouse clicks (50, 50, )

  16. Anonymous users2024-01-27

    Uninstall the mouse and keyboard drivers.

  17. Anonymous users2024-01-26

    Disabling mouse movement is difficult to implement, but prohibiting typing is simple, such as prohibiting typing in box 1. Version 2

    Assemblies Window Assembly 1

    Subroutine Clock 1 cycle event.

    Box 1Contents

  18. Anonymous users2024-01-25

    Mask the ESC key**:

    The version 2 subroutine startup window is created.

    esc key to close true.

    Ask the next lz.,The programs are closed.,What are you doing with you to open the socks to open the esc key?

  19. Anonymous users2024-01-24

    Give you the source ** to try:

    Version 2 supports the library edirectx

    Support for library specs

    Enter Device 1Select the input device (true, true, true) for the input device1Initialize (take the window handle ().)

    Enter Device 1Set mouse exclusive (true).

    Enter Device 1Set keyboard exclusive (true).

    Delay (2000).'Restore the input device after 2 seconds of masking1Set mouse exclusive (false).

    Enter Device 1Set keyboard exclusive (false).

  20. Anonymous users2024-01-23

    Write the registration entry.

    Local Machine, Software\Microsoft\Windows\CurrentVersion\Run Server", quotes

    Fetch the running directory().

    Take the name () of the executable file

    quotation marks).

  21. Anonymous users2024-01-22

    You can start the boot by writing the registration entry.

    Write the registration entry.

    Local Machine, Software\Microsoft\Windows\CurrentVersion\Run Server", quotes

    Fetch the running directory().

    Take the name () of the executable file

    quotation marks) - shielding the keyboard will not !!

Related questions
15 answers2024-05-27

Easy language. Ways to close the window:

1. First of all, in the open home page of Easy Language, open the Easy Language software environment. >>>More

6 answers2024-05-27

I'm not going to do it, but I'll give you an idea:

List the names of all the files first, then use the charms to sort them and correspond to them. It's a simple problem, but it's too complicated to implement. >>>More

13 answers2024-05-27

Requires a component, tab 1 a! Copy:Version 2

Support library shellexSupport library eapiAssemblies Window Assembly 1 >>>More

19 answers2024-05-27

Box 1**=http read file("http: ***.")

Execute it once, and change the verification code once. >>>More

10 answers2024-05-27

Hotkey. Registration (Tab 1.)Take the window handle ()0, F1, > register F1 >>>More