Thanks to everyone for their suggestions so far.You can change Speccy's settings by clicking View, and then Options from the main Speccy menu. Compromising security is not an option either. If there is no time-efficient solution, it won't be worth pursuing. Didn't think about that at first.īut it would be nice to be able to use this for any computer in the - So it sounds as if I only have 3 options: UAC off (can't do), UAC tweak, or admin keystrokes(tried already). The nice thing is that the main goal for this was for our engineers computers, which have UAC disabled because it blocks macros for another application they use. I believe WinMenuSelectItem works by sending messages, like PostMessage. It's weird that WinMenuSelectItem doesn't work though, because I would think that this command isn't simulating keystrokes, like "Send" and "SendInput", etc., do.Īlthough, if I understand Lexikos correctly, what he said explains why it doesn't work: I have a separate compiled script that the user runs, which launches the main script as an admin and then that launches Speccy as an admin. I tested it on a machine with UAC enabled at the default level and alas, it did not work. Before anyone had posted replies, I found that command and tried it.hoping I could close my help request before anyone replied. Hmmm, I will have to try WinMenuSelectItem again.
#What is speccy program by piriform how to
I can post more code if necessary, but really all I need is to know how to get keystrokes to work with UAC on and I'm golden. My curiosity question is, "Why does UAC block keystrokes to other programs, but not CMD Prompt - even when they are both run as an administrator? I've tried a number of things and am at a loss atm. Send !fs Send the keystrokes ALT-fs (This works with UAC off)Īlso, how does A_ProgramFiles work with a 圆4 system? Does it search both paths or just one since 圆4 systems have "C:\Program Files" and "C:\Program Files (x86)" ? I would like to consolidate/simplify that IfExist code at the top, if possible.Īnyways, if anyone knows any work around for the UAC thing WITHOUT turning it off, that would be awesome. SaveAgain: "SaveAgain:" is referenced later in the script I do have a loop process later on that keeps trying if 20 seconds isn't long enough. Sleep 20000 After testing, I found that 20 seconds is adequate for Speccy to populate on most systems. SpeccyPath = "C:\Program Files\Speccy\Speccy.exe" SpeccyPath = "C:\Program Files (x86)\Speccy\Speccy.exe" IfExist, C:\Program Files (x86)\Speccy\Speccy.exe The only other thing I will note is that Send and SendInput have no issues with UAC being on when used with an elevated %comspec%. I'm going to stop the steps there and post the code for it, but is there any way to get keystrokes to work with UAC? I searched AHK forums and Google. (code at the bottom of the snippet below) Running as Admin does not change anything. Step 3 does not work with UAC turned on. Send keystrokes ALT-F,S (Save Snapshot under the file menu) It works perfectly with UAC turned off and the problem with the UAC on occurs when it tries to automate the keystrokes.
#What is speccy program by piriform Pc
I have a script that is launching Speccy (Piriform's PC specs grabber) and waits until the program has scanned the user's PC and then saves a snapshot of the computer specs to a network share so I can view it. I cannot do that in my work environment, unfortunately. I know there were a few posts on this already, but most of the solutions were to "turn off UAC".