quicktest
Joined: 30 Jul 2004 Posts: 42
|
Posted: Wed Aug 18, 2004 10:28 pm Post subject: PostMessage - advance usage? |
|
|
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. |
|
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Wed Aug 18, 2004 10:37 pm Post subject: |
|
|
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. |
|