Jump to content

Recommended Posts

Posted

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")

;)

Posted

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")

Posted (edited)

Dosent work

Run("C:\Program Files\Windows Media Player\wmplayer.exe")

Works but the .asx file needs also to open

Edited by AX5
Posted

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

Posted (edited)

You can get asx file here to test

Asx

Edited by AX5
Posted (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 by tlman12
Posted (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 by AX5
Posted (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 by AX5
Posted

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.

 

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
  • Recently Browsing   0 members

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