Guest AX5 Posted December 31, 2009 Share Posted December 31, 2009 Hi agen ! I have a small problem i made a simpel script to open a .asx file (Windows media player file) But nothing happens when i try to starta it. Case $Button1 Run("12339.asx") Link to comment Share on other sites More sharing options...
tlman12 Posted December 31, 2009 Share Posted December 31, 2009 Hi agen ! I have a small problem i made a simpel script to open a .asx file (Windows media player file) But nothing happens when i try to starta it. Case $Button1 Run("12339.asx") don't know if it work for windows media but it works for ie try this Run("wmplayer.exe 12339.asx") Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 31, 2009 Share Posted December 31, 2009 (edited) Dosent work Run("C:\Program Files\Windows Media Player\wmplayer.exe") Works but the .asx file needs also to open Edited December 31, 2009 by AX5 Link to comment Share on other sites More sharing options...
tlman12 Posted December 31, 2009 Share Posted December 31, 2009 are you running the script from the same folder as the asx? can you double click on the asx file manually and have it play? you could also try this ShellExecute("wmplayer",'"C:\Documents and Settings\All Users\Documents\My Music\Sample Music\New Stories (Highway Blues).wma"') that should open one of the sample songs from a winxp install, just replace the path with your asx file. I don't have an asx file on hand to actually test it's functionality Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 31, 2009 Share Posted December 31, 2009 (edited) You can get asx file here to testAsx Edited December 31, 2009 by AX5 Link to comment Share on other sites More sharing options...
Developers Jos Posted December 31, 2009 Developers Share Posted December 31, 2009 (edited) just shellexecute the file in stead of using run. Edited December 31, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tlman12 Posted December 31, 2009 Share Posted December 31, 2009 (edited) Ok now i made a file list but i want the files in a mapp display there and when du select the file and press START it will start the file i got an asx file to test and it didn't work when i put the file name even when it was in the same directory but when i put the full path it worked fine ShellExecute("wmplayer",'"C:\Temp\Test\asfsample.asx"') Edited December 31, 2009 by tlman12 Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 31, 2009 Share Posted December 31, 2009 (edited) getting bug #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 267, 236, 192, 124) $List1 = GUICtrlCreateList("", 16, 16, 129, 201) $Button1 = GUICtrlCreateButton("Open Selected file", 160, 168, 97, 33, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $List1 _FileListToArray($sFolderPath, "list\", 1) EndSwitch WEnd Edited December 31, 2009 by AX5 Link to comment Share on other sites More sharing options...
Developers Jos Posted December 31, 2009 Developers Share Posted December 31, 2009 (edited) getting bugSeems we have a t0ddie competition here.George, where are you? Edited December 31, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 31, 2009 Share Posted December 31, 2009 (edited) Seems we have a t0ddie competition here.George, where are you??????????Howe do i make so a specific folder to display in the $list1 window ? Edited December 31, 2009 by AX5 Link to comment Share on other sites More sharing options...
bogQ Posted January 1, 2010 Share Posted January 1, 2010 Probably you mean something like this #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #Include <File.au3> $Form1 = GUICreate("Form1", 267, 236, 192, 124) $List1 = GUICtrlCreateList("", 16, 16, 129, 201) $Button1 = GUICtrlCreateButton("Open Selected file", 160, 168, 97, 33, $WS_GROUP) GUISetState(@SW_SHOW) $a = _FileListToArray(@DesktopDir) For $x = 1 To $a[0] GUICtrlSetData ( $List1, $a[$x] ) Next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $List1 EndSwitch WEnd TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Guest AX5 Posted January 1, 2010 Share Posted January 1, 2010 yes Sir Thx bogQ 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