Jump to content


Photo

Local AutoHotkey - RDP


  • Please log in to reply
2 replies to this topic

#1 Person93

Person93
  • Members
  • 371 posts

Posted 29 June 2012 - 02:05 PM

Hi,

I use RDP sessions and I have autohotkey running locally.

If I reload the script after the RDP session is already open, then the script's hotkeys work even if the RDP is the active window.

I am trying to figure out two things.

1)If I have a hotkey that activates a different window it always show that window and the task bar from the local.

Is there some way to show windows from the local computer without showing the local PC's task bar?

2)I am trying to figure out a way to have local hotkeys that run even if the RDP is the active window. I don't want to set the RDP session not to use hotkeys because I have autohoykey running on the remote computer as well.

I 've tried using a SetTimer to keep resetting the hotkeys using the 'hotkey' command, but the hotkeys only work if the RDP is minimized or not the active window.

#2 engunneer

engunneer
  • Fellows
  • 9162 posts

Posted 03 July 2012 - 03:13 PM

WinActivate on a local window is popping up the taskbar of the local pc? I assume RDP is running full screen. What OS on the local side?

For #2, have you looked at #IfWinActive?

#3 Person93

Person93
  • Members
  • 371 posts

Posted 03 July 2012 - 07:28 PM

WinActivate on a local window is popping up the taskbar of the local pc? I assume RDP is running full screen. What OS on the local side?

I am running;
Microsoft Windows XP
Professional
Sevice Pack 3
Version 2002

I've notice that this does not happen all the time.
I can't figure out what causes it.

For #2, have you looked at #IfWinActive?

I am trying to get my hotkeys to fire regardless of which window is open.
My issue is that if the RDP session was opened while the script is running, the hotkeys don't work, the keystrokes get sent to the RDP. The simple answer would be to have the RDP run without a keyboard hook, but I need the keyboard hook for the ahk scripts that run on the remote computer.