Page 1 of 1

Activate window AND alt + printscreen middle button

Posted: Mon Aug 09, 2021 8:18 am
by WaitroseCarpark
XMBC Version: 2.19.2
Windows Version: 10
Mouse Information (brand/model): Logitech
Relevant Computer Information (CPU, RAM etc): Average laptop, not underpowered
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 Month
What language and keyboard layout do you use in Windows?:

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).: I have a middle button keystroke that fires an '{ALT}{PRTSCN}' to take a printscreen of the active window. This works great. However, I would like this behaviour to also activate the window that the mouse is hovering over at that time. I do NOT want to have the native 'Active window on hover' functionality of Windows activated all the time.

My use case:
I am using multiple monitors to enter data into a web-based spreadsheet (Airtable, that will accept pasted screenshots). I want to move from editing the spreadsheet to the app I want screenshots of and when I middle click the mouse the web browser window for Airtable is still active - I want the middle click to activate the other application window, and then take the screenshot. Otherwise I have multiple times accidentally taken a screenshot of the web browser window when the mouse has been hovering over the other app window.

Does that make sense?

And I repeat, I don't want to have to use the windows ease of access method of having whatever the mouse is hovering over as active all the time.

Any help appreciated in advance!

Re: Activate window AND alt + printscreen middle button

Posted: Mon Aug 09, 2021 10:05 am
by phil
Hi, there are several tags to active the window in the simulated key sequence.
Try adding either {ACTIVATE}, {ACTIVATEPARENT} or {ACTIVATETOP} before the {ALT}{PRTSCN}.
If that doesn't work, try a simple {LMB} first!

Regards,
Phil

Re: Activate window AND alt + printscreen middle button

Posted: Mon Aug 09, 2021 10:55 am
by WaitroseCarpark
Hmmmm, I tried all of those and none seemed to work. I even tried ticking the 'Activate window when scrolling' but still no joy.

As a work around I can right click then middle click I think

Re: Activate window AND alt + printscreen middle button

Posted: Mon Aug 09, 2021 1:07 pm
by phil
Maybe you could try adding a delay between the activate and subsequent commands...
Try sticking a {WAITMS:500} after the activate.

IF that still does not work them I'm at a bit of a loss as to why not!
Are you using the portable version or the installed version (and if installed, is it installed to the default location under Program Files? if not (or if its the portable version), it may not have the required permissions to interact with the other window - but I doubt its that - you could try running XMBC as administrator and see if it makes any difference if you want).

Re: Activate window AND alt + printscreen middle button

Posted: Tue Aug 10, 2021 7:35 am
by WaitroseCarpark
Cool, tried the wait thingy but didn't work. It's standard install, might try the admin install

Re: Activate window AND alt + printscreen middle button

Posted: Tue Aug 10, 2021 8:36 am
by phil
Standard install to the default location *shouldn't* need admin - but its always worth trying exiting XMBC, then (re)running it as administrator temporarily just to check.

Re: Activate window AND alt + printscreen middle button

Posted: Tue Aug 10, 2021 9:29 am
by WaitroseCarpark
Thanks Phil, I rebooted after reinstalling as admin and tried '{ACTIVATETOP}{WAITMS:500}{ALT}{PRTSCN}' and that worked! Many thanks for all the help!