home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
CDTools
/
S
/
HideButtons.awebrx
< prev
next >
Wrap
Text File
|
2000-07-04
|
1KB
|
59 lines
/*
$VER: HideButtons.awebrx 1.0 (3.3.00) (c) Neil Bothwick, Wirenet
Hides the user and navigation buttons
*/
/* ;;; Initialise */
options results
AWebPort = address()
if ~abbrev(AWebPort,'AWEB.') then do
PortList = ' 'show('P')
do until pos(' AWEB.',PortList) > 0
call delay(100)
PortList = ' 'show('P')
end
parse var PortList . ' AWEB.' PortNum ' ' .
AWebPort = 'AWEB.'PortNum
address(AWebPort)
end
;;;
/* ;;;Hide buttons if showing */
'getcfg showbuttons'
if result = 1 then do
'setcfg showbuttons 0'
SAVE = 'YES'
end
address command 'waitforport' AWebPort
'getcfg navigation'
if result = 1 then do
'setcfg navigation 0'
SAVE = 'YES'
end
;;;
/* ;;; Save changes */
if SAVE = 'YES' then do
if exists('ENVARC:AWeb3') then do
if ~exists('ENVARC:AWeb3/Amigactive') then address command 'makedir ENVARC:AWeb3/Amigactive'
'savesettings ENVARC:AWeb3/Amigactive'
end
if exists('ENVARC:AWeb3DEMO') then do
if ~exists('ENVARC:AWeb3DEMO/Amigactive') then address command 'makedir ENVARC:AWeb3DEMO/Amigactive'
call makedir('ENVARC:AWeb3DEMO/Amigactive')
'savesettings ENVARC:AWeb3DEMO/Amigactive'
end
end
;;;
exit
/* ;;; Exit with a message */
ExitMsg:
parse arg msg
'request title "AACD QuickSearch" body "'msg'" gadgets "OK"'
exit
return
;;;