Code: Select all
clipboard = "" ; Start off empty to allow ClipWait to detect when the text has arrived.
Send ^c
ClipWait
characters := StrLen(clipboard)
Menu, Tray, Icon
TrayTip Caracteres, %characters% com espaços
Code: Select all
---- #ErrorStdOut
622: i := VarSetCapacity(e,520) DllCall("GetModuleFileName",PTR,0,Str,e,UInt,260) VarSetCapacity(e,-1)
005: CoordMode,Mouse,Screen
006: SendMode,Input
007: SetTitleMatchMode,RegEx
012: Return (0.06)
628: Suspend,On
629: Suspend,Off
630: Return (216.42)
190: Clipboard = ""
191: Send,^c (0.01)
192: ClipWait
193: characters := StrLen(clipboard)
195: Menu,Tray,Icon (0.03)
196: TrayTip,Caracteres,%characters% com espaços
197: Return (3.53)
The shortcut is CTRL+SHIFT+ALT+WINDOWS+C.
Results are correct though.