| View previous topic :: View next topic |
| Author |
Message |
TomB
Joined: 14 Jan 2005 Posts: 17
|
Posted: Fri Jan 14, 2005 4:37 pm Post subject: Is it possible to use Registered Messages with PostMessage? |
|
|
I am trying to automatically press a button in a skinnable application using postmessage. I have used Winspector Spy to capture messages related to this button press. Unforunately, the main message for this action is a "registered message". It shows up in Winspector Spy as:
UWM_SHOW_BUSS_OUT-{F8C1103C-156D-4395-A922-42472183FC14) (Registered messages)
wParam and lParam are both 0x00, so that part is easy.
My question is, is it possible to send registered messages, and if so, how do I get the message code for this particular message?
Thanks,
Tom |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1687
|
Posted: Fri Jan 14, 2005 6:54 pm Post subject: |
|
|
what's the app?
in case i have it (or its a miniscule download) then i might be of more help. _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Fri Jan 14, 2005 8:35 pm Post subject: Re: Is it possible to use Registered Messages with PostMessa |
|
|
| TomB wrote: | | I am trying to automatically press a button in a skinnable application using postmessage. | If you you haven't already, you might try ControlClick, or "ControlSend, ClassNN, {Enter}, WinTitle. You could also try sending {Space} in place of Enter, and if that doesn't work, a ControlFocus beforehand.
| Quote: | | is it possible to send registered messages, and if so, how do I get the message code for this particular message? | I don't know, but maybe someone else does (or Google). |
|
| Back to top |
|
 |
TomB
Joined: 14 Jan 2005 Posts: 17
|
Posted: Tue Jan 18, 2005 3:54 am Post subject: |
|
|
Thanks for the help guys.
Rajat, I doubt you have the app. It is an audio app made by Brainspawn called forte. It is a virtual instrument host designed for live use.
Chris, unfortunately, the ClassNN for this control changes each time the app is opened.
I take it from your last comment that it should be possible to send registered messages using the postmessage command, but that you don't know how to determine the message number for a given message name. Is that correct?
Thanks again,
Tom |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1687
|
Posted: Tue Jan 18, 2005 7:00 am Post subject: |
|
|
i've never encountered such a msg with any app, so can't help you with my experience. but if u eventually figure something out abt this, then do let me know! _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Tue Jan 18, 2005 1:41 pm Post subject: |
|
|
| TomB wrote: | | unfortunately, the ClassNN for this control changes each time the app is opened. | Here are some possible ways to work around that:
Use the control's text instead of ClassNN to access it.
Use the X/Y mode of ControlClick's first parameter to access it.
Use "WinGet, ControlList, ControlList" to get a list of the controls. Have the script analyze that list to determine which control to try a command on.
| Quote: | | I take it from your last comment that it should be possible to send registered messages using the postmessage command, but that you don't know how to determine the message number for a given message name. Is that correct? | I don't know if it's possible or how to do it.
Good luck. |
|
| Back to top |
|
 |
TomB
Joined: 14 Jan 2005 Posts: 17
|
Posted: Tue Jan 18, 2005 3:25 pm Post subject: |
|
|
Thanks again for the help guys. This particular control is quite elusive - the ClassNN changes every time the program runs, and it has no text - just a graphic. The name is always 'ButtonX', where X is some number.
I think I will have to use the X,Y of the control as Chris suggested. I was trying to avoid this because this app is skinnable, and I want the command to work even if I later change skins.
Nothing in this world is ever perfect...
Tom |
|
| Back to top |
|
 |
|