Jump to content

Vista problem with Run()


Noob
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

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

RunAsSet($username,@ComputerName,$password)

Run("osk.exe")

RunAsSet()

Edited by weaponx
Link to comment
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.

Link to comment
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)
Link to comment
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).

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...