Noob Posted October 10, 2007 Share Posted October 10, 2007 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 More sharing options...
weaponx Posted October 10, 2007 Share Posted October 10, 2007 (edited) $username = InputBox("Username","Username:","","") $password = InputBox("Password","Password:","","*") RunAsSet($username,@ComputerName,$password) Run("osk.exe") RunAsSet() Edited October 10, 2007 by weaponx Link to comment Share on other sites More sharing options...
Noob Posted October 10, 2007 Author Share Posted October 10, 2007 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 More sharing options...
weaponx Posted October 10, 2007 Share Posted October 10, 2007 Vista is a pile of crap. Link to comment Share on other sites More sharing options...
zfisherdrums Posted October 10, 2007 Share Posted October 10, 2007 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) Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
Noob Posted October 11, 2007 Author Share Posted October 11, 2007 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 More sharing options...
jaldps Posted October 11, 2007 Share Posted October 11, 2007 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 More sharing options...
Blue_Drache Posted October 12, 2007 Share Posted October 12, 2007 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 Link to comment Share on other sites More sharing options...
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