Gui "splash image" for Caps Lock state toggle

Get help with using AutoHotkey and its commands and hotkeys
User avatar
montyLalor
Posts: 8
Joined: 10 Dec 2017, 06:28

Gui "splash image" for Caps Lock state toggle

18 Dec 2017, 09:20

I need some help. Okay I need a lot, but I'll just stick to the ahk question for now:

Below is the code I've gleened / grafted from the awesome people around these parts.

I have two things I can't work out.

1) How do you make this Gui so that it does not take any focus from any window, anywhere, at any time?

2) How do I get these subscripts to activate upon a caps lock state toggle? The second code window is a script I use to totally surrender control of caps lock. (Currently enjoying telling anyone who'll listen that I'm too lazy to hit the Caps Lock Key!) Do I somehow have to combine the two scripts? Or can I make the top one detect a caps lock state toggle and apply the images I've created?

Code: [Select all] [Expand] [Download] (CapsSplash.ahk)GeSHi © Codebox Plus



Code: [Select all] [Expand] [Download] (Caps_OnOff.ahk)GeSHi © Codebox Plus

My AHK knowledge currently manoeuvres with the eloquence of a fiery wall of disintegrating fuselage...
geekgarage
Posts: 22
Joined: 17 Dec 2017, 11:03
GitHub: geekgarage

Re: Gui "splash image" for Caps Lock state toggle

18 Dec 2017, 15:08

the part where it doesn't change focus can only be done as far as i know if you create the gui and then update to show the image, then update it again to not show or show a transparent image. Never destroy the gui and you should be fine. The focus changes every time you create it, by just updating it you won't change focus and that can be done in background.

I've added everything that has to do with the GUI part, and if you have any questions let me know if you can't figure it out by looking up the base command to see how it works

if you run into the issue that where the box is you can't click what's under it. just update its position to be outside screen when not showing the image, like x 10000 y 10000 (far far away)

Here is an example from a little helper program i wrote for the game holdfast:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
montyLalor
Posts: 8
Joined: 10 Dec 2017, 06:28

Re: Gui "splash image" for Caps Lock state toggle

21 Dec 2017, 16:56

Hey geekgarage,

I managed to get my image "splash" to work using a gui function and setting a transparency colour, incorporating it into the caps on/off script and correcting the detection codes. A copy of the script is here (19th Dec post: update to original script): https://autohotkey.com/boards/viewtopic.php?f=6&t=41219

Enjoy your Festive Season!
My AHK knowledge currently manoeuvres with the eloquence of a fiery wall of disintegrating fuselage...

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 36 guests