| View previous topic :: View next topic |
| Author |
Message |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Sat Mar 12, 2005 10:45 pm Post subject: |
|
|
To assist in finding the correct hex code for a particular msg, i've added a script to the main post. run it from the folder containing messages.txt (get latest from link in main post). _________________
 |
|
| Back to top |
|
 |
SanskritFritz
Joined: 17 Feb 2005 Posts: 283 Location: Hungary, Budapest
|
Posted: Tue Mar 15, 2005 10:19 pm Post subject: |
|
|
| Anonymous wrote: | Using this results in a problem with the lister.
It justs stays in the background, what ver file I open. | Hmm true. but I only use this script for a short while, when there is a directory to monitor and TC is not in the foreground. It looks like when TC receives the refresh message it steals focus from the lister. I will notify the author. _________________ Is there another word for synonym? |
|
| Back to top |
|
 |
cstone
Joined: 16 Apr 2005 Posts: 28
|
Posted: Sat Apr 16, 2005 12:11 am Post subject: control focus in IE |
|
|
I would like to be able to hit the home key and have the focus go to a certin text box in IE, but according Window Spy all the controls have the same name. i tried leaving the ControlFocus blank to go to the top most control, but that didn't help. Is there a way of doing this besies using MouseClick? Any info will be much appreaciated. thank you. _________________ cstone |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Sat Apr 16, 2005 6:34 am Post subject: |
|
|
post/sendmsg won't help in this case. there are some posts in this forum javascript cmds that help automate IE controls. please search for them. _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Nov 25, 2005 3:05 pm Post subject: |
|
|
how can i figure out hex code for custom (registered) windows message?
:/ |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 27, 2005 3:40 am Post subject: |
|
|
| Code: |
PostMessage, 0x111, 40046, 0, , ahk_class Winamp v1.x
|
That code will pause/unpause winmap. My question is, how did you find out the "40046"? I'm currently exploring Winspector and couldn't find 40046 in it. How did you do it? |
|
| Back to top |
|
 |
shimanov
Joined: 25 Sep 2005 Posts: 612
|
Posted: Sun Nov 27, 2005 4:05 am Post subject: |
|
|
| Anonymous wrote: | | how did you find out the "40046" |
One word: SDK
In particular, review the "winamp\wa_ipc.h" and "gen_tray\WINAMPCMD.h" header files. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 27, 2005 4:07 am Post subject: |
|
|
| Wow, so that mean I can't find it for my favorite app? Whoa.. |
|
| Back to top |
|
 |
shimanov
Joined: 25 Sep 2005 Posts: 612
|
Posted: Sun Nov 27, 2005 4:10 am Post subject: |
|
|
| Anonymous wrote: | | Wow, so that mean I can't find it for my favorite app? Whoa.. |
No. It means that Winamp is documented and it is not necessary to detect the relevant code by monitoring message flow. |
|
| Back to top |
|
 |
ezuk
Joined: 04 Jun 2005 Posts: 128
|
Posted: Thu Dec 01, 2005 10:13 am Post subject: Re: An Advanced Technique. |
|
|
There was one thing I didn't understand below. I worked through the whole thing with WinSpy and my application (in this case, ToDoList by AbstractSpoon), but I couldn't figure out what this means:
| Rajat wrote: |
now expand the wm_command messages that've accumulated (forget others if any). now what you want to look for is a code 0 message. sometimes there're wm_command messages saying 'win activated' or 'win distroyed' and other crap... not needed. u'll find that there's be a message saying 'Control ID: 40239' ...that's it!
|
Specifically: What's a code 0 message? All my messages are "0x0000001eb", or "..ef" or "...e4" and other such hex values. What am I looking for?
Also, what does the script Rajat posted do? I can't make it do anything (except display a GUI window). How do I use it?
Thanks in advance! |
|
| Back to top |
|
 |
kapege.de
Joined: 07 Feb 2005 Posts: 188 Location: Munich, Germany
|
Posted: Thu Dec 01, 2005 4:44 pm Post subject: |
|
|
| Rajat wrote: | | I've uploaded a long list of messages that can be sent from ahk here. Will come in handy to advanced users. |
Wow! Your'e my hero! That seems to be a lot of fun tonight, torturing my Windows.  _________________ Peter
Wisenheiming for beginners: KaPeGe (German only, sorry) |
|
| Back to top |
|
 |
SanskritFritz
Joined: 17 Feb 2005 Posts: 283 Location: Hungary, Budapest
|
Posted: Thu Feb 09, 2006 5:02 pm Post subject: Apollo FLAC plugin bug: long filename crashes Apollo |
|
|
Simulate clicking on the traybar icon of Process Explorer:
| Code: | DetectHiddenWindows ON
PostMessage 0x7e9, 1, 0x201, ,ahk_class PROCEXPL
|
_________________ Is there another word for synonym? |
|
| Back to top |
|
 |
arabinow
Joined: 09 Feb 2006 Posts: 19
|
Posted: Fri Feb 17, 2006 6:49 pm Post subject: |
|
|
In your example for playing and pausing medai player you use the following source code:
PostMessage, 0x111, 32808, 0, , Windows Media Player
How did you get 32808?
I've found that PostMessage and SendMessage are great solutions to getting scripts to work with a locked screen. Thanks. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
|
| Back to top |
|
 |
IQpierce
Joined: 24 May 2006 Posts: 2
|
Posted: Wed May 24, 2006 4:51 pm Post subject: |
|
|
First I want to thank Rajat for the many very useful Winamp lparams and so forth in the early posts in this thread... big help.
I thought I'd point out this tidbit I ran across, which reveals how to get Winamp volume:
http://forums.winamp.com/showthread.php?s=b6ff4f44e2b351ee83984abb6a182c37&threadid=103667&goto=nextnewest
| Quote: | You want a get volume api? There is already one in there bitch!
code:--------------------------------------------------------------------------------
#define IPC_SETVOLUME 122
/* (requires Winamp 2.0+)
** SendMessage(hwnd_winamp,WM_WA_IPC,volume,IPC_SETVOLUME);
** IPC_SETVOLUME sets the volume of Winamp (from 0-255).
*/
--------------------------------------------------------------------------------
There is an undocumented feature here. Pass -666 for the volume, and voila you receive the current volume.
|
Useful for those of us who want to get the Winamp volume - whether for display or something else. Here's an example of my using this feature:
| Code: |
SetTitleMatchMode, 2
DetectHiddenWindows, On
IfWinNotExist, - Winamp
return
else
SendMessage, 0x400, -666, 122 ; Gets the volume from Winamp, stores in "ErrorLevel"
if ErrorLevel <> FAIL
MsgBox, Winamp volume is %ErrorLevel% out of 255
|
|
|
| Back to top |
|
 |
|