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 

Is it possible to use Registered Messages with PostMessage?

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



Joined: 14 Jan 2005
Posts: 17

PostPosted: Fri Jan 14, 2005 4:37 pm    Post subject: Is it possible to use Registered Messages with PostMessage? Reply with quote

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
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1687

PostPosted: Fri Jan 14, 2005 6:54 pm    Post subject: Reply with quote

what's the app?
in case i have it (or its a miniscule download) then i might be of more help.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Fri Jan 14, 2005 8:35 pm    Post subject: Re: Is it possible to use Registered Messages with PostMessa Reply with quote

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
View user's profile Send private message Send e-mail
TomB



Joined: 14 Jan 2005
Posts: 17

PostPosted: Tue Jan 18, 2005 3:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1687

PostPosted: Tue Jan 18, 2005 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Tue Jan 18, 2005 1:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
TomB



Joined: 14 Jan 2005
Posts: 17

PostPosted: Tue Jan 18, 2005 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
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