AutoHotkey Community

It is currently May 27th, 2012, 1:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: March 27th, 2009, 1:51 am 
Offline

Joined: March 26th, 2009, 9:50 am
Posts: 2
Thanks you , Sean. Thank you, animeaime!
The codes help me slove my problem.
Nice code.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 7:06 am 
Offline

Joined: December 3rd, 2008, 5:37 am
Posts: 158
Location: chennai,india
Hello sean, can we retrieve the text from the tool tip from windows tool tip. Will the code for menu HELP me?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 10:49 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
chandru155 wrote:
Hello sean, can we retrieve the text from the tool tip from windows tool tip. Will the code for menu HELP me?
I suppose you can simply use WM_GETTEXT, if not work then TTM_GETTEXT.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 1:39 pm 
Offline

Joined: December 3rd, 2008, 5:37 am
Posts: 158
Location: chennai,india
Hello Sean, i tried my best. I dont know about dll call. So i couldnt find a way to pass the necessary parameters. So, if you give me code and if you tell why you are passing tat parameter means, tat will be usefull for me and others also


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 4:19 pm 
chandru155 wrote:
Hello Sean, i tried my best...

Post your code, so anyone may help debuging it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2009, 4:43 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
chandru155 wrote:
Hello Sean, i tried my best. I dont know about dll call. So i couldnt find a way to pass the necessary parameters. So, if you give me code and if you tell why you are passing tat parameter means, tat will be usefull for me and others also
You don't need DllCall(), can use AHK's function SendMessage. Anyway, I was perplexing why you asked it as AHK also has a built-in function WinGetText which I suppose uses WM_GETTEXT, but it turned out to not work with the tooltip.
Code:
WinGetText, sText, ahk_class tooltips_class32
MsgBox % sText

However, ControlGetText worked, so you can use it.
Code:
ControlGetText, sText,, ahk_class tooltips_class32
MsgBox % sText


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Very Simple
PostPosted: March 28th, 2009, 6:46 pm 
Offline

Joined: December 3rd, 2008, 5:37 am
Posts: 158
Location: chennai,india
Your code was very Simple. I couldnt find the class of Tool tip window. I have one doubt. Why the following code doent work? Can you explain me?
Code:
WinWait,ahk_class tooltips_class32
ControlGetText, sText,, ahk_class tooltips_class32
MsgBox % sText


Quote:
How do you know the class of tool tip is tooltips_class32. I looked using Windows Spy. It shows only SysShadow for most of the cases of Creating And destroying windows.


Quote:
Can you give help me to be good at using DllCall. I am having MSDN Library for Windows Sdk. How can i link the functions said in the MSDN with Ahk. I saw in the Manual. But i couldnt understand. Can you explain it with example as your ContextMenu program


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Very Simple
PostPosted: March 29th, 2009, 12:59 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
chandru155 wrote:
Why the following code doent work? Can you explain me?
Probably the tooltip you're interested in uses a custom control, not the Windows standard tooltip tooltips_class32.

BTW, there is no easy way to learn about Win32 API. You just have to keep practicing.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 19th, 2010, 1:39 am 
Offline

Joined: April 27th, 2008, 5:28 pm
Posts: 489
Sean wrote:
animeaime wrote:
So the context menu has it's own window? How do you get the hwnd for the context menu window of an external program...
#32768 is the class name of the Windows standard menu. BTW, it implies that this technique will only work with Windows standard menus, but not with non-standard menus like the ones of firefox etc.


I see you were trying to help animeaime with getting the menu contents of Windows standard menus.

How can I get the contents of Firefox non-standard menus?

thanks
Datalife

_________________
Check out my scripts.
(MyIpChanger) (XPSnap) (SavePictureAs)

All my scripts are tested on Windows 7, AutoHotkey_L 32 bit Ansi unless otherwise stated.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, chaosad, oldbrother and 17 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