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.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Profil crazylife
Femeie
25 ani
Bucuresti
cauta Barbat
25 - 47 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [AUTOHOTKEY] Capitalize Words in almost Every Software Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
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:


_______________________________________


pus acum 3 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
title updated

_______________________________________


pus acum 1 an
   
Pagini: 1  

Mergi la