#include <_SysTray.au3>
#include <Process.au3>
$sProcess = 'speedfan.exe'
If ProcessExists($sProcess) Then
MsgBox(64, 'Info', _GetTempHD($sProcess))
Else
MsgBox(16, 'Info', 'No process ' & $sProcess)
EndIf
Func _GetTempHD($sNameProcess)
Local $i, $handle, $pid, $name
Local $count = _SysTrayIconCount()
If Not $count Then Return 0
For $i = 0 To $count - 1
$handle = _SysTrayIconHandle($i)
$pid = WinGetProcess($handle)
$name = _ProcessGetName($pid)
If $name = $sNameProcess Then
$tooltip = _SysTrayIconTooltip($i)
ExitLoop
EndIf
Next
Return $tooltip
EndFunc ;==>_GetTempHD