DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Select ENTER with mouse click  (Read 5,631 times)

1NR1

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 34
Select ENTER with mouse click
« on: February 13, 2013, 01:13 AM »
Hello,
Possibly someone here can direct me.

First off I use a trackball. Others may also do so for accessibility/adaptive reasons. 

Is there a way to click "something" on-screen that would substitute for pressing the enter key? A preference would be not an onscreen keyboard, unless it could be modified for possibly a small single line or best, one key (obviously the ENTER key).

Thanks for your attention.

NR
Washington DC

Tinman57

  • Duck! It's another MicroSoft Patch!
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,702
    • Military Service Badge - US Air Force
Re: Select ENTER with mouse click
« Reply #1 on: February 13, 2013, 02:26 AM »
  You can remap a key combination or hotkey, depending on your keyboard software.  Otherwise you can install a keymapper, which there are a number of free ones available...
((((TINMAN))))

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
Re: Select ENTER with mouse click
« Reply #2 on: February 13, 2013, 03:27 AM »
The problem with clicking someplace outside the window you are working on is that you will change focus, so any <Enter> or <Return> at that point wouldn't happen in the correct window, at least not with only a few lines of script.

I use mouse rocker combinations (hold down one button and click/doubleclick/triple click the other, hold down one button and click the scroll wheel, hold down one button and roll the scroll wheel) for a variety of things: cut, copy, paste, delete, return, escape, close tab.

Each assignment is a few lines of Autohotkey script.  I use LeftButton/ScrollDown for <ENTER>, maybe that sort of thing would work for you adjusted to the trackball.  A snippet of code I lifted/copied/adapted from someone/someplace else:
Code
~LButton & WheelDown::
    Send,{LButton Up}
    GetKeyState, State, WheelDown
    If State = U
        {
            Send,{Enter}
            ToolTip, Enter
            SetTimer, RemoveToolTip, 2000
        }



1NR1

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 34
Re: Select ENTER with mouse click
« Reply #3 on: February 14, 2013, 02:05 AM »
Thank you both very much.  As usual DonationCoder.com comes through with flying colors.
NR

Original address: https://www.donationcoder.com/forum/index.php?topic=34008.0