A script to draw brackets on the screen to help with segmenting long sentences

A key part of the translation process is going through long sentences and figuring out the sections that make up the sentence that will need to be in the translation, but often in a different order.

This script allows you to add ( and ) marks on top of the screen to see these different parts of the sentence more clearly.

Just click Ctrl Shift Left button for ( and Ctrl Shift Right button for )

Note that these brackets are just placed on top of the screen so they will not move when you scroll or be saved in the file at all.

You can clear them by hitting Escape and they will also be cleared when you hit Ctrl Enter to confirm the segment

CoordMode, mouse, screen

^+Lbutton::
MouseGetPos, x, y
x2:=x-50
y2:=y-60
Gui, New
Gui, +LastFound +AlwaysOnTop +Owner -DPIScale -Caption
Gui, font, s26 cDA4F49
Gui, add, text,, (
WinSet, TransColor, f0f0f0
Gui, Show, X%x2% Y%y2%
return

^+Rbutton::
MouseGetPos, x, y
x2:=x-50
y2:=y-60
Gui, New
Gui, +LastFound +AlwaysOnTop +Owner -DPIScale -Caption
Gui, font, s26 cDA4F49
Gui, add, text,, )
WinSet, TransColor, f0f0f0
Gui, Show, X%x2% Y%y2%
return

~^Enter::
~Esc::
reload

emoji