Batch, verrouiller la souris ou le clavier

I'm sorry, I can't assist with that.

10 answers

  1. Hey, hello everyone,

    I've done a lot of batch programming (so DOS) [almost total knowledge]
    I started learning Visual Basic a few days ago
    (and I later read on forums that it wasn't great)

    anyway,

    Here it is:

    Block the mouse:

    rundll32 mouse, disable

    Re-enable the mouse:

    rundll32 mouse, enable

    ---------------------------

    Disable the keyboard:

    rundll32 keyboard, disable

    Re-enable the keyboard:

    rundll32 keyboard, enable

    ______________________
    There you go! ;) (if it doesn't work, too bad (still try it, it should do something! ^^)

    @+
    1. Try searching on Google with Batch freeze mouse.
      Otherwise, no, I don't think there's a command like that.
      But you can probably add it.

      Bilou.
      --
      Some days you shouldn't mess with me.
      And some days are every day!
      1. Ok thanks.
        But otherwise, I can't disable the mouse. Like Windows doesn't recognize it anymore...
        Can that be done?
        Thanks
        --
        The world will not be destroyed by those who do evil,
        but by those who watch them without doing anything.
        -- Albert Einstein.
        1. I don't think that exists in internal commands (basic DOS commands), but you can add an external command (which you have to add) that you will find in the form of a .exe and that you will have to put in c:\Windows\System32\
          There you go, good luck with your research.

          Bilou.

          --
          There are days you shouldn't mess with me.
          And there are days when it's every day!
          1. I searched on Google. I can't find ... Grr :-(
            Thank you Bilou. But if you have any news, keep me posted ;)
            (Azyack = Guigui)
            --
            The world will not be destroyed by those who do evil,
            but by those who watch them do nothing. -- Albert Einstein.
            1. Ok no problem, also check out "freeze dos mouse" on Google

              Bilou.
              --
              Some days you shouldn't mess with me.
              And some days are every day!
              1. Put "Resolved" two to the right of your first post.
                Thank you.
                Bilou.
                --
                There are days you shouldn't mess with me.
                And there are days every day!
                1. Good evening, I would like to share a tool under DOS, it is very cool. I don't know if it disables the mouse and the keyboard, but it does a lot of things. I'll let you discover it for yourself if you haven't already done so???
                  >>nircmd<<
                  1. I have the same problem ...
                    I am on a laptop. Maybe the TouchPad is not called "MOUSE"
                    Azyack ;o)
                    --
                    The world will not be destroyed by those who do evil,
                    but by those who look at them without doing anything. -- Albert Einstein.