AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Active Window Info gives incorrect data in Remote Desktop

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Akize



Joined: 16 Jan 2006
Posts: 34

PostPosted: Wed May 30, 2007 11:43 am    Post subject: Active Window Info gives incorrect data in Remote Desktop Reply with quote

To be more specific, on the host computer Active Window Info will always report:
Quote:
xxx.xxx.xxx.xxx - Remote Desktop
ahk_class TSSHELLWND


However I wrote some class specific hotkeys and they still work on the remote system despite the class being reported differently.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Wed May 30, 2007 4:51 pm    Post subject: Reply with quote

I'm not sure what you mean. The remote computer has some hotkeys on it that are working right, even though (locally) you only see this particular ClassNN? that is not a bug at all. If you open Window Spy on the remote computer, you should see all the correct window names. On the local computer, you will only see the window which is effectively a screenshot of the remote computer, even though the local computer is rendering most of it.

This seems normal to me.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Akize



Joined: 16 Jan 2006
Posts: 34

PostPosted: Wed May 30, 2007 6:48 pm    Post subject: Reply with quote

Local computer is running a script, remote computer is running nothing. Let's say I bound ^q to !f4 for Firefox.

The hotkey works locally, and then it works remotely even though the active window info is reporting the Remote Desktop class.

I haven't tested this out but it'd be interesting to see if you had two scripts running (one on remote, other on local) which one takes preference.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Wed May 30, 2007 8:09 pm    Post subject: Reply with quote

local should always take the key, unless the ~ option is used. I'll have to test your results with another computer I use when I get home. Sounds interesting.

I wonder - is it possible to get conflicting windows this way? maybe have an untitled - Notepad open on each PC?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu May 31, 2007 3:31 am    Post subject: Reply with quote

I seem to remember that Window Spy uses the equivalent of "SetTitleMatchMode Fast" (i.e. AutoHotkey's default mode). Therefore, if your script uses "SetTitleMatchMode Slow" in the auto-execute section, that might explain the difference in behavior.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group