Sign in to follow this  
Followers 0
EDD

Get the position of a task on the taskbar

4 posts in this topic

Is there a function to get the position of a task on the taskbar?

For the systemtray there is a udf called SysTray_UDF.au3.

What i want is to double click on the task on the taskbar, with the mouse.

Share this post


Link to post
Share on other sites



Hi,

why click it? What is the goal? Can't you just restore the window?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Is there a function to get the position of a task on the taskbar?

For the systemtray there is a udf called SysTray_UDF.au3.

What i want is to double click on the task on the taskbar, with the mouse.

Another option is to use the Toolbar UDF from PaulIA's Au3Lib:

#include <A3LToolBar.au3>

Opt("WinTitleMatchMode", 4)
$hToolBar = WinGetHandle("[CLASS:Shell_TrayWnd]", "")
$hSysTray = ControlGetHandle($hToolBar, "", "ToolbarWindow322")
$BtnCnt = _Toolbar_ButtonCount($hSysTray)
$BtnData = ""
For $i = 0 To $BtnCnt - 1
    $BtnCmdID = _Toolbar_IndexToCommand($hSysTray, $i)
    $BtnTxt = _Toolbar_GetButtonText($hSysTray, $BtnCmdID)
    $BtnData &= "Index: " & $i & "   CommandID: " & $BtnCmdID & "   Text: " & $BtnTxt & @CRLF
Next
   
MsgBox(64, "Result", $BtnData)

The taskbar is just a window with toolbars and a button. The window is "[CLASS:Shell_TrayWnd]", the System Tray control is "ToolbarWindow321", the task portion is "ToolbarWindow322", and the start button "Button1".

:whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Wow, Paul his Auto3lib got very much handy function's. Thanx for pointing me at that.

Mega the restore function does not fully work with the program's i use. I go and have look at Auto3lib looks good.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0