Please help - Very basic question - Change background color

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hitesh
Posts: 34
Joined: 30 May 2017, 09:24

Please help - Very basic question - Change background color

16 Aug 2017, 04:20

I have a software/tool (for example - notepad) in which I want to change background color. For example, white background color to yellow color. Please help :headwall: if this is possible.

Thanks in advance.
hitesh
Posts: 34
Joined: 30 May 2017, 09:24

Re: Please help - Very basic question - Change background color

18 Aug 2017, 06:15

hitesh wrote:I have a software/tool (for example - notepad) in which I want to change background color. For example, white background color to yellow color. Please help :headwall: if this is possible.

Thanks in advance.
Can someone please help on this? :headwall:
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Please help - Very basic question - Change background color

23 Aug 2017, 19:17

I have some comments related to this here:
how to dll Inject - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 97#p166697
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Please help - Very basic question - Change background color

25 Aug 2017, 07:14

If you're trying to change the background color of a Gui that you made in AHK, then use Gui, Color, 00FF00
If you're wanting to change the color of a window that is NOT made in AHK, you can use the command, WinSet

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

just me
Posts: 9450
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Please help - Very basic question - Change background color

25 Aug 2017, 09:56

Delta Pythagorean wrote:If you're wanting to change the color of a window that is NOT made in AHK, you can use the command, WinSet
Are you sure?
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: Please help - Very basic question - Change background color

25 Aug 2017, 20:06

just me wrote:Are you sure?
As far as I know, yes. I haven't tested it, nor do I want to look for a Dll with the right function. Since you've knows AHK for longer than I have, I bet you might have a solution.

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Please help - Very basic question - Change background color

27 Aug 2017, 21:28

Wow Delta Pythagorean, I thought this was impossible via WinSet, you'll have to point me to where it says about that in the documentation.

I had wanted to change the Notepad background colour for a long time, so it was a bit of an effort when I finally managed to do it thanks to HotKeyIt's dll injection function in the link above. I have various information at that link, including setting the colour system-wide and for AHK GUIs. WinSet does have some information about making one particular colour transparent, or making a window as a whole partially/fully transparent.

Anyhow, thanks for your scripts (including the video player one), sigs ('Uses AHK? True' and PhiLho-inspired one of now) and ASCII art AHK icon, and I'm looking forward to your tutorials.

Code: Select all

UsesAHK() {
	Return True
}

vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

vDelPy := RegExReplace("Delta Pythagorean", "^(\w{3})\w*\s+\b(\w{2})\w*$", "v$1 $2")
"I know that reference!"

vJeeSwg := RegExReplace("jee swg", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
MsgBox, % vJeeSwg

INI File Helper - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=34350

      /=========|
     /          |
    /  HH   HH  |
    |  HH   HH  |
    |  HHHHHHH  |
    |  HH   HH  |
    |  HH   HH  |
    |           |
    |===========|
[See 'ASCII art, AutoHotkey file icon' listed here:]
best utilities + best AutoHotkey scripts (+ useful tips) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=28149
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: zerox and 323 guests