AutoHotkey Community

It is currently May 24th, 2012, 8:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: January 14th, 2005, 5:37 pm 
Offline

Joined: January 14th, 2005, 5:30 pm
Posts: 17
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2005, 7:54 pm 
Online

Joined: March 28th, 2004, 3:53 pm
Posts: 1865
what's the app?
in case i have it (or its a miniscule download) then i might be of more help.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 14th, 2005, 9:35 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2005, 4:54 am 
Offline

Joined: January 14th, 2005, 5:30 pm
Posts: 17
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2005, 8:00 am 
Online

Joined: March 28th, 2004, 3:53 pm
Posts: 1865
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!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2005, 2:41 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2005, 4:25 pm 
Offline

Joined: January 14th, 2005, 5:30 pm
Posts: 17
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Kirtman, Ohnitiel, patgenn123, Yahoo [Bot] and 72 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group