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 

An Advanced Technique.
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Rajat



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Sat Mar 12, 2005 10:45 pm    Post subject: Reply with quote

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



Joined: 17 Feb 2005
Posts: 283
Location: Hungary, Budapest

PostPosted: Tue Mar 15, 2005 10:19 pm    Post subject: Reply with quote

Anonymous wrote:
Using this results in a problem with the lister.
It justs stays in the background, what ver file I open.
Hmm true. Sad 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
View user's profile Send private message
cstone



Joined: 16 Apr 2005
Posts: 28

PostPosted: Sat Apr 16, 2005 12:11 am    Post subject: control focus in IE Reply with quote

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



Joined: 28 Mar 2004
Posts: 1718

PostPosted: Sat Apr 16, 2005 6:34 am    Post subject: Reply with quote

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






PostPosted: Fri Nov 25, 2005 3:05 pm    Post subject: Reply with quote

how can i figure out hex code for custom (registered) windows message?

:/
Back to top
Guest






PostPosted: Sun Nov 27, 2005 3:40 am    Post subject: Reply with quote

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

PostPosted: Sun Nov 27, 2005 4:05 am    Post subject: Reply with quote

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






PostPosted: Sun Nov 27, 2005 4:07 am    Post subject: Reply with quote

Wow, so that mean I can't find it for my favorite app? Whoa..
Back to top
shimanov



Joined: 25 Sep 2005
Posts: 612

PostPosted: Sun Nov 27, 2005 4:10 am    Post subject: Reply with quote

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



Joined: 04 Jun 2005
Posts: 128

PostPosted: Thu Dec 01, 2005 10:13 am    Post subject: Re: An Advanced Technique. Reply with quote

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



Joined: 07 Feb 2005
Posts: 188
Location: Munich, Germany

PostPosted: Thu Dec 01, 2005 4:44 pm    Post subject: Reply with quote

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. Twisted Evil
_________________
Peter

Wisenheiming for beginners: KaPeGe (German only, sorry)
Back to top
View user's profile Send private message Visit poster's website
SanskritFritz



Joined: 17 Feb 2005
Posts: 283
Location: Hungary, Budapest

PostPosted: Thu Feb 09, 2006 5:02 pm    Post subject: Apollo FLAC plugin bug: long filename crashes Apollo Reply with quote

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



Joined: 09 Feb 2006
Posts: 19

PostPosted: Fri Feb 17, 2006 6:49 pm    Post subject: Reply with quote

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


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Sat Feb 18, 2006 2:00 am    Post subject: Reply with quote

If you haven't already, check out Rajat's SendMessage Tutorial.
Back to top
View user's profile Send private message Send e-mail
IQpierce



Joined: 24 May 2006
Posts: 2

PostPosted: Wed May 24, 2006 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
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