put caret in search field in Logiterm with a keyboard shortcut?
Thread poster: Michael Beijer
Michael Beijer
Michael Beijer  Identity Verified
United Kingdom
Local time: 13:54
Member (2009)
Dutch to English
+ ...
Nov 17, 2019

I just sent this to LogiTerm support, thought I'd ask here too:

Is there any way to get to the search field in Logiterm with a keyboard shortcut?

I'm working on an AutoHotkey script to automatically search my LT database...

Michael


 
xxRGProz (X)
xxRGProz (X)  Identity Verified
Spain
Local time: 14:54
F6 = focus in search box | And a script that might help Nov 18, 2019

Hi Michael,

You can press F6 to focus on the search box in LogiTerm:

F6

Or you could also use this in AutoHotkey: ControlFocus, Edit1, ^LogiTerm Pro

This is the script I use, hope it helps:


SendMode, Input
SetTitleMatchMode, RegEx

; -- Win + w -> Search in LogiTerm

CheckKeysPressed:
While GetKeyState("Ctrl","P") || GetKeyState("LWin","P") || GetKeyState("RWin","P") || GetKeyState("Shift","P") || GetKeyState("Alt","P")
Sleep, 25
Return

SelectToClip:
Clipboard := ""
Send, ^c
ClipWait, 0
If ErrorLevel
Exit
Return

#w::
Gosub, CheckKeysPressed
Gosub, SelectToClip
Clipboard := RegExReplace(Clipboard, "^\s+|\s+(?=\s)|\s+$") ; remove extra spaces
If WinExist("^LogiTerm Pro ahk_exe ltwebclient.exe")
WinActivate
Else
{
Run, %ProgramFiles%\Terminotix\LogiTerm\ltwebclient.exe
WinWaitActive, ^LogiTerm Pro ahk_exe ltwebclient.exe,,5
If ErrorLevel
Return
Sleep, 1000
}
ControlFocus, Edit1, ^LogiTerm Pro ahk_exe ltwebclient.exe
Send, "%Clipboard%"
Send, {Enter}
Return


 
Michael Beijer
Michael Beijer  Identity Verified
United Kingdom
Local time: 13:54
Member (2009)
Dutch to English
+ ...
TOPIC STARTER
Thanks! Nov 18, 2019

Great, thanks for that!

I had another script interfering, which is why I didn't realise it was F6 (I tried them all).

Thanks especially for the info about the ControlFocus, Edit1 part, that was very useful.

Michael


 


There is no moderator assigned specifically to this forum.
To report site rules violations or get help, please contact site staff »


put caret in search field in Logiterm with a keyboard shortcut?






TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »
Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

Buy now! »