Is there any way to "invisible run" a project

Godot Version
v4.3

Question
I wanted to make a program but i dont know how or is there any way to “invisible run” a project. Good example of it is “Riot Vanguard”. Any help will be appreciated.

If you mean to run on a persons computer without the person knowing it, I suppose you could use a windows service. If you mean like an anti cheat, to run while your game is playing, you could use an autoload to continuously run a process in the background, or perhaps use the multi threading to run a process without freezing the game in any way.

1 Like

I mean to run a keyboard sound app that i made without it opened. Like when youre using a wallpaper app. Here I give you a screenshot of the way that it should run like when it’s closed. @pauldrewett :

Zrzut ekranu (160)

I don’t think it is natively supported (the notification bar or system tray) but I found at least one asset that may be of use for you, there may be others too.

https://godotengine.org/asset-library/asset/1944

Hope that helps.

1 Like

Thank you so much for it! That helped me alot!

1 Like

Oh, and i have another ask to you. Is there any function/variable that checks if any key is pressed and to check if it comes from a specific device? @pauldrewett

This might be what you are looking for:

func _input(event):
    if event is InputEventKey and event.pressed:
        print("Key pressed on device: ", event.device)

I looked in the docs for it but have not found it yet. Will keep looking.
Device id = -1 is unidentified device or unknown.
id = 0 is the keyboard
id = 1 might be the next keyboard or a joypad
id = 2 might be the next joypad connected etc etc.
At least that is how I think it works.

So this post might be an interesting read for you.

And here is the device id in inputEvent in the docs:

1 Like

Thank you so much again! I appreciate your help.

Oh, I found one problem:
It says its “device 0” for my laptop keyboard and for my USB keyboard. Do you have any idea how to fix that? @pauldrewett
Edit: I tried it on my mouse and it says “device 0” too.
Edit 2: Do you know how to play a sound without the app is opened as priority app(its opened on the screen)?

Yeah, this device element is tricky. As I have not used it myself I would start a new question topic about that and see what other people might know about it. Sorry. Same for playing a sound when not open. Again a new topic question on that would be a good idea I think. Sorry.

1 Like

Anyways thank you so much for the help that i gained from you!

1 Like

Oh and i forgot. do you know how to use the Godot System Tray plugin?