Modify

#140 closed Feature Request (Completed)

Add ToolbarWindow32 information on buttons

Reported by: junkew@… Owned by: Jpm
Milestone: 3.3.1.0 Component: Au3Info
Version: Severity:
Keywords: Cc:

Description

Would be nice if buttons on toolbar windows are recognized or at least some initial information can be spyed on.

Some (partial) code like below retrieves some usefull information
Code acts now on wordphrase like Toolbar but can imagine trigger should be something less classname dependent. (Class tested on = ToolbarWindow32)

if stringinstr($sClassname,"Toolbar") > 0 Then
	$tbCount = _GUICtrlToolbar_ButtonCount($hWnd)
	for $i=0 to $tbcount -1
		;Determine rectangle and check matching area
		$aRect = _GUICtrlToolbar_GetButtonRect ($hWnd, _GUICtrlToolbar_IndexToCommand($hWnd, $i))
		$mPos=mousegetpos()
		$wPos=wingetpos($hWnd)
		if (($mPos[0] - $wPos[0]) > $arect[0] ) and (($mPos[0] - $wPos[0]) < $arect[2] ) _
		And (($mPos[1] - $wPos[1]) > $arect[1] ) and (($mPos[1] - $wPos[1]) < $arect[3] ) Then
			$tbText = "[Index: "     & $i & _ 
			          " CommandID: " & _GUICtrlToolbar_IndexToCommand($hWnd, $i) & _
					  " text: "      & _GUICtrlToolbar_GetButtonText($hWnd, $i) & " ]"
		endif	
	next
endIf

Wishes
"Must"

  • Show initially information on index, commandid, text, tooltip and area of the button where mouse is hovering over

"Should"

  • Highlight/rubberband the button hovering over

Attachments (0)

Change History (9)

comment:1 by TicketCleanup, on Feb 24, 2008 at 10:00:05 PM

Version: 3.2.10.0

Automatic ticket cleanup.

comment:2 by TicketCleanup, on Feb 24, 2008 at 11:25:37 PM

Milestone: Future Release

Automatic ticket cleanup.

comment:3 by Gary, on Feb 25, 2008 at 3:59:37 PM

Resolution: Rejected
Status: newclosed

Write a wrapper function of what you want.

I believe also much of what you are wanting can be done thru WM_NOTIFY.

in reply to:  3 comment:4 by junkew@…, on Feb 25, 2008 at 11:37:05 PM

Resolution: Rejected
Status: closedreopened

Replying to Gary:

Write a wrapper function of what you want.

I believe also much of what you are wanting can be done thru WM_NOTIFY.

Are we talking about the same here. I am talking about the AU3INFO.EXE window spying tool. I understand I can write functions to analyze an hwnd ToolbarWindow32 deeper but that means run a function before analysis can be done. I feel that the AutoIt Window Info tool is build for that purpose and now its only showing the main window information of a toolbar but not the actual buttons that are on the toolbar.

I am not talking about activating/clicking the buttons thru code but having the AU3INFO.EXE tool immediately showing me the commandid's tooltips etc. of the buttons on the toolbar so I can easily find out what code I have to write to use it actually.

comment:5 by Gary, on Feb 26, 2008 at 12:30:06 AM

Well considering you never once mentioned au3info in the original post, all anyone could do was assume.

in reply to:  5 comment:6 by Valik, on Feb 26, 2008 at 2:50:32 AM

Replying to Gary:

Well considering you never once mentioned au3info in the original post, all anyone could do was assume.

Actually, he did set the component to Au3Info. Still, though, I don't disagree. It should have been mentioned in the post.

comment:7 by junkew@…, on Feb 28, 2008 at 1:09:11 PM

Sorry for not mentioning it in the description itself but I thought as it was in the component selected it was clear.

What I currently experience with AutoIT is that I can do a lot with coding but have to write scripts to find out more details on for example toolbars and the ID's of the actual buttons I want to click before I actually can write my actual script.

For ease of use it would be handy if that information is immediately shown by AU3Info. I don't care if its the code I supplied or otherwise implemented but the more AU3Info immediately shows the more time it will save me in coding.

comment:8 by Zedna, on Feb 29, 2008 at 10:47:06 PM

It sounds like VERY usefull idea.
I vote for this feature too.

comment:9 by Jpm, on Feb 17, 2009 at 12:33:52 PM

Milestone: 3.3.1.0
Owner: set to Jpm
Resolution: Completed
Status: reopenedclosed

Added in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.