rakesh2804 Posted January 8, 2018 Posted January 8, 2018 Hi, I am new to autoit. I want to expand the system tray icon and right click a icon to configure a few settings. I am running windows 10 and Autoit v3. Please guide me through this.
careca Posted January 8, 2018 Posted January 8, 2018 (edited) This is a messy thing for me, but i think you can go with uiawrappers. This is an example of how to click the start button. ;============================================================================= #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) _UIA_setVar("oTaskbar","Title:=;controltype:=UIA_PaneControlTypeId;class:=Shell_TrayWnd") ; _UIA_setVar("oStartbutton","title:=Start;classname:=Start") _UIA_Action("oTaskbar","setfocus") _UIA_Action("oStartButton","setfocus") ;For start button you first have to give it the focus before you click as when you setfocus to menuitems you can have different behavior _UIA_Action("oStartButton","click") ;============================================================================= or to open the tray hidden icons ControlClick('[Class:Shell_TrayWnd]', '', 1502) Edited January 8, 2018 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
rakesh2804 Posted January 9, 2018 Author Posted January 9, 2018 18 hours ago, careca said: ControlClick('[Class:Shell_TrayWnd]', '', 1502) Thank you! This worked. But how do I right click on the icon after expanding?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now