www.pererikstrandberg.se, , idag firar vi:

Per Erik Strandberg's PIP

Per Erik Strandberg's PIP beeps using kernel32.dll.

Example: Run Per Erik Strandberg's PIP from the console. with the following command: pip 500 500.

Per Erik Strandberg's PIP is released to the public domain, see a Wikipedia article about Public Domain.

Download

Per Erik Strandberg's PIP can be downloaded in zipped format: pip.zip (less than 2,5 kB)

Usage


NAME
  Per Erik Strandberg's PIP

  See http://www.pererikstrandberg.se/projects for
  updates and other releases.

  Per Erik Strandberg's PIP is donated to the public
  domain as of 20070211.


SYNOPSIS
  pip
  pip [FREQUENCY] [DURATION]
  pip [HELP]?


FREQUENCY
  Positive number representing desired frequency.


DURATION
  Positive number representing desired duration [probably ms].


HELP
  If exacly one argument is pased to PIP this help is printed.
  (In order to use Per Erik Strandberg's PIP: use zero or
  two arguments (zero or two+ arguments gives default beep)).


NOTE
  Default usage corresponds to 'pip 500 200'

  Per Erik Strandberg's PIP has, besides this documentation,
  very few lines of relevant C# code:

    // in the class body
    [DllImport("kernel32.dll")]
    extern static bool Beep(uint iFreq, uint iDuration);

    // in main
    Beep(freq,duration);

  Per Erik Strandberg's PIP is based on
  http://blogs.msdn.com/sebby1234/archive/2006/04/05/565090.aspx


    
      

No rights reserved

Public Domain:

Per Erik Strandberg's PIP is released the the public domain.

Download

Per Erik Strandberg's PIP can be downloaded in zipped format: pip.zip (less than 20 kB)