[GH-ISSUE #658] Keyboard shortcut for reconnecting as a way to fix locking RDP session #1498

Closed
opened 2026-02-28 12:04:48 +03:00 by kerem · 5 comments
Owner

Originally created by @rafi-d on GitHub (May 3, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/658

Hi,
Is there a list of key shortcuts available for 1remote manager?
Specifically, I like the shortcut for "reconnect" menu item (for the selected PC[s]), for my frequent use case:
The remote is locking the session into the login screen, and re-connect is the easiest way to re-login...

...and If possible - for "connect" too?

There was an old request here for user-definable hot keys, but the above is the minimum for me :) ...
There was also a request of mine for preventing lock timeout ( #629 ) which this can be a semi work-around to ... BTW, emulating key/mouse input/juggle option might work for preventing timeouts if you can generate such inputs

Originally created by @rafi-d on GitHub (May 3, 2024). Original GitHub issue: https://github.com/1Remote/1Remote/issues/658 Hi, Is there a list of key shortcuts available for 1remote manager? Specifically, I like the shortcut for "**reconnect**" menu item (for the selected PC[s]), for my frequent use case: The remote is locking the session into the login screen, and re-connect is the easiest way to re-login... ...and If possible - for "connect" too? There was an old request here for user-definable hot keys, but the above is the minimum for me :) ... There was also a request of mine for preventing lock timeout ( #629 ) which this can be a semi work-around to ... BTW, emulating key/mouse input/juggle option might work for preventing timeouts if you can generate such inputs
kerem 2026-02-28 12:04:48 +03:00
Author
Owner

@majkinetor commented on GitHub (May 3, 2024):

There is also #405.

<!-- gh-comment-id:2092502774 --> @majkinetor commented on GitHub (May 3, 2024): There is also #405.
Author
Owner

@majkinetor commented on GitHub (May 3, 2024):

BTW, emulating key/mouse input/juggle option might work for preventing timeouts if you can generate such inputs

Good idea, it never occurred to me. Emulating keys is IMO too intrusive, as that can influence the remote. Moving a mouse, though, slightly, then moving it in the opposite direction could work.

<!-- gh-comment-id:2092515214 --> @majkinetor commented on GitHub (May 3, 2024): > BTW, emulating key/mouse input/juggle option might work for preventing timeouts if you can generate such inputs Good idea, it never occurred to me. Emulating keys is IMO too intrusive, as that can influence the remote. Moving a mouse, though, slightly, then moving it in the opposite direction could work.
Author
Owner

@rafi-d commented on GitHub (May 3, 2024):

Emulating keys is IMO too intrusive, as that can influence the remote. Moving a mouse, though, slightly,

Right, possibly for a "timeout" duration... It might work, but needs testing, since it is not clear if a mouse move by itself, without any action (like click+scroll) will count as an "activity" ...
A key pressed is always an activity, so maybe some "harmless" key-code can be found ..

There is also #405.

Yeah, I was referring to this one...

<!-- gh-comment-id:2092559010 --> @rafi-d commented on GitHub (May 3, 2024): > Emulating keys is IMO too intrusive, as that can influence the remote. Moving a mouse, though, slightly, Right, possibly for a "timeout" duration... It might work, but needs testing, since it is not clear if a mouse move by itself, without any action (like click+scroll) will count as an "activity" ... A key pressed is always an activity, so maybe some "harmless" key-code can be found .. > There is also #405. Yeah, I was referring to this one...
Author
Owner

@majkinetor commented on GitHub (May 3, 2024):

I doubt the harmless key exists - you could have a keyloger for example.

You can check out if mouse works by using Autohotkey on the remote host:

Save this as mouse.ahk and doubleclick it to run it, after you install AHK (portable version can be used too). You can see the script running in the tray.

loop {
    sleep 60000
    MouseMove 1, 0, 50, R
    MouseMove -1, 0, 50, R
}

This will move mouse 1 pixel left then right every 60s, making it keep its previous position. Its good enough for PoC.

If this works, I guess 1remote can simulate this as background task based on configuration option, but @VShawn will know more about it.

<!-- gh-comment-id:2092686611 --> @majkinetor commented on GitHub (May 3, 2024): I doubt the harmless key exists - you could have a keyloger for example. You can check out if mouse works by using [Autohotkey](https://www.autohotkey.com) on the remote host: Save this as mouse.ahk and doubleclick it to run it, after you install AHK (portable version can be used too). You can see the script running in the tray. ```ahk loop { sleep 60000 MouseMove 1, 0, 50, R MouseMove -1, 0, 50, R } ``` This will move mouse 1 pixel left then right every 60s, making it keep its previous position. Its good enough for PoC. If this works, I guess 1remote can simulate this as background task based on configuration option, but @VShawn will know more about it.
Author
Owner

@majkinetor commented on GitHub (May 3, 2024):

BTW, I think reconnect hotkey might not be possible - once remote grabs input, its AFAIK not possible to execute some hotkeys on the local host, since after locking you out, remote will still keep keyboard focus on the login UI, and those hotkeys would finish on remote (see #40)

<!-- gh-comment-id:2092700747 --> @majkinetor commented on GitHub (May 3, 2024): BTW, I think reconnect hotkey might not be possible - once remote grabs input, its AFAIK not possible to execute some hotkeys on the local host, since after locking you out, remote will still keep keyboard focus on the login UI, and those hotkeys would finish on remote (see #40)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#1498
No description provided.