Mouse\Keyboard block

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • servint
    Forum Member
    • Sep 2007
    • 3

    Mouse\Keyboard block

    Hi everybody!

    I have a little question:

    Is there a way to block mouse and\or keyboard for a while and then unblock them?

    I'll appreciate all your help!
  • pem
    New Member
    • Dec 2007
    • 21

    #2
    Hi Welcome,

    Put this codes on Global Functions :

    Code:
    function BlockInput(val)
      if val == true then
        DLL.CallFunction("user32.dll", "BlockInput", "1", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
      else
        DLL.CallFunction("user32.dll", "BlockInput", "0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
      end
    end
    then must call this function.
    For eg:
    Code:
    Application.Sleep(3000)
    
    BlockInput(true)
    
    Application.Sleep(3000)
    
    BlockInput(false)
    Enjoy.

    Comment

    • servint
      Forum Member
      • Sep 2007
      • 3

      #3
      Thanks a lot!
      As I see I need a list of available functions (calling User32.dll).
      Where can I get them?

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5478

        #4
        As I see I need a list of available functions (calling User32.dll).
        Where can I get them?
        download my dll function viewer from my site



        load user32 dll (eg: c:\Windows\System32\user32.dll) and you have a list of the functions, you can search the functions in google or MSDN to get the arguments

        or, download the attached text file
        Last edited by RizlaUK; 02-16-2010, 05:02 AM.
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • servint
          Forum Member
          • Sep 2007
          • 3

          #5
          Originally posted by RizlaUK View Post
          download my dll function viewer from my site



          load user32 dll (eg: c:\Windows\System32\user32.dll) and you have a list of the functions, you can search the functions in google or MSDN to get the arguments

          or, download the attached text file
          Thank you!
          I was looking for that!

          Comment

          Working...
          X