Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: ro_xy20 pe Simpatie
 | Femeie 24 ani Bucuresti cauta Barbat 24 - 45 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
|
|
The following script will automatically capitalize the first word of a sentence in almost any program. I am using it right now, and after I use the full stop, without pressing SHIFT it automatically starts with capital letter. Testing. Working.
You gonna need AutoHotkey free software for this to work, so install it.
Afterwards, just copy the code below to notepad and save with .ahk extension, then double click to open the ahk file.
#NoEnv Menu Tray, Icon, imageRes.dll, 118 SetKeyDelay, -1 x := True ; start off script with an assumed capital (true) R := True ; always capitalize after typing return E := "{Return}" ; list of endkeys to trigger capitalizing
Loop { Input, key, C I L1 V, %E% on_endkey := R ? InStr(ErrorLevel,"EndKey") : false ; when triggered and lower case: if( x && RegExMatch(key,"[a-z]") ) { ; initialized, or there was a whitespace or return typed before this key if( !key_prev || key_prev = "EndKey" ) { Send {Backspace}+%key% } ; or, if a number was not typed (don't interrupt typing float numbers) else if key is not integer { Send {Backspace}{Space}+%key% } x := False } else if( key != "" ) ; a non-EndKey { if InStr(".?!", key) x := True ; trigger set else if key is upper x := False ; Don't capitalize after a capital! else if key is integer x := False ; Don't capitalize after a number key_prev := key } else if on_endkey ; Key is blank due to Endkey matching { x := True ; trigger set key_prev := "EndKey" } } |
Source: https://autohotkey.com/board/topic/1329 ... /?p=716128 https://forum.softpedia.com/topic/11785 ... ma-litera/
_______________________________________

|
|
| |
|
| #2 |
|
|
title updated
_______________________________________

|
|
| |
|