deepthio Posted March 31, 2020 Posted March 31, 2020 Using SciTe script I'm trying to run Performance Monitor after opening it there is a "system tree view" Performance Data collector sets System System Performance This is the system tree view on left side of window where I've to click on system performance which I'm not able to write code for it and right click on System Performance and select "start" to start monitoring it.
Moderators Melba23 Posted March 31, 2020 Moderators Posted March 31, 2020 Moved to the appropriate forum. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
deepthio Posted March 31, 2020 Author Posted March 31, 2020 2 hours ago, deepthio said: Using SciTe script I'm trying to run Performance Monitor after opening it there is a "system tree view" Performance Data collector sets System System Performance This is the system tree view on left side of window where I've to click on system performance which I'm not able to write code for it and right click on System Performance and select "start" to start monitoring it.
deepthio Posted March 31, 2020 Author Posted March 31, 2020 SciTe script to run Perfmon and after opening it there is a SysTreeView32 on left side of window I've to access "System Performance" and right click on it to either select "start" or "stop" button After the perfmon is opened I've to expand this systreeview32. I'm not able to write script for this. Please help me out in writing script to this
Developers Jos Posted March 31, 2020 Developers Posted March 31, 2020 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. 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.
Developers Jos Posted March 31, 2020 Developers Posted March 31, 2020 @deepthio, Why did you again create a new topic in the wrong forum while you had this one already going? Please stick this this one and post AutoIt3 questions in this section of the forums. Jos 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.
deepthio Posted March 31, 2020 Author Posted March 31, 2020 Using SciTe script I'm trying to run Performance Monitor after opening it there is a "system tree view" Performance Data collector sets System System Performance This is the system tree view on left side of window where I've to click on system performance which I'm not able to write code for it and right click on System Performance and select "start" to start monitoring it.
Developers Jos Posted March 31, 2020 Developers Posted March 31, 2020 @deepthio, This is the last time I will allow you to create a new topic with the same question instead of using this one, next time you will get a posting ban.Merged again .. so use only this topic for your question ....Clear? Jos 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.
Nine Posted March 31, 2020 Posted March 31, 2020 Show us your code, what you have done so far... “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
deepthio Posted March 31, 2020 Author Posted March 31, 2020 1 hour ago, Nine said: Show us your code, what you have done so far... #RequireAdmin Run("perfmon") AutoItSetOption("MouseCoorMode",0) WinWaitActive("Performance Monitor") WinActivate("Performance Monitor") ControlTreeView("Performance Monitor", "", "SysTreeView321", "Expand", "#1|#1|#1") ControlTreeView("Performance Monitor", "", "SysTreeView321", "Select", "#1|#1|#1") MouseClick("secondary", 166, 240, 1, 0) ControlClick("Performance Monitor","Performance","SysTreeView321")
Nine Posted March 31, 2020 Posted March 31, 2020 You need to expand progressively and at the leaf of the tree, you can then select it : Local $hWnd = WinWaitActive("[CLASS:MMCMainFrame]") ControlTreeView($hWnd, "", "SysTreeView321", "Expand", "#0|#1") ControlTreeView($hWnd, "", "SysTreeView321", "Expand", "#0|#1|#1") ControlTreeView($hWnd, "", "SysTreeView321", "Select", "#0|#1|#1|#1") “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
deepthio Posted April 1, 2020 Author Posted April 1, 2020 (edited) 15 hours ago, Nine said: You need to expand progressively and at the leaf of the tree, you can then select it : Local $hWnd = WinWaitActive("[CLASS:MMCMainFrame]") ControlTreeView($hWnd, "", "SysTreeView321", "Expand", "#0|#1") ControlTreeView($hWnd, "", "SysTreeView321", "Expand", "#0|#1|#1") ControlTreeView($hWnd, "", "SysTreeView321", "Select", "#0|#1|#1|#1") how to click on start and stop button on right click of system performance. should I use mouseclick method but that varies from system to system right so thought of using control click could you help me out on this. Edited April 1, 2020 by deepthio
Nine Posted April 1, 2020 Posted April 1, 2020 Try with the menu instead, by using Send ("!a") you will open the action menu, and from there you can start or stop. “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
deepthio Posted April 1, 2020 Author Posted April 1, 2020 5 hours ago, Nine said: Try with the menu instead, by using Send ("!a") you will open the action menu, and from there you can start or stop. I'm able to see the action menu but not able to move the finder tool on to start or stop option . When I move the finder tool the action menu is getting closed,how can I click on start or stop in this case. And also in case of report I want to print the report where in I've to right click on report and print which is similar action to that of start and stop. Please help me out in this.
Developers Jos Posted April 1, 2020 Developers Posted April 1, 2020 On 3/31/2020 at 1:49 PM, Jos said: @deepthio, This is the last time I will allow you to create a new topic with the same question instead of using this one, next time you will get a posting ban.Merged again .. so use only this topic for your question ....Clear? Jos So you decided to again create 2 new thread on this same topic? Which part was unclear to you in my post ? Jos PS: Everybody else: Please stay out till I have a clear answer from the OP! 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.
deepthio Posted April 2, 2020 Author Posted April 2, 2020 10 hours ago, Jos said: So you decided to again create 2 new thread on this same topic? Which part was unclear to you in my post ? Jos PS: Everybody else: Please stay out till I have a clear answer from the OP! It is 2 different queries.. one is regarding action menu selected item and the other is regarding mouse right click. I've seen people raising request for individual items that is the reason I raised request for individual items. If I'm not supposed to do that I'll not do it again. thankyou.
deepthio Posted April 2, 2020 Author Posted April 2, 2020 17 hours ago, Nine said: Try with the menu instead, by using Send ("!a") you will open the action menu, and from there you can start or stop. I'm able to see the action menu but not able to move the finder tool on to start or stop option . When I move the finder tool the action menu is getting closed,how can I click on start or stop in this case. And also in case of report I want to print the report where in I've to right click on report and print which is similar action to that of start and stop. Please help me out in this.
Developers Jos Posted April 2, 2020 Developers Posted April 2, 2020 2 hours ago, deepthio said: If I'm not supposed to do that I'll not do it again. It looks very similar to me and it is very confusing when you have multiple threads (3) going on the automation of the same program don't you think? Ok, this thread is open for business again. Jos 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.
deepthio Posted April 2, 2020 Author Posted April 2, 2020 52 minutes ago, Jos said: It looks very similar to me and it is very confusing when you have multiple threads (3) going on the automation of the same program don't you think? Ok, this thread is open for business again. Jos thankyou. Will not repeat it again.
Nine Posted April 2, 2020 Posted April 2, 2020 6 hours ago, deepthio said: I'm able to see the action menu but not able to move the finder tool on to start or stop option . When I move the finder tool the action menu is getting closed,how can I click on start or stop in this case. If you had looked carefully at finder tool report, you would have seen that it is not a standard Window menu, but a toolbar. As described in help file : Quote WinMenuSelectItem() will only work on standard menus. Unfortunately, many menus in use today are actually custom written or toolbars "pretending" to be menus. This is true for most Microsoft applications. So the easy way to select item in those "menu" is to Send shortcut keys and/or arrow and enter keys. Remember, inside menu there are hidden shortcut keys (it is not explicit). You will have to figure out the keys by yourself as my OS is in french. And please do not quote everything we said, we know what we have told you. Just do a simple reply unless you want to highlight specific part of a post. “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