Page 1 of 1
Offer a text based on what I'm typing
Posted: 12 Nov 2018, 08:10
by Terka
Hi,
I have a lot of hotkeys and I am forgetting them.
Would like to know if someone uses a script/tool/approach that's whispering possible hotkeys to quickly autocomplete while typing.
Or if you have some recommendations please share.
Thank you
Terka
Re: Offer a text based on what I'm typing
Posted: 12 Nov 2018, 08:17
by tonkomnom
What do you mean by 'whisper'? What do you use your hotkeys for? You might want to post your code, makes things way easier.
Re: Offer a text based on what I'm typing
Posted: 12 Nov 2018, 08:27
by Terka
whisper=autocomplete. Thank you, edited my first post to be better understandable.
Re: Offer a text based on what I'm typing
Posted: 12 Nov 2018, 08:37
by tonkomnom
Until you elaborate further, I'd say you'll want to use
Hotstrings. Not sure how you want to use autocompletion to remind you of hotkeys though.
Re: Offer a text based on what I'm typing
Posted: 12 Nov 2018, 09:02
by Terka
Yes speaking about both hotkeys, and mostly Hotstings. Speaking about if someone was solving such problem - how to remind what hotstrings to use...
Re: Offer a text based on what I'm typing
Posted: 12 Nov 2018, 09:11
by tonkomnom
Something like this?
Code: Select all
#SingleInstance, force
:*:lol::laughing out loud
:*:laughing out loud::
SplashTextOn, , 25, Title, You have a hotstring for this.
Sleep, 1000
SplashTextOff
Re: Offer a text based on what I'm typing
Posted: 12 Nov 2018, 09:19
by tonkomnom
I'm not using anything to remind me of hotkey/-strings, hence my trouble understanding your problem.
Re: Offer a text based on what I'm typing
Posted: 13 Nov 2018, 03:16
by Terka
Very funny. Anyone else please?
Re: Offer a text based on what I'm typing
Posted: 13 Nov 2018, 04:10
by tonkomnom
I wasn't trying to be funny or sarcastic even, but unless you post some examples of what you're trying to do or your code I seriously am at a loss.
Re: Offer a text based on what I'm typing
Posted: 13 Nov 2018, 10:24
by Terka
Re: Offer a text based on what I'm typing
Posted: 13 Nov 2018, 12:57
by list
Checkout TypingAid, AutoComplete and *cough Lintalist* see links @
https://github.com/ahkscript/awesome-AutoHotkey#typing
and Hotkey Help - Display Active AHK Hotkeys and Hotstrings @
https://autohotkey.com/boards/viewtopic.php?f=6&t=96
Re: Offer a text based on what I'm typing
Posted: 21 Nov 2018, 04:26
by SL5
I found this but not tested by myself. proably works great:
https://autohotkey.com/board/topic/9388 ... otstrings/
I would simply write result in a text file. for example called. _global.ahk and use it in
github>g_IntelliSense
Terka wrote: ↑12 Nov 2018, 08:10
Hi,
I have a lot of hotkeys and I am forgetting them.
Would like to know if someone uses a script/tool/approach that's whispering possible hotkeys to quickly autocomplete while typing.
Or if you have some recommendations please share.
Thank you
Terka
Re: Offer a text based on what I'm typing
Posted: 21 Nov 2018, 10:20
by Terka
Hi SL5 may I call you regarding your g_IntelliSense? Its faster than writing. Or we can use skype.
I'm from Czech republic, speak English
Thank you
Terka
Re: Offer a text based on what I'm typing
Posted: 21 Nov 2018, 11:53
by SL5
Terka wrote: ↑21 Nov 2018, 10:20
Hi SL5 may I call you regarding your g_IntelliSense? Its faster than writing. Or we can use skype.
I'm from Czech republic, speak English
Thank you
Terka
of course, but I prefer using telegram or google hangout or riot.
we make the further communication via private messages? I'm writing you one now I think that's not of public interest.
Re: Offer a text based on what I'm typing
Posted: 21 Nov 2018, 16:49
by bitx0r
Code: Select all
/* _ _ ___ _ _
/_\ _ _| |_ ___ / __\___ _ __ ___ _ __ | | ___| |_ ___
//_\\| | | | __/ _ \ / / / _ \| '_ ` _ \| '_ \| |/ _ \ __/ _ \
/ _ \ |_| | || (_) / /__| (_) | | | | | | |_) | | __/ || __/
\_/ \_/\__,_|\__\___/\____/\___/|_| |_| |_| .__/|_|\___|\__\___|
v1.0 Coded by errorseven 1/23/17 |_|
Proof of Concept showing Incremental Algorithm
that most word processors use for AutoComplete feature.
Usage:
- Automatically Retrieves list via WinHTTP (Requires Internet)
- Press Ctrl + F1
- Type command
- Press Enter for Autocompletion
*/
displayValues := []
x := []
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "https://autohotkey.com/docs/commands/index.htm", true)
whr.Send()
whr.WaitForResponse()
webpage := whr.ResponseText
document := ComObjCreate("HTMLfile"), document.Write( webpage )
Loop % document.GetElementsByTagname("A").length
x.push(document.GetElementsByTagname("A")[ A_Index-1 ].InnerText)
^F1::
CommandOn := True
Keys := ""
Loop {
Input, Key, L1 C V, {Enter}
If (InStr(ErrorLevel, "EndKey")) {
Value := displayValues[1]
ToolTip
SendInput % "{Backspace " StrLen(Keys) + 1 "}" Value "{" StrSplit(ErrorLevel, "EndKey:").1 "}"
CommandOn := False
Break
}
else {
displayValues := []
keys .= Key
Gosub, Display
}
}
return
$BackSpace::
keys := SubStr(keys, 1, -1)
sendInput, {BackSpace}
If (CommandOn)
GoSub, Display
return
Display:
Len := StrLen(keys)
For e, v in x {
If (keys == SubStr(v, 1, Len))
displayValues.push(v)
}
r := ""
For, e, v in displayValues
r .= v "`n"
ToolTip, %r%, % A_CaretX, % A_CaretY+15
Return
You can use this for any list of words / commands.