Jump to content

Help needed to automate Speccy menu


Recommended Posts

Dear community,

Merry X-Mas and happy holidays.

I have about 50 Speccy snaphots (.speccy extension) that I had previously saved manually (File > Save Snapshot... ), and now I want to batch convert them to text via Speccy's UI (menu "File > Save as text file..." ) in order to retrieve specs and write to Excel.

I am using the non-portable version of Speccy; in my script I just ShellExecute the .speccy file to open it.

ShellExecute($speccySnapshotPath, "", "", $SHEX_OPEN )

Speccy opens 2 windows (maximized by default on my PC), one for the local machine (scanning begins immediately) and one for the snapshot. Related entities that get created are 1 Speccy process, 1 thread and 2 buttons on the Taskbar.

The snapshot window is the active one and focus does not shift to the local machine window when the scan is complete.

Speccy resists all native methods (Send(), MouseMove(), MouseClick() ) to automate key press, mouse movement and clicks.

MouseMove(187, 27, 10)
_ArrayDisplay(MouseGetPos(), "MouseGetPos()" )

When I try to position the mouse over the "File" menu, there is no mouse movement on-screen and MouseGetPos() reports the original coordinates, which were not (187, 27).

Any ideas on how to automate Speccy?

Thanks!

Link to post
Share on other sites
15 hours ago, ioa747 said:

j%C3%B6n-a-mikul%C3%A1s-santa-claus.gif

happy X-Mas

try better with https://www.autoitscript.com/autoit3/docs/functions/WinMenuSelectItem.htm

stat the x, y position

 

Thanks for the suggestion, but WinMenuSelectItem fails too:

Local Const $speccySnapshotPath = "C:\Users\trex\Downloads\speccy automator\MATH-VUT-RRIGHT.speccy"
ShellExecute($speccySnapshotPath, "", "", $SHEX_OPEN )
Sleep(3000)

WinMenuSelectItem("[CLASS:PiriformSpeccy; INSTANCE:2]", "", "&File", "Exit")

Sleep(3000)
MsgBox($MB_SYSTEMMODAL, "", "Finished")

This script opens the saved snapshot file, does not Exit the second window (it should) and displays the message box.

Oh, and WinMenuSelectItem does not take x,y position as parameters :) 

Edited by trex
Link to post
Share on other sites

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...