Jump to content

Script Run Problem !!! :(


Guest AX5
 Share

Recommended Posts

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

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

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

  • Developers

just shellexecute the file in stead of using run.

Edited 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

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 by tlman12
Link to comment
Share on other sites

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 by AX5
Link to comment
Share on other sites

  • Developers

getting bug

Seems we have a t0ddie competition here.

George, where are you?

Edited 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

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 by AX5
Link to comment
Share on other sites

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...