Loading ...
Sorry, an error occurred while loading the content.
 

[NTB] If Set

Expand Messages
  • Michael a.k.a. OIK
    since the lite version is limited in it s goto labesl, I was wondering if it is possible to combine the if command and the set command ^!set %type%=^?{What
    Message 1 of 1 , Nov 6, 1998
      since the lite version is limited in it's goto labesl, I was wondering
      if it is possible to combine the if command and the set command
      ^!set %type%=^?{What Type of Wharf Object would you
      like?=Folder|Executable|Module|Action}
      ^!set %objname%=^?{Name of the object}
      ^!set %itype%=^?{What Type of Image would you like?=BMP|Icon}
      ^!if ^%itype%=BMP ^!set %p1%="; %p2%=^?{(T=O;F="BMP Images|*.bmp")Path
      to the image};%p3%=";
      ^!if ^%itype%=Icon ^!set %p1%=.extract=";^?{(T=O;F="Icon File|*.dll
      *.exe *.ico")Path to the Icon Library or file};%px%=^?{Number of the
      Icon in the library(first one is always 0)};
      ^!if ^%itype%=Icon ^!Set %p3%=,^%px%"
      ^!If ^%type%=Folder ^!set %do%=folder^P^P*Wharf ~folder
      ^!if ^%type%=Executable ^!set %do%="^?{(T=O F="EXE|*.exe *.lnk *.pif
      *.bat")Path to the executable}"
      ^!if ^%type%=Module ^!set %do%=@^?{(T=O F="Module Files|*.dll
      *.app")Path to module}
      ^!if ^%type%=Action ^!set %do%=^?{What
      Action?=!Recycle|!Shutdown|!Logoff|!Run|!Gather|!ToggleWharf|!WharfTasks|!Quit}

      *wharf "^%objname%" ^%p1^%p2%^%p3% ^%do%


      The output should resemble this:
      Folder:
      *wharf "<name of folder>" <image information> Folder
      *wharf ~folder

      Executable:
      *wharf "<name of executable>" <image information> "<path and name of
      executable>"

      Module:
      *wharf "<name of module>" <image information> @<path and name of
      module file...*.dll/*.app>

      Action:
      *wharf "<name of action> <image information> !<action>
      the image information is formated like this:
      BMP image:
      "<path and name of the BMP image>"
      Icon File:
      .extract="<path and name of icon file/library>,<icon number within
      the file>"

      and incase you are wondering I am developing a clip book for use in
      editing a file used by LiteStep...a shell replacement for windows 9x/NT,
      and I need to finish it for Monday(that is when I am releasing it on my
      LiteStep Newsletter Mailinglist)

      Take Care,
      OIK

      --
      OIK
      LiteStep Live! http://litesteplive.base.org
      You make modules, we make modules easy.
      ICQ 3359974

      ------------------------------------------------------------------------
      Free Web-based e-mail groups -- http://www.eGroups.com
    Your message has been successfully submitted and would be delivered to recipients shortly.