How to keep the automated keys working when the game's window is in background?

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
glucap
New User
Posts: 2
Joined: Wed Dec 20, 2023 9:59 am

How to keep the automated keys working when the game's window is in background?

Post by glucap »

Installed or Portable version:2.20.5 portable
Windows Version: windows 10 pro 64 bit
Mouse Information (brand/model): Logitech G400, 5 buttons, official Logitech driver
Relevant Computer Information (CPU, RAM etc): 32 GB ram, AMD Ryzen 5 5600X, SSD, NVME, GTX 1070 TI
Did the problem occur after an upgrade of XMBC? (If so, from what version?): No
Did the problem occur after a Windows update/upgrade? (If so, from what version?): No
How long have you used XMBC?: 1 day
What language and keyboard layout do you use in Windows?: Italian

Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).:
Hello, I'm new to the forum and I've just started using x-mouse.
First of all thanks for the tool, it's great.
I'm using it to automize some actions in Path Of Exile game. I have a problem: when I move the mouse cursor outside the main game's window, the automated action programmed in x-mouse stop to work and restart when I move the mouse cursor back to the game.
Is there a way to start the keys combo in game and keep this working in the background while I do some other stuff in Windows? What I want to do is to start the game, enter a map, start the autoclick routine created with x-mouse, move to the browser or another program and keep the autoclick working in game in the background.
I tried to uncheck some options in the settings, like "Enable profile switching on mouse move", but I still have the problem: if I move the mouse cursor to the Windows taskbar the action in game stops.
I hope that I've explained myself well.
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: How to keep the automated keys working when the game's window is in background?

Post by phil »

It is not possible. XMBC uses the Microsoft API's to send keyboard input into the keyboard buffer. The keys in the keyboard buffer get sent to the window in the foreground. There is no way to redirect that to windows in the background. Just when you press keys on your keyboard, they go to the active window!

In some cases, you can send characters to specific windows, given the window handle, but only on the assumption that the window picks up WM_CHAR messages. Games in particular are very unlikely to work with those messages - its just to high level (and thus laggy) for games where input latency is important.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
glucap
New User
Posts: 2
Joined: Wed Dec 20, 2023 9:59 am

Re: How to keep the automated keys working when the game's window is in background?

Post by glucap »

Thanks for the answer Phil.
Post Reply