시스템 트레이의 요소에 액세스하고 이동하고 실행하는 방법이 있습니까? 예를 들어 작업 표시줄 항목에 액세스하는 단축키(Windows+숫자)와 같습니다.
답변1
⊞ Win+ 단축키 에 대해 @Shinray가 말한 내용을 바탕으로 B이것을 만들었습니다.오토핫키스크립트:
#SingleInstance, force
CoordMode, Mouse, Screen
SetDefaultMouseSpeed, 0
RControl & 1::
jumper(1, "Enter")
Return
RControl & 2::
jumper(2, "SingleClick")
Return
jumper(position, action)
{
MouseGetPos, xpos, ypos
sendInput {LWinDown}{b}{LWinUp}{Right %position%}{Enter}
Sleep, 100
if(action = "Enter")
{
}
if(action = "SingleClick")
{
MouseClick, left
}
if(action = "DoubleClick")
{
MouseClick, left, , ,2
}
if(action = "RightClick")
{
MouseClick, right
}
MouseMove %xpos%, %ypos%
}
활성화하려면 Rctrl+숫자를 누르기만 하면 됩니다. 필요한 시스템 트레이 아이콘을 클릭하거나 마우스 오른쪽 버튼으로 클릭하세요.
예를 들어 처음 두 아이콘(내 시스템에서는 uTorrent 및 Altdrag)에 Enter 및 클릭 동작을 배치했습니다. 숫자는 등장순서를 나타냅니다.
답변2
내장된 것을 찾고 있다면 대답은 '아니요'입니다. 구식의 "작업 표시줄로 초점 전환, 시스템 트레이로 탭 이동, 원하는 아이콘 위에 화살표 등" 방법을 포함하지 않는 한. WinKey+B를 사용하여 이를 단축할 수 있지만 여전히 화살표를 누른 다음 어려운 방법으로 상호 작용해야 합니다.
답변3
라는 무료 앱이 있습니다.작업 표시줄 셔플.
작업 표시줄에 열려 있는 창을 원하는 대로 다시 정렬할 수 있습니다. 나는 이 앱을 사용하면 시스템 트레이 아이콘도 재정렬할 수 있다고 확신합니다. 단축키를 지원하는지는 잘 모르겠으나...
답변4
여기에 답변이 있습니다.오토잇, 내가 수정함: Windows 시스템 트레이의 항목을 마우스로 클릭하세요.
- 이전에는 @MJSR의 응답에 정말 감사드립니다.
; #NoTrayIcon
#Include <GuiToolBar.au3>
#include <MsgBoxConstants.au3>
HotKeySet("!d", "_UI") ; Alt-d
While 1
Sleep(100)
WEnd
Func _UI()
; MsgBox($MB_SYSTEMMODAL, "", "This is a message.")
; _SysTray_ClickItem("Executor", "right", 1)
_SysTray_ClickItem("Displaying used physical", "right", 1)
If @error Then MsgBox(48, "Failure", "Required item not found")
EndFunc ;==>ShowMessage
;=========# _SysTray_ClickItem #======================================================
;
;Function Name: _SysTray_ClickItem()
;Description: Click on item in Windows system tray by any substring in the title
;Parameters: $iTitle - The title of the item in Windows system tray (you can see the title of the item when mouse cursor hovered on item).
; $iButton - [optional] The button to click, "left" or "right". Default is the left button.
; $iClick - [optional] The number of times to click the mouse. Default is 1
; $sMove = [optional] True = Mouse will be moved, False (default) = Mouse will not be moved
; $iSpeed = [optional] Mouse movement speed
;Return Value(s): Success - Returns 1
; Failure - Returns 0 and sets @error to 1 if required item not found
;Requirement(s): AutoIt 3.2.10.0 and above
;Autor(s): R.Gilman (a.k.a rasim); Siao (Thanks for idea)
;
;====================================================================================
Func _SysTray_ClickItem($iTitle, $iButton = "left", $iClick = 1, $sMove = False, $iSpeed = 1)
Local $hToolbar, $iButCount, $aRect, $hButton, $cID, $i
$hToolbar = ControlGetHandle("[Class:Shell_TrayWnd]", "", "[Class:ToolbarWindow32;Instance:1]")
If @error Then
Return SetError(1, 0, 0)
EndIf
$iButCount = _GUICtrlToolbar_ButtonCount($hToolbar)
If $iButCount = 0 Then
Return SetError(1, 0, 0)
EndIf
$hButton = ControlGetHandle("[Class:Shell_TrayWnd]", "", "Button2")
If $hButton <> "" Then ControlClick("[Class:Shell_TrayWnd]", "", "Button2")
For $i = 0 To $iButCount - 1
$cID = _GUICtrlToolbar_IndexToCommand($hToolBar, $i)
If StringInStr(_GUICtrlToolbar_GetButtonText($hToolBar, $cID), $iTitle) Then
_GUICtrlToolbar_ClickButton($hToolbar, $cID, $iButton, $sMove, $iClick, $iSpeed)
Return 1
EndIf
Next
Return SetError(1, 0, 0)
- 참고: "사용된 물리적 표시" = MemInfo.exe