trex Posted December 25, 2022 Share Posted December 25, 2022 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 comment Share on other sites More sharing options...
ioa747 Posted December 25, 2022 Share Posted December 25, 2022 happy X-Mas try better with https://www.autoitscript.com/autoit3/docs/functions/WinMenuSelectItem.htm stat the x, y position I know that I know nothing Link to comment Share on other sites More sharing options...
trex Posted December 25, 2022 Author Share Posted December 25, 2022 (edited) 15 hours ago, ioa747 said: 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 December 25, 2022 by trex Link to comment Share on other sites More sharing options...
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