Need help creating text on screen as overlay

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rainrain
Posts: 45
Joined: 20 Jan 2022, 00:17

Need help creating text on screen as overlay

Post by rainrain » 30 May 2023, 00:29

Hi, can someone create me a script with individual text as an overlay and each able to adjust their position

User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: Need help creating text on screen as overlay

Post by boiler » 30 May 2023, 00:51

Various approaches here.

rainrain
Posts: 45
Joined: 20 Jan 2022, 00:17

Re: Need help creating text on screen as overlay

Post by rainrain » 30 May 2023, 01:12

Code: Select all

ins::reload
^+f1::
Gui, -Caption +AlwaysOnTop
Gui, Font, s7 w7, Times New Roman
Gui, Add, Text,, Toggle is on
;Gui, Color, White
Gui, Show, x20 ;w55 h16
Gui +LastFound 
;WinSet, TransColor, EEAA99
Gui, Show,, Status
return
how do I add a new sentence below "toggle is on" text, and is it possible to make it draggable?

User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: Need help creating text on screen as overlay

Post by boiler » 30 May 2023, 01:26

Code: Select all

ins::reload
^+f1::
Gui, -Caption +AlwaysOnTop
Gui, Font, s7 w7, Times New Roman
Gui, Add, Text,, Toggle is on`nAnd antoher line
;Gui, Color, White
Gui, Show, x20 ;w55 h16
Gui +LastFound 
;WinSet, TransColor, EEAA99
Gui, Show,, Status
OnMessage(0x0201, "WM_LBUTTONDOWN")return
return

WM_LBUTTONDOWN() {
    PostMessage, 0xA1, 2,,, A
}

rainrain
Posts: 45
Joined: 20 Jan 2022, 00:17

Re: Need help creating text on screen as overlay

Post by rainrain » 30 May 2023, 01:31

Thank you so much!! how do I make the background invisible and font as white?

User avatar
boiler
Posts: 16925
Joined: 21 Dec 2014, 02:44

Re: Need help creating text on screen as overlay

Post by boiler » 30 May 2023, 06:32

It won’t look good with a small font like that, but here it is:

Code: Select all

ins::reload
^+f1::
Gui, -Caption +AlwaysOnTop
Gui, Font, cWhite s7 w7, Times New Roman
Gui, Add, Text,, Toggle is on`nAnd antoher line
Gui, Color, F8F8F8
Gui, Show, x20 ;w55 h16
Gui +LastFound 
WinSet, TransColor, F8F8F8
Gui, Show,, Status
OnMessage(0x0201, "WM_LBUTTONDOWN")return
return

WM_LBUTTONDOWN() {
    PostMessage, 0xA1, 2,,, A
}

Post Reply

Return to “Ask for Help (v1)”