Originally Posted by osmosis
View Post
I need exactly JumpToFile plugin queue.
Otherwise PS scripts can't run outside of the PS sandbox. Scripts are named and located the same as before, only with a .ps1 ext.code:
%windir%\syswow64\windowspowershell\v1.0\powershell Set-ExecutionPolicy RemoteSigned
at the top; from there, you can access $aw.playlist, $aw.medialibrary, etc, as you would in VBS. The plugin automatically executes the x86 PS, since Winamp will never be x64. You can call them from the command line, like:code:
$aw = New-Object -ComObject ActiveWinamp.Application
If you do, I really recommend adding an x64 guard at the top, like so:code:
powershell -file "AnyScript.ps1"
I'm going to be adding all of the library fields that aren't available yet next.code:
if ($env:Processor_Architecture -ne "x86") {
write-warning 'Switching to x86 mode...'
&"$env:windir\syswow64\windowspowershell\v1.0\powershell.exe" -noninteractive -noprofile -file $myinvocation.Mycommand.path -executionpolicy bypass
exit
}
Comment