topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 6:54 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Select ENTER with mouse click  (Read 3815 times)

1NR1

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 34
    • View Profile
    • Read more about this member.
    • Donate to Member
Select ENTER with mouse click
« on: February 12, 2013, 07:13 PM »
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

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,702
    • View Profile
    • Donate to Member
Re: Select ENTER with mouse click
« Reply #1 on: February 12, 2013, 08:26 PM »
  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...

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: Select ENTER with mouse click
« Reply #2 on: February 12, 2013, 09:27 PM »
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:
~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
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Select ENTER with mouse click
« Reply #3 on: February 13, 2013, 08:05 PM »
Thank you both very much.  As usual DonationCoder.com comes through with flying colors.
NR