malka Posted November 27, 2018 Posted November 27, 2018 how can I choose a control like "computer management" in start menu: I mean I know that to reach to the start I have to write Send("^{ESC}") but how can I press on any button in the menu: thanks............
Developers Jos Posted November 27, 2018 Developers Posted November 27, 2018 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ModemJunki Posted December 13, 2018 Posted December 13, 2018 Why not just run "compmgmt.msc"? (also every topic you start is getting moved to new forum by the mods -> please open topics in the general help and support forums...) Always carry a towel.
Nine Posted December 13, 2018 Posted December 13, 2018 One way would be to do an _ImageSearch for the one icon you are looking for and MouseClick it, if found... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
ModemJunki Posted December 13, 2018 Posted December 13, 2018 Also I think to open the Start menu you can also use the Windows key too. Send('{LWIN}') Always carry a towel.
Nine Posted December 13, 2018 Posted December 13, 2018 (edited) Or you may prefer this approach #include <Constants.au3> #include <GUIConstants.au3> #include <GuiListView.au3> Opt ("MustDeclareVars", 1) Opt ("MouseCoordMode", 1) if not @AutoItX64 and @OSArch = "X64" then Exit MsgBox (0,"Error","This script only works when run in 64bits") Send('{LWIN}') Sleep (500) Global $hListView = ControlGetHandle("[CLASS:DV2ControlHost]", "", "[CLASS:SysListView32;INSTANCE:1]") If @error Then Exit MsgBox(0, "Error..", "Unable to get Menu Start handle") Global $pos = WinGetPos ($hListView) Local $Item = _GUICtrlListView_FindText ($hListView, "Icon name") if $Item = -1 then Exit MsgBox(0, "Error..", "Name of the icon doesn't exist") Local $Rect = _GUICtrlListView_GetItemRect ($hListView,$Item,1) Local $x = $Rect[0]+int(($Rect[2]-$Rect[0])/2) + $pos[0] Local $y = $Rect[1]+int(($Rect[3]-$Rect[1])/2) + $pos[1] ToolTip ("Here is the shortcut you want to click on",$x,$y,"FYI...",$TIP_INFOICON,$TIP_BALLOON+$TIP_FORCEVISIBLE) Sleep (3000) MouseMove ($x, $y) Sleep (3000) MouseClick ("left") Sleep (1000) Edited December 13, 2018 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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