Sign in to follow this  
Followers 0
Noob

Vista problem with Run()

8 posts in this topic

In Windows XP the following worked just fine:

run("osk.exe")

However, in Windows Vista I receive the following AutoIt Error:

Line 3 (File "C:\Users\Marvin\Desktop\osk.au3"):

run("osk.exe")

Error: Unable to execute the external program.

The requested operation requires elevation.

When I use ShellExecute("osk.exe") instead of Run("osk.exe"), the application (Windows On Screen Keyboard) starts, but I also need the PID, that's why I need the Run() function.

Any help would be grately appreciated.

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

$username = InputBox("Username","Username:","","")

$password = InputBox("Password","Password:","","*")

RunAsSet($username,@ComputerName,$password)

Run("osk.exe")

RunAsSet()

Edited by weaponx

Share this post


Link to post
Share on other sites

Thanks, but I don't want users to have to enter user name and posword each time the application wants to start OSK :-(

This is a freeware used by many :-(

It worked OK under XP, but now I'm trying to make it work under Vista - this is my last issue.

Share this post


Link to post
Share on other sites

Vista is a pile of crap.

Share this post


Link to post
Share on other sites

Hola, noob!

This may be a klunky work-around, but would this work for you?

run("osk.exe")
WinWait( "On-Screen Keyboard" )
$pid = WinGetProcess( "On-Screen Keyboard" )
ConsoleWrite( $pid  & @CRLF)

Share this post


Link to post
Share on other sites

zfisherdrums, thanks, that would normally work, but not in my specific case. My app also lets users select the path to their own (3rd party) OSK program and I wouldn't know the name of the window of that program. So at this point I'm giving up on this for the time being, and I decided to drop one feature from my application for Vista users. I may revisit this issue at some later date (if users ask for the missing feature).

Share this post


Link to post
Share on other sites

Is keeform compatiable with Visa, if so how make it work. It worked fine when I was using XP. Now I have Vista and I cannot get Keeform to work with keepass. I copied the two required files into the Keepass folder and have modified the ini file to read KeeOverride=cmd://Keeform "{URL}" "{USERNAME}" "{PASSWORD}" any suggestions. Thanks jeff

Share this post


Link to post
Share on other sites

I reiterate Weapon's awsome truth.

jaldps: Make your own topic, don't hijack.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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
Sign in to follow this  
Followers 0