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 

PostMessage - advance usage?

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



Joined: 30 Jul 2004
Posts: 42

PostPosted: Wed Aug 18, 2004 10:28 pm    Post subject: PostMessage - advance usage? Reply with quote

Following my questions from previous post, ( http://www.autohotkey.com/forum/viewtopic.php?t=554 ), Chris suggested using "PostMessage, 0x112, 0x170, 0, , PuTTY" to copy the window text (which worked beatifully, thanks), and visit Rajat's Tutorial. I have studied Chris's suggestion, Rajat's tutorial, AHK Helpfiles, as well as documents I could gather online on WM_SYSCOMMAND. My question now is, what is 0x170, and how do I find it for other programs? It doesn't seem to be listed anywhere...

I am also trying to automate the option changing processes during each session, and an idea I got is to try to find the Control IDs and call&modify the control by this number. I have attempted to use Winspector on PuTTY, and tried to filter through the results during copy&paste and control value changing, although could not find the Control IDs mentioned in the tutorial, and PuTTY doesn't seem to use WM_SYSCOMMAND, which confused me even more. Any pointers anyone could provide would be greatly appreciated.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Aug 18, 2004 10:37 pm    Post subject: Reply with quote

As you know, 0x112 is WM_SYSCOMMAND, which corresponds to items selected from an app's icon menu (the menu accessible from the upper left corner of the window). 0x170 is the PuTTY-specific message used to activate a particular item on its menu. I believe I determined this by using Spy++, which is a utility very similar to Winspector Spy.

I'm not too sure about the rest of your query. It's possible that WinMenuSelectItem would be helpful depending on what settings you're trying to change.
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