JoelLL

soundrecorder won't launch with "Run"

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

At first i got $iPID = 0

Then I added #RequireAdmin and it gave me an error, because i don't have it installed.


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

Share this post


Link to post
Share on other sites

#4 ·  Posted

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

Share this post


Link to post
Share on other sites

#5 ·  Posted

Share this post


Link to post
Share on other sites

#6 ·  Posted

Thanks for checking. That identical code fails on my machine. Must be a setting somewhere...

Anything else with the code? #include files, etc?

Share this post


Link to post
Share on other sites

#8 ·  Posted

Hah - that worked. Clearly double-clicking on the script was running the .86 version of AutoIt3.

Thank you!!!

Share this post


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