Results 1 to 6 of 6
  1. #1
    Pietro_V is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2020
    Location
    Italy
    Posts
    7

    Mouse movement restricted in debug mode

    Hello
    I'm facing a very frustrating issue:
    when the code is halted in debug mode and the source window pops up, the mouse cursor movement is restricted just to the client area of the main access window (that is in background).
    I work with a large desktop, 2560x1440, so the access window occupy just a partial area of it. When the VBA code come in foreground when a breakpoint is encountered, I can not move the mouse over it if it is not perfectly overlapped to the access window in background!

    This is really weird: does anyone had similar problem ?


    Any solution or workaround ?

    Thanks
    Pietro

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    it must be you. My mouse can travel anywhere with ease w same screen resolution as yours.

    did you try changing the mouse settings in control panel to move faster?

  3. #3
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    Access doesn't always play nice with 4k monitors, to the point where I abandoned mine and use 3x24" HD monitors instead.

    If it's not your only monitor and you have a normal HD resolution one as well, I would suggest making the Normal one your "Main" windows monitor and see if that helps.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    I've experience the problem before and found a solution, but can't remember what it was

    something like the esc key or ctrl-break

  5. #5
    Pietro_V is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2020
    Location
    Italy
    Posts
    7
    Thanks Ajax,
    I will try.
    In the meantime I have found a workaround: when the code break I "alt-tab" to some other application, realize that the mouse can works well outside the invisible boundary, and then I "alt-tab back to the vba editor anc can work without problem.
    No idea where this issue come from, but I just experienced it on another PC with just an common HD monitor 1920x1080...
    At least there is a workaround...
    Pietro

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,973
    Hi
    Not sure whether its relevant but I know how to restrict the mouse cursor to a specific area and how to release it again.
    Try the attached example app which I created a few years ago

    IMPORTANT:
    Save the file to a trusted location before you run it
    Whilst the app is running, the entire background is removed including the taskbar, desktop icons etc. These are all restored when the app is closed

    When opened, all buttons on the form are disabled except one and mouse movement is restricted to the form.
    Click the Enable Cursor button to release the mouse and enable all other buttons on the form.
    The mouse actions are controlled using APIs - check the code to see how it works

    NOTE
    The API declarations need to be modified to work correctly in 64-bit Access. If that affects you, let me know & I'll deal with it in the next day or two
    Attached Files Attached Files
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Simulating mouse movement and clicking....
    By rpeare in forum Programming
    Replies: 10
    Last Post: 07-29-2018, 07:21 PM
  2. Requery only works in debug mode
    By Robyn_P in forum Forms
    Replies: 6
    Last Post: 11-28-2017, 03:48 AM
  3. Code runs in break/debug mode but not in normal mode
    By hansendl in forum Programming
    Replies: 2
    Last Post: 10-15-2014, 07:23 AM
  4. Replies: 4
    Last Post: 11-26-2013, 10:47 AM
  5. Replies: 1
    Last Post: 03-29-2009, 08:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums