jinbaba Posted July 21, 2008 Share Posted July 21, 2008 Hello Folks, I am trying to start Deluge(Bit torrent) through AutoIt "Run()" command, but Deluge GUI is not loaded. Although Run command returns the the pid of the process but GUI is never loaded. Deluge is not like a regular executable, it is called with python script "deluge.cmd". Can you guys tell me how to execute Deluge with AutoIt? I am using Deluge version: 0.9.02 $file = "c:\Python25\deluge.cmd" $pid = Run($file) if $pid = 0 Then MsgBox(0, "Unable to start Deluge") Else MsgBox(0, "Deluge Started.") EndIf Regards, Jinbaba Link to comment Share on other sites More sharing options...
Cha0sBG Posted July 21, 2008 Share Posted July 21, 2008 umm here try this : $file = "c:\Python25 $pid = ShellExecute("deluge.cmd", "", $file) if $pid = 0 Then MsgBox(0, "Unable to start Deluge") Else MsgBox(0, "Deluge Started.") EndIf Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ยน There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread. Link to comment Share on other sites More sharing options...
BrettF Posted July 21, 2008 Share Posted July 21, 2008 (edited) muttley $file = "c:\Python25\deluge.cmd" $pid = ShellExecute($file, "", "c:\Python25\") if $pid = 0 Then MsgBox(0, "Unable to start Deluge") Else MsgBox(0, "Deluge Started.") EndIf That trips many people up, the working directory. Edited July 21, 2008 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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