Jump to content

SoundPlay in nested folders not working...


Go to solution Solved by Melba23,

Recommended Posts

Hello programmers  :bye:

it's been awhile since my last topic but I stumbled on something strange..

make an Autoitscript and put this in it:

soundplay("file.wav",1)

then make a bunch of folders inside of other folders and put the script with the wav file into the deepest folder:

new folder000new folder001new folder002new folder003new folder003new folder005new folder006new folder007new folder008new folder009new folder010my_autoitscript.au3 file.wav

then try to play the sound file with your autoitscript...

the sound does not play but if i place the script with the sound file a few folders up, it works.

hope you can help me and thanks for reading my post,

TheAutomator ;)

Link to comment
Share on other sites

  • Moderators

TheAutomator,

Windows has a path length limit of 260 characters - you are only at 189 characters above, but could the real path be bumping up against that limit? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

TheAutomator,

Windows has a path length limit of 260 characters - you are only at 189 characters above, but could the real path be bumping up against that limit? :huh:

M23

 

thanks for the info Melba23, do you maybe know how windows media player manage to play the sound anyway?

my autoit projects are pretty nested into other folders I can say :P

that's how i stumbled onto this problem..

Link to comment
Share on other sites

  • Moderators
  • Solution

TheAutomator,

There are ways to get round the path length limit. I have noticed several such threads on the forum, but as I have never had occasion to get close to a path of that length I have never looked at them closely - perhaps this one might be of use. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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

×
×
  • Create New...