JoelLL Posted December 29, 2016 Posted December 29, 2016 Hi All, Please forgive me if this has been answered somewhere else, but I haven't been able to find it. Under Windows7, .x86 or .x64, on a Lenovo 410 laptop, the following line fails: $iPID = Run ("c:\windows\system32\soundrecorder.exe") with $iPID = 0 but the following lines work just fine: $iPID = Run ("c:\windows\system32\notepad.exe") and $iPID = Run ("c:\windows\system32\sndvol.exe") soundrecorder.exe is clearly present in c:\windows\system32. Also running soundrecorder from the windows command line works fine, too as does double-clicking "soundrecorder.exe" in c:\windows\system32. I see that there once was a bug report with exactly this problem (https://www.autoitscript.com/trac/autoit/ticket/1253), but it was closed as "no bug" with no other explanation that I've been able to find. Lots of folks seem to be able to use Run with soundrecorder, so it's clearly not a known limitation. Any clue? Am I missing something really, really obvious? It feels like it, but I'm out of possibilities... Many thanks and happy New Year, Joel
Moderators JLogan3o13 Posted December 30, 2016 Moderators Posted December 30, 2016 Moved to General Help and Support. Please take notice of where you post in the future, the Developer forum clearly states: Quote Do not create AutoIt-related topics here, use the AutoIt General Help and Support "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
careca Posted December 30, 2016 Posted December 30, 2016 At first i got $iPID = 0 Then I added #RequireAdmin and it gave me an error, because i don't have it installed. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
JoelLL Posted January 3, 2017 Author Posted January 3, 2017 My apologies for posting in the wrong place. I have admin rights on the account I'm using. Adding #RequireAdmin didn't change anything in my case...
spudw2k Posted January 3, 2017 Posted January 3, 2017 Works fine on my Windows 7 machine, unable to reproduce. $iPID = Run (@SystemDir & "\soundrecorder.exe") msgbox(0,"test",$iPID) Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
JoelLL Posted January 3, 2017 Author Posted January 3, 2017 Thanks for checking. That identical code fails on my machine. Must be a setting somewhere... Anything else with the code? #include files, etc?
Developers Jos Posted January 3, 2017 Developers Posted January 3, 2017 Try running it with the x64 version of AutoIt3. 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.
JoelLL Posted January 3, 2017 Author Posted January 3, 2017 Hah - that worked. Clearly double-clicking on the script was running the .86 version of AutoIt3. Thank you!!!
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