Jump to content

Recommended Posts

Posted

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
Posted

Moved to the appropriate forum.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted
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

image.png.711a945f159b5ff0e0f3178f286d8499.png

 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.

 

Posted

SciTe script to run Perfmon and after opening it there is a SysTreeView32 on left side of window

image.png.d6aa97252ae0bea8b982f3c5423faf2a.png

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
Posted

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
Posted

@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.
  :)

Posted

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

image.png.711a945f159b5ff0e0f3178f286d8499.png

 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
Posted

@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.
  :)

Posted
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")

Posted

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")

 

Posted (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 by deepthio
Posted
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
Posted
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.
  :)

Posted
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.

Posted
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
Posted
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.
  :)

Posted
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.

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...