toastering / rbxsilent

Turn your roblox client "headless" via disabling rendering.
MIT License
40 stars 15 forks source link

How do I keep window of roblox client visible? #29

Open Deverified opened 1 year ago

Deverified commented 1 year ago

The project is really nice and I respect that the owner shared It with us, but the issue is that I need window of roblox client to be visible because I send direct inputs to active window with my python script I hope there is a solution to still have a visible roblox window

toastering commented 1 year ago

Call this, wouldn't need the window visible. https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage

Deverified commented 1 year ago

I think this might be a solution, but Im not very good in C++ I'll try to make something out of this, but roblox probably detects this, so we probably need something like DirectInput

I guess an inactive Roblox window doesn't respond to sent keystrokes, I searched lots of AHK forums

toastering commented 1 year ago

Since you're using python you can probably find some winapi proxy for calling SendMessage or some other function with similar functionality. If the inactive roblox window doesn't respond it's likely ShowWindow being the cause for it and you should remove it and see if the issue persists but I would make sure SendMessage works without rbxsilent running. Desyncing/dropping keys due to low fps could also be an issue but unlikely.