Files
openchamber-android-native/third_party/mygo/plugins/automation/menu_windows.go
T

14 lines
432 B
Go
Raw Normal View History

//go:build windows && (amd64 || arm64) && !mygo_noinspector
package automation
import (
"github.com/egoist/mygo"
"github.com/egoist/mygo/internal/windows"
)
// chooseMenuItem chooses an item of the window's menu bar, which shows
// the application menu, by the labels along its path. Main thread only.
func chooseMenuItem(w *mygo.Window, path []string) error {
return windows.TestActivateMenuItem(w.NativeHandle(), path...)
}