overlay

Ask gaming related questions (AHK v1.1 and older)
tomkruz
Posts: 31
Joined: 23 Aug 2021, 02:32

overlay

Post by tomkruz » 09 Dec 2023, 06:43

I would like it to work as a regular overlay that will show me constant changes in the text without leaving the main window.

Code: Select all

Gui, Destroy
Gui  +AlwaysOnTop 
Gui, Color, EEAA99
Gui, Font, s20  
Gui, Add, Text, vFileInfo cred, %FileInfo%   
WinSet, TransColor, EEAA99 150
Gui, Show

[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]

[Mod action: Moved topic to the v1 section since this is v1 code. The main section is now for v2.]

User avatar
mikeyww
Posts: 27162
Joined: 09 Sep 2014, 18:38

Re: overlay

Post by mikeyww » 11 Dec 2023, 10:44

Code: Select all

#Requires AutoHotkey v1.1.33
Gui +AlwaysOnTop +LastFound
Gui Color, % transColor := "EEAA99"
Gui Font, s20
Gui Add, Text, w400 vFileInfo cRed
WinSet TransColor, % transColor " " 150
Gui Show, x1200 y250 NoActivate, Text

F3::
InputBox txt, Change text, Enter the new text.,, 300, 125
If !ErrorLevel && txt != ""
 GuiControl,, FileInfo, % txt
Return

tomkruz
Posts: 31
Joined: 23 Aug 2021, 02:32

Re: overlay

Post by tomkruz » 30 Dec 2023, 23:25

@mikeyww

Is it possible to do it on top of a full screen application ?

User avatar
mikeyww
Posts: 27162
Joined: 09 Sep 2014, 18:38

Re: overlay

Post by mikeyww » 31 Dec 2023, 06:54

I have not tested that. If your question is how to get text input from the user, you may be able to do that through a second GUI, or incorporate an edit control into the first GUI. I do not work with full-screen programs, but the other posts that describe solutions for them might also be worth a look.

tomkruz
Posts: 31
Joined: 23 Aug 2021, 02:32

Re: overlay

Post by tomkruz » 31 Dec 2023, 16:25

@mikeyww
thanks for the help

Post Reply

Return to “Gaming Help (v1)”