Code: Select all
#SingleInstance Force
#Requires Autohotkey v2.0+
feEl := UIA.ElementFromHandle("ahk_exe explorer.exe")
+1::
{
fEl.ShowContextMenu()
}
Code: Select all
#SingleInstance Force
#Requires Autohotkey v2.0+
feEl := UIA.ElementFromHandle("ahk_exe explorer.exe")
+1::
{
fEl.ShowContextMenu()
}
Code: Select all
feEl := UIA.ElementFromHandle("ahk_exe explorer.exe")
try items := feEl.FindElement({ClassName:"DUIListView"})
catch
throw Error("No files/folders item list found")
try items.FindElement({SelectionItemIsSelected:1}).ShowContextMenu()
catch
throw Error("No selected item found")
Code: Select all
#SingleInstance Force
#Requires Autohotkey v2.0+
feEl := UIA.ElementFromHandle("ahk_exe explorer.exe")
+1::
{
fEl.ShowContextMenu()
}
Code: Select all
^F1::try ToolTip UIA.ElementFromPoint().ShowContextMenu()
Code: Select all
#Include UIA.ahk
#include UIA_Browser.ahk
Run "chrome.exe -incognito"
WinWaitActive "ahk_exe chrome.exe"
cUIA := UIA_Browser() ; uses Last Found Window returned by WinWaitActive
cUIA.Navigate("google.com")
links := cUIA.GetAllLinks()
txt := ""
for i, link in links
txt .= "Link " i ": " link.Name " " link.Value "`n"
MsgBox txt
MsgBox "Clicking second link"
links[2].Click()
Code: Select all
Numpad0::
{
npEl := UIA.ElementFromHandle("ahk_exe notepad++.exe")
npEl := UIA.FindElement({Type:"MenuBar", Name:"Application"})
A_Clipboard := El.DumpAll()
}
Code: Select all
Type: 50032 (Window) Name: "Preferences" LocalizedType: "dialog" ClassName: "#32770"
1: Type: 50008 (List) LocalizedType: "list" AutomationId: "6002" ClassName: "ListBox"
1,1: Type: 50007 (ListItem) Name: "General" LocalizedType: "list item"
1,2: Type: 50007 (ListItem) Name: "Editing" LocalizedType: "list item"
1,3: Type: 50007 (ListItem) Name: "Dark Mode" LocalizedType: "list item"
1,4: Type: 50007 (ListItem) Name: "Margins/Border/Edge" LocalizedType: "list item"
1,5: Type: 50007 (ListItem) Name: "New Document" LocalizedType: "list item"
1,6: Type: 50007 (ListItem) Name: "Default Directory" LocalizedType: "list item"
1,7: Type: 50007 (ListItem) Name: "Recent Files History" LocalizedType: "list item"
1,8: Type: 50007 (ListItem) Name: "File Association" LocalizedType: "list item"
1,9: Type: 50007 (ListItem) Name: "Language" LocalizedType: "list item"
1,10: Type: 50007 (ListItem) Name: "Highlighting" LocalizedType: "list item"
1,11: Type: 50007 (ListItem) Name: "Print" LocalizedType: "list item"
1,12: Type: 50007 (ListItem) Name: "Searching" LocalizedType: "list item"
1,13: Type: 50007 (ListItem) Name: "Backup" LocalizedType: "list item"
1,14: Type: 50007 (ListItem) Name: "Auto-Completion" LocalizedType: "list item"
1,15: Type: 50007 (ListItem) Name: "Multi-Instance & Date" LocalizedType: "list item"
1,16: Type: 50007 (ListItem) Name: "Delimiter" LocalizedType: "list item"
1,17: Type: 50007 (ListItem) Name: "Performance" LocalizedType: "list item"
1,18: Type: 50007 (ListItem) Name: "Cloud & Link" LocalizedType: "list item"
1,19: Type: 50007 (ListItem) Name: "Search Engine" LocalizedType: "list item"
1,20: Type: 50007 (ListItem) Name: "MISC." LocalizedType: "list item"
2: Type: 50000 (Button) Name: "Close" LocalizedType: "button" AutomationId: "6001" ClassName: "Button"
3: Type: 50020 (Text) Name: "Localization:" LocalizedType: "text" AutomationId: "6123" ClassName: "Static"
4: Type: 50003 (ComboBox) Name: "Localization:" Value: "English" LocalizedType: "combo box" AutomationId: "6124" ClassName: "ComboBox"
4,1: Type: 50020 (Text) Name: "Localization:" Value: "English" LocalizedType: "text"
4,2: Type: 50000 (Button) Name: "Open" LocalizedType: "button" AutomationId: "DropDown"
5: Type: 50026 (Group) Name: "Toolbar" LocalizedType: "group" AutomationId: "6101" ClassName: "Button"
6: Type: 50002 (CheckBox) Name: "Hide" LocalizedType: "check box" AutomationId: "6102" ClassName: "Button"
7: Type: 50013 (RadioButton) Name: "Fluent UI: small" LocalizedType: "radio button" AutomationId: "6103" ClassName: "Button"
8: Type: 50013 (RadioButton) Name: "Fluent UI: large" LocalizedType: "radio button" AutomationId: "6104" ClassName: "Button"
9: Type: 50013 (RadioButton) Name: "Filled Fluent UI: small" LocalizedType: "radio button" AutomationId: "6129" ClassName: "Button"
10: Type: 50013 (RadioButton) Name: "Filled Fluent UI: large" LocalizedType: "radio button" AutomationId: "6130" ClassName: "Button"
11: Type: 50013 (RadioButton) Name: "Standard icons: small" LocalizedType: "radio button" AutomationId: "6105" ClassName: "Button"
12: Type: 50026 (Group) Name: "Tab Bar" LocalizedType: "group" AutomationId: "6106" ClassName: "Button"
13: Type: 50002 (CheckBox) Name: "Hide" LocalizedType: "check box" AutomationId: "6118" ClassName: "Button"
14: Type: 50002 (CheckBox) Name: "Multi-line" LocalizedType: "check box" AutomationId: "6119" ClassName: "Button"
15: Type: 50002 (CheckBox) Name: "Vertical" LocalizedType: "check box" AutomationId: "6120" ClassName: "Button"
16: Type: 50002 (CheckBox) Name: "Reduce" LocalizedType: "check box" AutomationId: "6107" ClassName: "Button"
17: Type: 50002 (CheckBox) Name: "Alternate icons" LocalizedType: "check box" AutomationId: "6128" ClassName: "Button"
18: Type: 50002 (CheckBox) Name: "Lock (no drag and drop)" LocalizedType: "check box" AutomationId: "6108" ClassName: "Button"
19: Type: 50002 (CheckBox) Name: "Darken inactive tabs" LocalizedType: "check box" AutomationId: "6109" ClassName: "Button"
20: Type: 50002 (CheckBox) Name: "Draw a coloured bar on active tab" LocalizedType: "check box" AutomationId: "6110" ClassName: "Button"
21: Type: 50002 (CheckBox) Name: "Show close button on each tab" LocalizedType: "check box" AutomationId: "6112" ClassName: "Button"
22: Type: 50002 (CheckBox) Name: "Double click to close document" LocalizedType: "check box" AutomationId: "6113" ClassName: "Button"
23: Type: 50002 (CheckBox) Name: "Exit on close the last tab" LocalizedType: "check box" AutomationId: "6121" ClassName: "Button"
24: Type: 50002 (CheckBox) Name: "Show status bar" LocalizedType: "check box" AutomationId: "6111" ClassName: "Button"
25: Type: 50026 (Group) Name: "Menu" LocalizedType: "group" AutomationId: "6131" ClassName: "Button"
26: Type: 50002 (CheckBox) Name: "Hide menu bar (use Alt or F10 key to toggle)" LocalizedType: "check box" AutomationId: "6122" ClassName: "Button"
27: Type: 50002 (CheckBox) Name: "Hide right shortcuts + ▼ ✕ from the menu bar (Need to restart Notepad++)" LocalizedType: "check box" AutomationId: "6132" ClassName: "Button"
28: Type: 50037 (TitleBar) Value: "Preferences" LocalizedType: "title bar" AutomationId: "TitleBar"
28,1: Type: 50000 (Button) Name: "Close" LocalizedType: "button" AutomationId: "Close"
Code: Select all
#SingleInstance Force
#Requires Autohotkey v2.0+
#Include <UIA_Interface-v2>
#Include <UIA_Browser-v2>
RunWait "https://www.upperdeckepack.com/login"
Sleep(1600)
Click 535, 466
Send "EMAIL ADDRESS"
Send "{Tab}"
Send "PASSWORD"
Send "{Tab 3}"
Send "{Enter}"
Sleep(3000)
MouseMove 812, 180
cUIA := UIA_Browser(Upper Deck ahk_exe msedge.exe)
Sleep(3000) ; Wait for menu to drop-down
cUIA.WaitElement({Name:"COLLECT", Type:"Link"}).Click()