Tukata Posted October 19, 2006 Share Posted October 19, 2006 (edited) Hi, I want to open a specific (file.pte) file in "PicturesToExe" program (apr.exe). I wrote:$var = FileOpenDialog($message, ".Fath", "PTE (*.pte)", 1 ) Run("C...\apr.exe", "", $var) When the OpenFile dialog open I select file.pte and the program do open (apr.exe). but not the selected file (file.pte). How can I do this if it is possible ? Thank you Tuk Edited October 19, 2006 by Tukata Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 19, 2006 Moderators Share Posted October 19, 2006 Hi, I want to open a specific (file.pte) file in "PicturesToExe" program (apr.exe). I wrote:$var = FileOpenDialog($message, ".Fath", "PTE (*.pte)", 1 ) Run("C...\apr.exe", "", $var) When the OpenFile dialog open I select file.pte and the program (apr.exe) do open but without the selected file. How can I do this if it is possible ? Thank you TukLatest Beta + $var = FileOpenDialog($message, ".Fath", "PTE (*.pte)", 1 ) ShellExecute($var)oÝ÷ ØêÚºÚ"µÍÌÍÝH[SÜ[X[ÙÊ ÌÍÛYÜØYÙK ][ÝË] ][ÝË ][ÝÔH JI][ÝËH B[ÛÛÜXÈ [È ÌÎNÈØÈ ][ÝÉÌÎNÈ [È ÌÍÝ [È ÌÎNÉ][ÝÉÌÎNË ÌÎNÉÌÎNËÕ×ÒQJ Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Tukata Posted October 19, 2006 Author Share Posted October 19, 2006 (edited) SmOke_N Thank you. The second code work fine but the first one no (ShellExecute($var)). I installed latest version and to my surprise AVG told me there is a virus in SciTE. The new compiler does not work and it gives error that can not find "stub" file (?) Any suggestion what to do ? Thank you Tuk Edited October 19, 2006 by Tukata Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 19, 2006 Moderators Share Posted October 19, 2006 SmOke_NThank you. The second code work fine but the first one no (ShellExecute($var)).I installed latest version and yo my surprise AVG told me there is a virus in SciTE. The new compiler does not work and it gives error that can not find "stub" file (?) Any suggestion what to do ?Thank youTuk2 suggestions.1. Get rid of AVG2. Update your AVG, this issue was taken care of 2 days ago I believe. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Tukata Posted October 19, 2006 Author Share Posted October 19, 2006 Thank you. I updated AVG and re-installed Autoit. This time no virus found. But the ShellExecute($var) still gives an error. My full script is: #include <file.au3> $message = "Please select PTE file:" $var = FileOpenDialog($message, "C:\Program Files\PicturesToExe\", "PTE (*.pte)", 1 ) If @error Then MsgBox(4096,"","No file was chosen. Bye !") Exit Else $var = StringReplace($var, "|", @CRLF) Dim $szDrive, $szDir, $szFName, $szExt $TestPath = _PathSplit($var, $szDrive, $szDir, $szFName, $szExt) EndIf ShellExecute($var) Thank you Tuk Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 19, 2006 Moderators Share Posted October 19, 2006 (edited) Thank you. I updated AVG and re-installed Autoit. This time no virus found. But the ShellExecute($var) still gives an error. My full script is: #include <file.au3> $message = "Please select PTE file:" $var = FileOpenDialog($message, "C:\Program Files\PicturesToExe\", "PTE (*.pte)", 1 ) If @error Then MsgBox(4096,"","No file was chosen. Bye !") Exit Else $var = StringReplace($var, "|", @CRLF) Dim $szDrive, $szDir, $szFName, $szExt $TestPath = _PathSplit($var, $szDrive, $szDir, $szFName, $szExt) EndIf ShellExecute($var) Thank you TukDid you do a MsgBox(0, '', $var) to see what your issue is? Edited October 19, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Tukata Posted October 20, 2006 Author Share Posted October 20, 2006 The $var gives the full path to the selected pte file. But I don't know what it is suppose to give ? Am looking also in the Help to read about "ShellExecute" but find nothing. Thank you Tuk Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 20, 2006 Moderators Share Posted October 20, 2006 The $var gives the full path to the selected pte file.But I don't know what it is suppose to give ?Am looking also in the Help to read about "ShellExecute" but find nothing.Thank youTukMake sure you are running beta 3.2.1.8 or later, then to find it in the help file, with SciTe open do: Alt+F1, that's the beta help file. When running Beta scripts, you must also use Alt+F5 instead of just F5.... enjoy. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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