+ Reply to Thread
Results 1 to 6 of 6

BlockInput Not Working.

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    BlockInput Not Working.

    Hi Guys,

    Please help me here..the idea being whenever I run the following code, the user should not be able to use the mouse or keyboard. However- the mouse doesnt block, rather nothing freezes. guide me in the right direction.

    Please Login or Register  to view this content.
    Last edited by yoursamrit2000; 06-18-2019 at 03:18 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,912

    Re: BlockInput Not Working.

    Why are you using blockinput if you don't want to block the mouse?
    Rory

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    Re: BlockInput Not Working.

    Sorry, lemme clarify- I do want to block mouse and keyboard, The idea is- the code that I use uses a series of mouseclicks and Keyboard clicks in a loop. and while that code is running, I want the user to be not able to use the mouse or the keyboard. BUT when I use the aforementioned function the userinput is not blocked. How can I accomplish this.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,912

    Re: BlockInput Not Working.

    Have you tried just setting application.interactive to false?

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    Re: BlockInput Not Working.

    I have tried it but it doesnt solve the purpose. The users are still able to move the mouse, which can screw the mouse click event which uses setcursorpos function (Api). So, really not looking for that. What I want is to block the user from changing the mouse position (as it is being set by VBA code) or use keyboard.

  6. #6
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97
    Quote Originally Posted by yoursamrit2000 View Post
    I have tried it but it doesnt solve the purpose. The users are still able to move the mouse, which can screw the mouse click event which uses setcursorpos function (Api). So, really not looking for that. What I want is to block the user from changing the mouse position (as it is being set by VBA code) or use keyboard.
    Bumping the post

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-30-2017, 02:32 AM
  2. Replies: 1
    Last Post: 02-27-2016, 06:28 PM
  3. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  4. Replies: 4
    Last Post: 09-03-2013, 02:52 AM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  7. Replies: 1
    Last Post: 01-26-2005, 04:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1