WSH Panel Mod script discussion/help
i've had to ditch that autohotkey thing. it doesn't always write to file when clicking OK so it has to go. Strange. Are you sure it's an AutoHotkey problem? I have never had problems when writing a file (except the usual and normal 'access denied' or 'disc full' problems). Oh, another thing: when passing the path to the wsh_settings dir via the command line, be sure to remove the tailing slash, or it will be interpreted as an escape character, and therefore removed, and replaced by the closing quotes. Another way to handle it is to double the backslash. For example:"\"" + fb.FoobarPath + "\\\"" BTW, maybe you could change your output files to an unified INI file. Autohotkey and WSHPM have the functions to read and write them.as for capturing stdout with WSH, if you google i think you'll find pretty much everyone says write to file. i checked this ages ago - before i discovered the VBscript thing i'm currently using and that's fine for the simple values i use. The VBscript method is elegant, but unfortunately, I had to find another way to edit the arguments, due to the 254 characters limitation of the InputBox. (And it's why I can't use INI files either, as the INI values are also limited to 256 characters or so. Pity!) I'll stick with the current "temp file" method. Oh, I have discovered several bugs in my Autoplaylist Properties Dialog script and in the demo script. I think I've fixed most of them, and I have improved the dialog (now, the edit boxes are ComboBoxes, with a dropdown menu with some useful default values) but this time I will check it carefully before updating the new version... I have also a question about the Autoplaylist query syntax. I have an autoplaylists panel (foo_softplaylists, not written with WSHPM) that can maintain autoplaylists with a query that changes dynamically when the now playing track changes. For example, it can generates an autoplaylist with all titles in CDs by the currently playing artist, with this query:%artist% HAS $nowplaying{%artist%} OR %album artist% HAS $nowplaying{%artist%} OR %artist% HAS $nowplaying{%album artist%} OR %album artist% HAS $nowplaying{%album artist%} I can't get $nowplaying{%artist%} to work with fb.CreateAutoPlaylist(). Also, there is no mention of that $nowplaying{} function in the title formatting help page, and the syntax with {} instead of () is strange, so I suppose that that syntax is handled specifically by the foo_softplaylists panel, and is not "official". Note also that foo_softplaylists doesn't really create the autoplaylist, but it stores it in its own panel, and I can see the number of hits changing when the nowplaying artist changes. However, when the real playlist is created, a normal (not auto) playlist is created. Anyway, I wonder if it is possible to create real autoplaylists that change dynamically when the currently playing (or focussed) artist, album, track or whatever changes. A playlist that shows constantly, for example, all albums by the currently playing artist would be nice. But I wonder if the autoplaylist syntax is powerful enough, or if it's the responsibility of the panel to update the playlist query when it's necessary. (BTW, I think that currently, it is not possible to change the query of an existing autoplaylist from WSH without having to delete and recreate the playlist. Correct?)