ALT+Key L and R click

This is the place for comments, criticisms and even the occasional compliment related to the SmartNav drivers and profiler. Also the place to discuss and review support issues.
Post Reply
bchavez
Posts: 5
Joined: Fri Nov 19, 2010 1:14 am

ALT+Key L and R click

Post by bchavez »

Hi,

I'm using the latest SmartNav software 3.20.037.

I would like to set ALT+J for my L click and ALT+K for my Right click.

However, I get the following error:

---------------------------
Modifier keys cannot be used with clicking hotkeys. This allows things such as shift-click and ctrl-click to function normally.
---------------------------

I am able to set any ALT+Key combination in the "Behavior" tab, but I cannot set ALT+Key combination in the "Clicking" tab.

I understand most programs use ALT for menu navigation, but I want SmartNav to use the ALT combination for L and R click.

At the very least, I think a warning should appear with the option to override the warning.

I have also tried to modify my "Default.xml" profile with the correct Key name and virutalKeyCode, but I believe SmartNav is actively filtering out L and R click + ALT key combinations.

Thanks,
Brian
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: ALT+Key L and R click

Post by Birch »

Hello,

Instead of blocking hotkeys with modifiers for clicking we will change it to warn and require confirmation to use modifiers. This change will be available in the next release of the SmartNav software, we will also make a pre-release test build available to you through your existing email support request.
bchavez
Posts: 5
Joined: Fri Nov 19, 2010 1:14 am

Re: ALT+Key L and R click

Post by bchavez »

AWESOME! Thanks!

I downloaded and installed it. I really appreciate it!

My ideal case would be to use keys J and K for L and R click.

But I noticed when you Pause, the L and R hot keys are still active. So, typing things like "Thin[K]" causes the R click hotkey to activate when SmartNav is paused.

What do you think about having an _option_ to enable/disable hot keys when SmartNav is paused?
(all except of course the pause/re-enable hotkey)

An option like this would allow the use of J and K as normal keys when SmartNav is not actively controlling the mouse.

Thanks so much for your help and support.

My goal is to use J K for L R click, and F for precision. Only when I need to move the mouse. By the way, I'm using this for coding with Visual Studio 2010 and I like not having to use the mouse anymore. :D

http://www.youtube.com/watch?v=eIZhp9w0Q_U

-Brian
bchavez
Posts: 5
Joined: Fri Nov 19, 2010 1:14 am

Re: ALT+Key L and R click

Post by bchavez »

Also, what are your thoughts on...

A "sticky" option for "Mouse Override Delay" behavior.

So, if you touch/move the physical mouse, SmartNav automatically pauses and gives precedence to the physical mouse.

I find it a bit awkward when using the override delay & when I move my physical mouse, then all of a sudden SmartNav snaps back on trying to control it.

------

A "sticky" option for "Pause When Typing Delay" behavior.

So, if you begin typing, SmartNav automatically pauses until re-enabled on demand. When used in conjunction with the Pause/Unhook global hotkeys, SmartNav effectively gets out of the way, and allows the user to type once again with J and K.

(unless starting out with a J or K, in which a explicit pause would be necessary)

-Brian
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: ALT+Key L and R click

Post by Birch »

Hello,

We found and fixed an issue with the pre-release build provided to you where the clicking hotkey was being incorrectly trapped even when the modifier was not pressed. We've updated the build at the original link with this fix, please re-download to see if it works better.

Your other requests are good ideas. We will add them to our feature request list but do not have a timeline for adding them right now.
bchavez
Posts: 5
Joined: Fri Nov 19, 2010 1:14 am

Re: ALT+Key L and R click

Post by bchavez »

Hi Birch,

I've created an AutoHotkey script to overcome SmartNAV limitations.

The problem is: I want to use J, K as L and R click but only when SmartNAV is tracking.

When SmartNAV is paused, I don't want SmartNAV continuing to hog the J and K keys because I need them for typing.

Here is my script which over comes this limitation:

CTRL+SHIFT+SPACE engages and disengages SmartNAV

AutoHotkey.ahk

Code: Select all


^+Space::
   lastHWND := WinExist("A")
   MouseGetPos, mX,mY
   
   if( WinExist("SmartNAV - Paused") )
   {
      ; not tracking, but turn it on
      ToggleSmartNav(false)
   } 
   else if( WinExist("SmartNAV - Tracking") )
   {
      ; tracking, but turn it off
      ToggleSmartNav(true)
   }
  
   WinActivateBottom, ahk_id %lastHWND%
   
   MouseMove, mX,mY ; restore mouse pos
   
   return

ToggleSmartNav( isTracking ){
        
    WinActivate  ; Activate SmartNav main window
     
    if( isTracking ){
       Send p ; to stop tracking
    }
      
    Click 70, 90   ; Click on "Clicking..." button
      
    WinWaitActive, SmartNAV Settings
         
    ToggleSmartNavHotkeys( !isTracking )
            
    WinClose
          
    if( not isTracking ){
      Send p ; to unpause and track
    }
}
ToggleSmartNavHotkeys(check){
   if( check ){
      Control, Check, , Button3  ;Enable Left Click hotkey
      Control, Check, , Button6  ;Enable Right Click hotkey
      Control, Check, , Button9  ;Enable Middle Click hotkey
      
      Click 188, 40  ; Click on "Behavior" tab
      Sleep 100
      
      Control, Check, , Button3  ;Enable Pause hotkey
      Control, Check, , Button6  ;Enable Center hotkey
      Control, Check, , Button8  ;Enable Scroll hotkey
      Control, Check, , Button11 ;Enable Precision hotkey
   }
   else{
      Control, Uncheck, , Button3  ;Disable Left Click hotkey
      Control, Uncheck, , Button6  ;Disable Right Click hotkey
      Control, Uncheck, , Button9  ;Disable Middle Click hotkey
      
      Click 188, 40  ; Click on "Behavior" tab
      Sleep 100
      
      Control, Uncheck, , Button3  ;Disable Pause hotkey
      Control, Uncheck, , Button6  ;Disable Center hotkey
      Control, Uncheck, , Button8  ;Disable Scroll hotkey
      Control, Uncheck, , Button11 ;Disable Precision hotkey
   }
}
It's really a major hack... :(

-----

Also, does SmartNAV any WndProc API?

I think my hack would be better if there was a way to send SmartNAV a custom WM_ message to enable / disable hot keys instead of having to forcibly open the GUI settings window and Check/Uncheck the "Enable" checkbox.
Post Reply