AutoHotkey Community

It is currently May 27th, 2012, 6:10 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 93 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: March 12th, 2005, 11:45 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
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).

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2005, 11:19 pm 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: control focus in IE
PostPosted: April 16th, 2005, 1:11 am 
Offline

Joined: April 16th, 2005, 1:05 am
Posts: 28
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2005, 7:34 am 
Offline

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2005, 4:05 pm 
how can i figure out hex code for custom (registered) windows message?

:/


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2005, 4:40 am 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2005, 5:05 am 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2005, 5:07 am 
Wow, so that mean I can't find it for my favorite app? Whoa..


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 27th, 2005, 5:10 am 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
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.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 1st, 2005, 11:13 am 
Offline

Joined: June 4th, 2005, 1:54 am
Posts: 146
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2005, 5:44 pm 
Offline

Joined: February 7th, 2005, 11:11 am
Posts: 192
Location: Munich, Germany
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:

_________________
Peter

Wisenheiming for beginners: KaPeGe (German only, sorry)


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 9th, 2006, 6:02 pm 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2006, 7:49 pm 
Offline

Joined: February 9th, 2006, 10:58 pm
Posts: 19
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 18th, 2006, 3:00 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
If you haven't already, check out Rajat's SendMessage Tutorial.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2006, 5:51 pm 
Offline

Joined: May 24th, 2006, 5:39 pm
Posts: 4
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 ... 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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 93 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Bing [Bot], Exabot [Bot], Google [Bot], Google Feedfetcher, JamixZol, Yahoo [Bot] and 15 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:
Powered by phpBB® Forum Software © phpBB Group