dsingh Posted August 15, 2011 Share Posted August 15, 2011 Hi, I am new to AutoIt - trying to automate Launch and Sign-In feature of a Windows based application. I looked up in the shortcut info to find the exact executable - the target is "C:\Program Files\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx. I tried executing the following command: Run("C:\Program Files\Digi\DigiTable\bin\Digi.exe") but this did not do anything - it ran and stopped, and no window was launched. I also tried ShellExecute() but in vain. Is there something I am missing? Early help would be highly appreciate. Thanks, D Link to comment Share on other sites More sharing options...
Lococobra Posted August 15, 2011 Share Posted August 15, 2011 (edited) It looks as though that domain parameter is needed. Have you already tried running the following? Run('"C:\Program Files\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx') or if you want to be clever... Run('"'&@ProgramFilesDir&'\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx') Edited August 15, 2011 by Lococobra Link to comment Share on other sites More sharing options...
dsingh Posted August 15, 2011 Author Share Posted August 15, 2011 Thanks guys but it doesn't work with any of the suggested commands. I get the following when I execute the command but the app doesn't launch. >Exit code: 0 Time: 0.114 Link to comment Share on other sites More sharing options...
kaotkbliss Posted August 15, 2011 Share Posted August 15, 2011 if you can create a working .lnk file that will run it correctly, then you can do something like this: $array=FileGetShortcut("C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74\Prince1.lnk") Run($array[0] & " " &$array[2],$array[1]) [0]|C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74\DOSBox.exe [1]|C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74 [2]|-conf "C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74\dosbox.conf" "C:\Program Files (x86)\Prince of Persia 1 & 2\prince\prince.exe" 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! 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