Source
But i need help rewriting it a bit so it will work with RunCommand.
As it is now it spits out errors i don't really understand.
Ps1:
Code: Select all
$exe_in = $args[0]
$ico_out = $args[1]
[void][Reflection.Assembly]::LoadWithPartialName('System.Drawing');
[Drawing.Icon]::ExtractAssociatedIcon(\"($exe_in)").ToBitmap().Save(\"($ico_out)")
Code: Select all
[Variables]
App4=C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
[mExtract]
Measure=Plugin
Plugin=RunCommand
Program=Powershell.exe
Parameter=-NoProfile -Noninteractive "& '.\ExtractIcon.ps1' '#App4#' '#@#App4.ico'"
OutputType=Ansi
DynamicVariables=1
[MeterString]
Meter=String
X=0
Y=0
FontColor=255,255,255,255
SolidColor=0,0,0,255
FontFace=Segoe UI
FontSize=20
AntiAlias=1
Text=Run
LeftMouseUpAction=[!CommandMeasure mExtract "Run"]