Useful Scripts... or maybe not

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

Useful Scripts... or maybe not

Post by jerohm »

// Verbose Mode (Works for WinAmp!)
"C:\Program Files (x86)\SoundSpectrum\G-Force\Scripts\CTRL V.txt" :

Code: Select all

SetVerboseMode( !VerboseModeEnabled() );

if ( VerboseModeEnabled() )
{   stdout( "Verbose mode ON\n" );
} else
{   stdout( "Verbose mode OFF\n" );
}
// Slightly more surgical version of 'u'; Reload/Create Configs
// - 22Jul2011 - modified to announce completed actions
"C:\Program Files (x86)\SoundSpectrum\G-Force\Scripts\CTRL U.txt" :

Code: Select all

stdout( "\n\nReload(" );

KillRunningScripts();
KillRunningParticles();
PurgeFileCache();											

if ( GetSlideShow( CONFIG_WAVESHAPE ) )
{
    SetSlideShow( CONFIG_WAVESHAPE, false );
    StartConfig( "WaveShape", GetCurConfigName( "WaveShape" ) );
    SetSlideShow( CONFIG_WAVESHAPE, true );
    stdout( " WaveShape" );
}

if ( GetSlideShow( CONFIG_COLORMAP ) )
{
    SetSlideShow( CONFIG_COLORMAP, false );
    StartConfig( "ColorMap", GetCurConfigName( "ColorMap" ) );
    SetSlideShow( CONFIG_COLORMAP, true );
    stdout( " ColorMap" );
}

if ( GetSlideShow( CONFIG_FLOWFIELD ) )
{
    SetSlideShow( CONFIG_FLOWFIELD, false );
    StartConfig( "FlowField", GetCurConfigName( "FlowField" ) );
    SetSlideShow( CONFIG_FLOWFIELD, true );
    stdout( " FlowField" );
}
stdout( " )...\n" );

if ( GetSlideShow( CONFIG_PARTICLE ) )
{
    StartRandomParticle();
}
*win7
Last edited by jerohm on Fri Jul 22, 2011 10:51 am, edited 1 time in total.

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Well, I for one would like to say a MASSIVE thank you to jerohm for writing the above scripts for Windows and Winamp. It has resolved an issue that has needed addressing for a long, long time.

WELL DONE JEROHM.


Regards BTT

jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

Post by jerohm »

// 4.3 Beta Update Only
// Verbose Mode (Works for WinAmp)
"C:\Program Files (x86)\SoundSpectrum\G-Force\Scripts\CTRL V.txt" :

Code: Select all

// 4.3

SetVerboseMode( ( VerboseMode() + 1 ) % 4 );
if( VerboseMode() == 0 )
{   stdout( "Verbose mode: OFF\n" );
}
if( VerboseMode() == 1 )
{
    stdout( "Verbose mode: PARTIAL\n" );
}
if( VerboseMode() == 2 )
{
    stdout( "Verbose mode: FULL\n" );
}
if( VerboseMode() == 3 )
{
    stdout( "Verbose mode: DEBUG\n" );
}

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Hello jerohm

You were quick off the mark with this script. For all Winamp users I would like to say thank you very much for calculating and posting this information.


Regards BTT

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Hello Jerohm

Having problems with CTRL V in as much it isn't working. Is it because this was for the Beta only?
jerohm wrote:// 4.3 Beta Update Only
// Verbose Mode (Works for WinAmp)
"C:\Program Files (x86)\SoundSpectrum\G-Force\Scripts\CTRL V.txt" :

Code: Select all

// 4.3

SetVerboseMode( ( VerboseMode() + 1 ) % 4 );
if( VerboseMode() == 0 )
{   stdout( "Verbose mode: OFF\n" );
}
if( VerboseMode() == 1 )
{
    stdout( "Verbose mode: PARTIAL\n" );
}
if( VerboseMode() == 2 )
{
    stdout( "Verbose mode: FULL\n" );
}
if( VerboseMode() == 3 )
{
    stdout( "Verbose mode: DEBUG\n" );
}

Regards BTT

jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

Post by jerohm »

that version is specifically for 4.3 (change) ... use the previous version if you are still running on an earlier version (pre- 4.3). Make sure the file still resides in "... SoundSpectrum\G-Force\Scripts". I am running 4.3 and things seem to work on my end...

21Nov2011
I just got done loading 4.3.1 on my XP machine (WinAmp is v. 5.552 on my XP machine and v. 5.621 on the Win7 Machine).
I made sure the two files (must be named) "CTRL U.txt" and "CTRL V.txt" are in the "...\SoundSpectrum\G-Force\Scripts" directory.
Ctrl('V') and Ctrl('U') work on BOTH machines

As I suspected, Lowercase('L') DOES INDEED work (worse) differently going from 4.2 -> 4.3
In both cases Lowercase('L') is interpreted by WinAmp to Open a File Selection Box (when player is selected)
When Visualization window is selected, GF interprets the Lowercase('L') to list the currently running Configs, as one would expect.

In 4.3 however, it is ALSO seen by the WinAmp player which in turn, opens the forementioned "Open a File Selection Box"
causing a brief hang. If you DO NOT close the "File Selection Box" you can avoid subsequent pauses

These scripts should work for Standalone as well as ALL players that Ctrl('scripts') normally work!

Post Reply