Reply
Solved! Go to solution

Caps Lock for Solid Edge

Anyone know of a good caps lock for solid edge? i've been using capwiz and seam's like it dosen't want to work with SE anymore

16 REPLIES

Re: Caps Lock for Solid Edge

hmm...never heard of such a thing. Waiting for the replys!

Re: Caps Lock for Solid Edge

If this were me I would use AutoHotkey functionality and simply assign the Caps Lock to be on only in the Solid Edge window…

 

…but then again I use AutoHotkey for a lot of things.  Definitely not an out-of-the-box solution and most probably not suitable unless you have need to automate keystroke routines/keyboards remapping.

 

P.S.  AutoHotkey can also be used to create faux Solid Edge macros by automating keystrokes ;-)

Re: Caps Lock for Solid Edge

If this were me I would use AutoHotkey functionality and simply assign the Caps Lock to be on only in the Solid Edge window…

 

…but then again I use AutoHotkey for a lot of things.  Definitely not an out-of-the-box solution and most probably not suitable unless you have need to automate keystroke routines/keyboards remapping.

 

P.S.  AutoHotkey can also be used to create faux Solid Edge macros by automating keystrokes ;-)

Re: Caps Lock for Solid Edge

[ Edited ]

If this were me I would use AutoHotkey functionality and simply assign the Caps Lock to be on only in the Solid Edge window...

 

...but then again I use AutoHotkey for a lot of things.  Definitely not an out-of-the-box solution and most probably not suitable unless you have need to automate keystroke routines/keyboards remapping.

 

P.S.  AutoHotkey can also be used to create faux Solid Edge macros by automating keystrokes ;-)

Re: Caps Lock for Solid Edge

If this were me I would use AutoHotkey functionality and simply assign the Caps Lock to be on only in the Solid Edge window…

 

…but then again I use AutoHotkey for a lot of things.  Definitely not an out-of-the-box solution and most probably not suitable unless you have need to automate keystroke routines/keyboards remapping.

 

P.S.  AutoHotkey can also be used to create faux Solid Edge macros by automating keystrokes ;-)

Re: Caps Lock for Solid Edge

do you have a picture of the script for that function? never used Autohotkey before...

Solution
Solution
Accepted by topic author TDB
‎10-29-2015 01:17 PM

Re: Caps Lock for Solid Edge

I just found out CapWiz is alive and well. getting support to get me back and going. This isn't free. i thinks like $10us and well worth it if i remember right

Re: Caps Lock for Solid Edge

@Jramsey85  here is some sample code for a simple AutoHotkey [AHK] script to enforce toggling of both the Caps and Num lock keys to always be on whenever Solid Edge is the active window:

 

; SetLocks4SE
; Copyright (C) 2015 David C. Merritt, david.c.merritt@siemens.com
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program.  If not, see <http://www.gnu.org/licenses/>.
;
; ---------------------------------------------------------------------
;
; AutoHotkey script to enforce the toggling of the Caps and Num locks to 
; always turn on whenever Solid Edge is the active window. 
;
; ---------------------------------------------------------------------
;
; 27/10/2015  merritt  initial release

#SingleInstance, Force
#InstallKeybdHook
#Persistent

AppName=SetLocks4SE
Menu, Tray, Icon, %A_WinDir%\System32\shell32.dll, 105
Menu, Tray, Tip, Set Caps and Num locks for Solid Edge

; set to false to not enforce locks
EnforceCapslock := true
EnforceNumLock  := true

SetTimer, EnforceLocks, 500
Return

EnforceLocks:
    WinGet, CurrentProcess, ProcessName, A       
    if (CurrentProcess == "Edge.exe")
    {   
        if (EnforceCapslock)
        {
            SetCapsLockState := GetKeyState("CapsLock", "T")
            IfEqual, SetCapsLockState, 0
            {
                SetCapsLockState, On       
                Tooltip, Caps Lock: On
                SetTimer, RemoveToolTip, 750
            }
        }
        
        if (EnforceNumLock)
        {
            SetNumlockState := GetKeyState("NumLock", "T")
            IfEqual, SetNumlockState, 0
            {
                SetNumlockState, On          
                Tooltip, Num Lock: On
                SetTimer, RemoveToolTip, 750
            }
        }
    }
Return

RemoveToolTip:
    SetTimer, RemoveToolTip, Off
    ToolTip
return

; Win + p pauses the script in case you need the locks
#p::
    TrayTip, %AppName%, Lock Enforcer paused, 30, 1
    Pause,,1
return

; Win + q exits
#q::ExitApp


I have also uploaded the code for your convenience.  In the attached .7z file is both the AHK source code and a compiled exe.

 

Without AHK installed you can use the .exe as is but obviously cannot tweak the code. With AHK installed you can tweak the code, turn of either the Caps and/or Num locks monitoring, change the control keys, customize further, etc.

 

To use, if you have AHK installed you can simply double-click the .ahk to run. If you do not have AHK installed then double-click the .exe file.

 

When the script is running it will sit resident in your tool tray. As soon as Solid Edge is the active window the Caps and Num lock states will be checked, and if off, automatically turned on.

 

Win + P will pause / unpause the script if you need to turn off/on the lock enforcement when in Solid Edge.

 

Win + Q will exit the script.

 

Not a fully fleshed out utility but it works and is also free.  YMMV Robot wink

 

P.S. Should add, tested with ST8 MP2 on Win 10.

Re: Caps Lock for Solid Edge

Oh Wow! Thanks a lot @uk_dave !! Gonna try it out!