home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 21
/
CTROM21B.mdf
/
win95
/
utility
/
wb99g32i
/
ddetest.wb_
< prev
next >
Wrap
Text File
|
1996-10-24
|
3KB
|
80 lines
;;Program manager WBT script. Adding/Deleting/Showing Program Manager Groups and Icons.
;;Written February 1994 by Wilson WindowWare, Inc.
;;Modifed July 1995
;;Progbuild removed Oct 96
;;Call Progman.wil
;;Syntax of commands:
;; Call("progman.wil", "AddGroup 'Group Title'")
;; ( , "DelGroup 'Group Title'")
;; ( , "AddIcon 'Group Title' 'File and Path' 'Icon Description''wrk dir'")
;; ( , "DelIcon 'Group Title' 'Icon Description'")
;; ( , "ShowGroup 'Group Title' ShowCommand")
;; ( , "ReplaceItem 'Group Title' 'Icon Description'")
;; ( , "Reload 'Group Title'")
;; ( , "IconDump 'Group Title''Icon Description' 'variable name'")
;; ( , "ListGroups") ; Sets variable GROUPS to tab delimited list of groups
;; ( , "ListIcons 'Group Title' 'variable name'") ; Creates a tab delimited list of icons.
;; Call("progman.wil", "AddNewData '%grptitle%' '%data%'")
;;Show command is an integer which specifies the action Program Manager is to perform on the group window.
;; VALUE ACTION
;; 1 Restores group to its original size and position.
;; 2 Displays group as an icon.
;; 3 Displays group as a maximized window.
;; 6 Minimizes the group window.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Display(5, "Progman.Wil Test Run", "Progman.wil will show the accessories group in various display modes.")
Call("Progman.wil", "ShowGroup 'Accessories' 1 ")
delay(2)
Call("Progman.wil", "ShowGroup 'Accessories' 2 ")
delay(2)
Call("Progman.wil", "ShowGroup 'Accessories' 3 ")
delay(2)
Call("Progman.wil", "ShowGroup 'Accessories' 6 ")
delay(2)
;Call("Progman.wil", "Reload 'Accessories'") ; Not implemented in Win95/NT4.0
;delay(2)
;exit
Display(5, "Progman.Wil Test Run", "Progman.wil will now add a group, an icon, and then replace the icon.")
Call("progman.wil", "ADDGroup 'Group One' ")
delay(2)
Call("Progman.wil", "AddIcon 'Group One' 'C:\windows\clock.exe' 'tick tock' ")
delay(2)
Call("Progman.wil", "ReplaceItem 'Group One' 'tick tock'")
delay(2)
Call("Progman.wil", "AddIcon 'Group One' 'C:\WINDOWS\NOTEPAD.EXE' 'Notepad' ")
delay(2)
Call("Progman.wil", "ListGroups 'joan'")
mygroup=AskItemList("Select a Group for IconDump",joan,@tab,@sorted,@single)
Call("Progman.wil", "ListIcons '%mygroup%' 'sally'") ; Creates a tab delimited list of icons.
myicon=AskItemList("Select an item for IconDump",sally,@tab,@sorted,@single)
myicon=ItemExtract(1,myicon,",")
myicon=StrReplace(myicon,'"','')
Message("IconDump Test Run for %myicon%", "By passing a groupname and icon, this command can return the icons syntax.")
Call("progman.wil", "Icondump '%mygroup%' '%myicon%' 'fred'")
fred=StrReplace(fred,'"','') ;replace quotes with null-string.
Message("Dump of %myicon%", fred)
Call("progman.wil", "DelIcon 'Group One' 'Notepad'")
delay(1)
Call("progman.wil", "DelGroup 'Group One' ")
delay(1)
Message("DDETEST.WBT EXAMPLE", "That's all folks..")