- Location:
- /projects
- Files:
-
- 33 added
- 5 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified /projects/ft2gui/1.x/ft2gui.vrx ¶
r20 r30 1 1 /*:VRX Main 2 */ 3 /* 4 $Id: The FT2GUI project. 5 Copyright (C) 2007-2010 Herwig Bauernfeind 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU Lesser General Public 9 License as published by the Free Software Foundation; either 10 version 3.0 of the License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Lesser General Public License for more details. 16 17 You should have received a copy of the GNU Lesser General Public 18 License along with this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 2 20 */ 3 21 /* Main -
TabularUnified /projects/ft2gui/2.x/ft2gui2.vrx ¶
r20 r30 1 1 /*:VRX Main 2 2 */ 3 /* 4 $Id: The FT2GUI project. 5 Copyright (C) 2007-2010 Herwig Bauernfeind 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU Lesser General Public 9 License as published by the Free Software Foundation; either 10 version 3.0 of the License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Lesser General Public License for more details. 16 17 You should have received a copy of the GNU Lesser General Public 18 License along with this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 3 22 /* Main 4 23 */ -
TabularUnified /projects/rxautost/src/announcement ¶
r20 r30 1 RexxAutoStart 1.8.01 RexxAutoStart 2.0.0 2 2 3 3 What's new? 4 4 5 - NEW RexxAutoStart is now a PM-program, it was ported to VX-REXX.6 - NEW Interrupt startup process at any time.7 - NEW Progress bar to see how much has been done.8 - NEW 3 cool new sound events configurable with the OS/2 sound object.9 - NEW configurable position and color.10 5 11 6 Where can it be found? … … 16 11 - source later ftp://hobbes.nmsu.edu/pub/os2/util/wps/rxast180src.zip 17 12 18 What happened since version 1. 60?13 What happened since version 1.9.0? 19 14 20 After a considerable time, in which I did nothing on RexxAutoStart, I am21 back now. Unfortunately, in the meantime, Chuck migrated RexxAutoStart to22 GPF/REXX, a development tool, I don't have (and don't intend to get).23 24 In late October 2000 I restarted the work with VX-REXX from scratch. I did not25 complete it, however... Until now. Originally, this version 1.8.0 was based on26 the 1.60 codebase. I merged in the changes, Chuck made in 1.61 and 1.62, and27 ported some internal features of his 2.00.28 29 So today, RexxAutoStart has two separate sources, Chuck's and mine. My30 intention is to integrate Chuck's advanced features (especially the LAN startup31 folder) into my source. In addition, my version 1.8.0 has some features,32 Chuck's 2.00 currently has not.33 34 The main differences are:35 36 - It is based on the 1.6x codebase, all remaining switches and options are compatible.37 - It still supports RXAUTOST environment variable and commandline parameters.38 - It can be opened from anywhere, as long RXAUTOST.EXE is in the PATH39 (1.6x and Chuck's 2.00 need the complete path in the execution line)40 - It runs on OS/2 Warp 3, 4 and 4.541 - It has its own RXAUTOST.INI, which is 100% compatible to Chucks' INI.42 - It does *not* support Chuck's LAN startup folder by now.43 It will in the next release44 - It has the following features Chuck's 2.00 currently has not45 (which I consider important for usability)46 - a progress bar47 - a Quit now! button to interrupt and leave startup processing immediately48 - For those, who like to have bells and whistles (like me), version 1.8.049 supports the following features:50 - 3 cool sound events, configurable with the OS/2 sound object51 - configurable position and background colors52 - animated icon -
TabularUnified /projects/rxautost/src/changes ¶
r20 r30 29 29 - Feature: Change delay between objects on the fly 30 30 - Feature: Waits for Warp Center (chm) 31 31 version 1.8.9 01-06-2002 32 - Bugfix: LAN Startup Folder completed 33 - Feature: Wait for startup.cmd completion (chm) 34 32 35 To-Do-List: 33 36 - RxAutoUt does not work on Warp 3 (forgot error code...) 34 - RxAutoSt LAN Startup folder incomplete35 - RxAutoSt Simple login check missing36 37 - RxAutoSt last sound sometimes gets cut off 37 38 - Installer: WPI build half done -
TabularUnified /projects/rxautost/src/install.vrp ¶
r20 r30 4 4 EXEPath: 5 5 RunParameters: 6 RunDirectory: e:\rxautost7 VRXWindow: __VREMainWindow,1,11 56,2168,5767,80008 VRXWindow: __VREFileListWindow,1,19 15,9202,2665,33589 VRXWindow: __VRESectionListWindow,1,43 24,8624,2650,334210 VRXWindow: __VREToolsWindow, 1,410,-144,4487,166411 VRXWindow: __VREWindListWindow,1, 3096,241,2650,31506 RunDirectory: c:\rxautost 7 VRXWindow: __VREMainWindow,1,1168,2168,5767,8000 8 VRXWindow: __VREFileListWindow,1,1927,9202,2665,3358 9 VRXWindow: __VRESectionListWindow,1,4336,8624,2650,3342 10 VRXWindow: __VREToolsWindow,0,2204,8351,8004,1669 11 VRXWindow: __VREWindListWindow,1,1072,6890,2650,3150 12 12 UserFile: 1 13 13 UserWindow: Window1,1 -
TabularUnified /projects/rxautost/src/install.vrx ¶
r20 r30 9 9 Call Rxfuncadd 'SysLoadFuncs','Rexxutil','SysLoadFuncs' 10 10 Call SysLoadFuncs 11 Call Rxfuncadd 'WPToolsLoadFuncs', 'WPTOOLS', 'WPToolsLoadFuncs' 12 Call WPToolsLoadFuncs 11 13 12 14 /* Script and icons have to reside in this directory */ 13 basedir=Strip(Directory(),'T','\') 15 basedir = Strip(Directory(),'T','\') 16 basedir = Translate(basedir) 14 17 15 18 level = Strip(Linein(basedir || '\rxautost.lvl')) … … 21 24 Say ' - create a folder for RexxAutoStart (named RexxAutoStart)' 22 25 Say ' - create objects for Setup Utility, Log file and manual' 23 /*24 Say ' - update OS2.INI to point to the installation directory'25 */26 26 Say ' - install the new sound events' 27 27 Say ' - open the sound object to configure new events' 28 Say ' - open the manual, chapter installation'28 Say ' - set the object id of your startup folder to <WP_START>, if no object id is present' 29 29 Say 30 30 Say 'Enter "go" to continue or anything else to quit.' … … 33 33 Call Halt 34 34 35 /* Set Creation Disposition */36 createcollision = 'Update'37 38 35 Call Createobjects 39 /*40 Call SysIni 'user', 'RexxAutostart', 'Install', basedir41 */42 36 Call Installsounds 37 Call Check_startup 43 38 ok = SysSetObjectData('<RexxAutoStart_Setup>','OPEN=DEFAULT;') 44 /*45 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1)46 Address cmd 'view RxAutoSt.INF Installation'47 */48 39 Exit 49 40 … … 74 65 'DEFAULTVIEW=DEFAULT;'||, 75 66 'OBJECTID=<RexxAutoStart_Folder>',, 76 createcollision)67 'U' ) 77 68 78 69 rc = Createobject( 'WPProgram',, … … 90 81 'DEFAULTVIEW=DEFAULT;'||, 91 82 'OBJECTID=<RexxAutoStart_Setup>',, 92 createcollision)83 'R' ) 93 84 94 85 rc = Createobject( 'WPProgram',, … … 96 87 '<RexxAutoStart_Folder>',, 97 88 'EXENAME='basedir'\RXAUTOST.EXE;'||, 98 'STARTUPDIR='basedir'\;'||, 89 'STARTUPDIR=;'||, 90 'PARAMETERS='basedir'\RXAUTOST.EXE;'||, 99 91 'PROGTYPE=PM;'||, 100 92 'ICONFILE=' || basedir || '\rxautost.ico;'||, … … 106 98 'DEFAULTVIEW=DEFAULT;'||, 107 99 'OBJECTID=<RexxAutoStart>',, 108 createcollision)100 'R' ) 109 101 110 102 rc = Createobject( 'WPProgram',, … … 120 112 'DEFAULTVIEW=DEFAULT;'||, 121 113 'OBJECTID=<RexxAutoStart_Manual>',, 122 createcollision)114 'R' ) 123 115 124 116 rc = Createobject( 'WPProgram',, … … 134 126 'DEFAULTVIEW=DEFAULT;'||, 135 127 'OBJECTID=<RexxAutoStart_Logfile>',, 136 createcollision)128 'R' ) 137 129 138 130 rc = Createobject( 'WPFolder',, … … 150 142 'DEFAULTVIEW=DEFAULT;'||, 151 143 'OBJECTID=<RexxAutoStart_LAN_Folder>',, 152 createcollision)144 'U' ) 153 145 154 146 Return … … 173 165 174 166 Return 167 168 Check_startup: 169 If WPToolsQueryObject('<WP_START>') Then 170 Return 171 Say 'No startup folder was identified with an object id of <WP_START>.' 172 If SysFileTree(SysBootDrive() || '\startup', 'test.', 'dso') = 0 Then 173 Do i = 1 To test.0 174 If WPToolsQueryObject(test.i, 'szClass', , 'szSetupString', 'szLocation') Then 175 Do 176 If szclass <> 'WPStartup' Then 177 Iterate i 178 If Pos('OBJECTID=', szsetupstring) <> 0 Then 179 Iterate i 180 Say 'Startup folder' test.i 'found in' szlocation || '.' 181 Say 'Enter "OK" to make this the default startup folder.' 182 Pull ans . 183 If ans = 'OK' Then 184 Do 185 Call WPToolsSetObjectData test.i, 'OBJECTID=<WP_START>;' 186 Return 187 End 188 End 189 End 190 Return 175 191 /*:VRX Halt 176 192 */ -
TabularUnified /projects/rxautost/src/rxautost.lvl ¶
r20 r30 1 1.8.8 build 12.04.2002 1 2.0.0 -
TabularUnified /projects/rxautost/src/rxautost.vrp ¶
r20 r30 3 3 MacroPath: VRM:E:\Dev\REXX\VXREXX\Projects\RxAutoSt.2 4 4 EXEPath: 5 RunParameters: 6 RunDirectory: e:\rxautost7 VRXWindow: __VREMainWindow,1,5 27,1867,979,42918 VRXWindow: __VREFileListWindow,1, 2650,8974,2228,33279 VRXWindow: __VRESectionListWindow,1,486 3,8974,4306,334210 VRXWindow: __VREToolsWindow,1,5 27,60,4999,169311 VRXWindow: __VREWindListWindow,1, 768,8974,1897,33275 RunParameters: c:\rxautost\rxautost.exe 6 RunDirectory: 7 VRXWindow: __VREMainWindow,1,530,1879,979,4291 8 VRXWindow: __VREFileListWindow,1,1289,8913,2665,3358 9 VRXWindow: __VRESectionListWindow,1,4866,9010,4306,3342 10 VRXWindow: __VREToolsWindow,1,530,48,8002,1659 11 VRXWindow: __VREWindListWindow,1,434,6601,2650,3150 12 12 UserFile: 1 13 13 UserWindow: RexxAutoStartMain,1 -
TabularUnified /projects/rxautost/src/rxautost.vrx ¶
r20 r30 118 118 list.0 = y 119 119 End 120 If WPToolsQueryObject('#' || xstartupfolder, , , 'szSetupString') Then121 Do122 Parse Value '.' szSetupString With . 'OBJECTID=' xstartupname ';' .123 xstartupname = Strip(xstartupname)124 End120 If WPToolsQueryObject('#' || xstartupfolder, , , 'szSetupString') Then 121 Do 122 Parse Value '.' szsetupstring With . 'OBJECTID=' xstartupname ';' . 123 xstartupname = Strip(xstartupname) 124 End 125 125 End 126 126 End … … 144 144 If i = xstart_num Then 145 145 Call _sayout "Starting objects in startup folder" xstartupname".", 1 146 If list.i = '<WP_WARPCENTER>' & xc_wait Then 147 Iterate i 146 148 If list.i = '<XWP_XCENTER>' & xc_wait Then 147 149 Iterate i … … 149 151 Do 150 152 title = _objtitle(sztitle) 151 /* Call _sayout "Adding object '"title"' of class "szclass'.', 2 */152 /* try to open object, tell us what happened */153 153 success = 0 154 154 Do x = 1 To retries Until success … … 158 158 End 159 159 If success Then 160 open_msg = '['title']has opened after' x 'attempt(s) of' retries || '.'160 open_msg = title 'has opened after' x 'attempt(s) of' retries || '.' 161 161 Else 162 open_msg = '['title']failed to open after' retries 'attempts.'162 open_msg = title 'failed to open after' retries 'attempts.' 163 163 list_open = list_open + 1 164 164 ok = VRSet("SL_Progress","Percentile",Trunc(list_open * 100 / list_total)) … … 197 197 Call _sayout delay_wait' seconds have passed. Continuing...', 2 198 198 Return 0 199 /*:VRX _doneobj 200 */ 201 _doneobj: 202 Procedure Expose verbose log_out log_file sub_trace sound sleepsec 203 /* wait for object to complete */ 204 save_trace = Trace(sub_trace) 205 Parse Arg title, sleep, od_tries 206 rc_task = 1 207 attempts = 0 208 If \Rxfuncquery('SysQuerySwitchList') Then 209 Do i = 1 To od_tries While rc_task 210 attempts = attempts + 1 211 Call SysQuerySwitchList 'tasks.', 'IGN' 212 Do j = 1 To tasks.0 Until rc_task 213 rc_task = (Pos(title, tasks.j) <> 0) 214 End 215 If rc_task Then 216 Do 217 Call _sleepanimated sleep 218 Call Checkforevent 219 End 220 End 221 Else 222 Call _sayout 'SysQuerySwitchList not available, returning...', 2 223 Trace (save_trace) 224 Return rc_task attempts 225 199 226 /*:VRX _GetEventSound 200 227 */ … … 256 283 Return 0 257 284 258 /*:VRX _ INIRead285 /*:VRX _iniread 259 286 */ 260 287 _iniread: … … 274 301 275 302 /* some parameter defaults */ 276 wps_wait_default = VRGetIni( "workplace_shell", "wps_wait", our_ini, 'Noclose') 277 If wps_wait_default = '' Then 278 wps_wait_default = 1 279 sc_wait_default = VRGetIni( "workplace_shell", "sc_wait", our_ini, 'Noclose') 280 If sc_wait_default = '' Then 281 sc_wait_default = Pos('WARPCENTER', Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) <> 0 282 tb_wait_default = VRGetIni( "workplace_shell", "tb_wait", our_ini, 'Noclose') 283 If tb_wait_default = '' Then 284 tb_wait_default = Pos('TOOLBAR', Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) <> 0 285 xc_wait_default = VRGetIni( "workplace_shell", "xc_wait", our_ini, 'Noclose') 286 If xc_wait_default = '' Then 287 xc_wait_default = 0 288 delay_wait_default = VRGetIni( "workplace_shell", "delay_wait", our_ini, 'Noclose') 289 If delay_wait_default = '' Then 290 delay_wait_default = 0 291 od_wait_default = VRGetIni( "object_desktop", "od_wait", our_ini, 'Noclose') 292 If od_wait_default = '' Then 293 od_wait_default = 1 294 od_cc_default = VRGetIni( "object_desktop", "od_cc", our_ini, 'Noclose') 295 If od_cc_default = '' Then 296 od_cc_default = 0 297 od_tlp_default = VRGetIni( "object_desktop", "od_tlp", our_ini, 'Noclose') 298 If od_tlp_default = '' Then 299 od_tlp_default = 0 300 od_tries_default = VRGetIni( "object_desktop", "od_tries", our_ini, 'Noclose') 301 If od_tries_default = '' Then 302 od_tries_default = 30 303 304 startupfolder_default = VRGetIni( "folders", "startupfolder", our_ini, 'Noclose') 305 If startupfolder_default = '' Then 306 startupfolder_default = '<WP_START>' 307 xstartupfolder_default = Strip(VRGetIni( "folders", "XStartupFolders", our_ini, 'NoClose'), 't', '00'x) 308 If xstartupfolder_default <> '' Then 309 Do 310 If WPToolsQueryObject('#' || xstartupfolder_default, , , 'szSetupString') Then 311 Do 312 Parse Value '.' szSetupString With . 'OBJECTID=' szObjectId ';' . 313 xstartupname_default = Strip(szObjectId) 303 wps_wait = VRGetIni( "workplace_shell", "wps_wait", our_ini, 'Noclose') 304 If \Datatype(wps_wait, 'B') Then 305 wps_wait = 1 306 sc_test = Check_startup('WARPCENTER', '<WP_WARPCENTER>', , '<WP_START>') 307 sc_wait = VRGetIni( "workplace_shell", "sc_wait", our_ini, 'Noclose') 308 If \Datatype(sc_wait, 'B') Then 309 sc_wait = sc_test 310 sc_wait = (sc_wait & sc_test) 311 sc_test = Check_startup(, '<WP_WARPCENTER>', , '<WP_START>') 312 sc_open = VRGetIni( "workplace_shell", "sc_open", our_ini, 'Noclose') 313 If \Datatype(sc_open, 'B') Then 314 sc_open = sc_test 315 sc_open = (sc_open & sc_test) 316 tb_test = Check_startup('TOOLBAR', '<WP_LAUNCHPAD>', , '<WP_START>') 317 tb_wait = VRGetIni( "workplace_shell", "tb_wait", our_ini, 'Noclose') 318 If \Datatype(tb_wait, 'B') Then 319 tb_wait = tb_test 320 tb_wait = (tb_wait & tb_test) 321 tb_test = Check_startup(, '<WP_LAUNCHPAD>', , '<WP_START>') 322 tb_open = VRGetIni( "workplace_shell", "tb_open", our_ini, 'Noclose') 323 If \Datatype(tb_open, 'B') Then 324 tb_open = tb_test 325 tb_open = (tb_open & tb_test) 326 xc_test = Check_startup(,'<XWP_XCENTER>', 'XCenter', '<WP_START>') 327 ec_wait = VRGetIni( "workplace_shell", "ec_wait", our_ini, 'Noclose') 328 If ec_wait <> '' Then 329 Do 330 ok = VRDelIni( "workplace_shell", "ec_wait", our_ini, 'Noclose') Then 331 xc_wait = (ec_wait & xc_test) 332 ok = VRSetIni( "workplace_shell", "xc_wait", xc_wait, our_ini, 'Noclose' ) 333 End 334 xc_wait = VRGetIni( "workplace_shell", "xc_wait", our_ini, 'Noclose') 335 If \Datatype(xc_wait, 'B') Then 336 xc_wait = xc_test 337 xc_wait = (xc_wait & xc_test) 338 xc_open = VRGetIni( "workplace_shell", "xc_open", our_ini, 'Noclose') 339 If \Datatype(xc_open, 'B') Then 340 xc_open = xc_test 341 xc_open = (xc_open & xc_test) 342 startup_wait = VRGetIni( "workplace_shell", "startup_wait", our_ini, 'Noclose') 343 If startup_wait <> 0 & startup_wait <> 1 Then 344 startup_wait = 0 345 delay_wait = VRGetIni( "workplace_shell", "delay_wait", our_ini, 'Noclose') 346 If \Datatype(delay_wait, 'B') Then 347 delay_wait = 1 348 od_wait = VRGetIni( "object_desktop", "od_wait", our_ini, 'Noclose') 349 If \Datatype(od_wait, 'B') Then 350 od_wait = 0 351 od_cc = VRGetIni( "object_desktop", "od_cc", our_ini, 'Noclose') 352 If \Datatype(od_cc, 'B') Then 353 od_cc = 0 354 od_tlp = VRGetIni( "object_desktop", "od_tlp", our_ini, 'Noclose') 355 If \Datatype(od_tlp, 'B') Then 356 od_tlp = 0 357 od_tries = VRGetIni( "object_desktop", "od_tries", our_ini, 'Noclose') 358 If \Datatype(od_tries, 'N') Then 359 od_tries = 30 360 361 startupfolder = VRGetIni( "folders", "startupfolder", our_ini, 'Noclose') 362 If startupfolder = '' Then 363 startupfolder = '<WP_START>' 364 xstartupfolder = Strip(VRGetIni( "folders", "XStartupFolders", our_ini, 'NoClose'), 't', '00'x) 365 If xstartupfolder <> '' Then 366 Do 367 If WPToolsQueryObject('#' || xstartupfolder, , , 'szSetupString') Then 368 Do 369 Parse Value '.' szsetupstring With . 'OBJECTID=' szobjectid ';' . 370 xstartupname = Strip(szobjectid) 314 371 End 315 372 Else 316 xstartupname _default= '<XWP_STARTUP>'317 End 318 Else 319 xstartupname _default= '<XWP_STARTUP>'320 enablexstart _default= VRGetIni( "folders", "enablexstart", our_ini, 'NoClose')321 If enablexstart_default = ''Then322 enablexstart _default = 0323 sleepsec_default = VRGetIni( "objects", "sleepsec", our_ini, 'Noclose')324 If sleepsec_default = ''Then325 sleepsec_default= 2326 retries_default = VRGetIni( "objects", "retries", our_ini, 'Noclose')327 If retries_default = ''Then328 retries_default= 2329 enablelanstart _default= VRGetIni( "folders", "enablelanstart", our_ini, 'NoClose')330 If enablelanstart_default = ''Then331 enablelanstart _default= 0373 xstartupname = '<XWP_STARTUP>' 374 End 375 Else 376 xstartupname = '<XWP_STARTUP>' 377 enablexstart = VRGetIni( "folders", "enablexstart", our_ini, 'NoClose') 378 If \Datatype(enablexstart, 'B') Then 379 enablexstart = 0 380 retries = VRGetIni( "objects", "retries", our_ini, 'Noclose') 381 If \Datatype(retries, 'W') Then 382 retries = 2 383 sleepsec = VRGetIni( "objects", "sleepsec", our_ini, 'Noclose') 384 If \Datatype(sleepsec, 'N') Then 385 sleepsec = 2 386 enablelanstart = VRGetIni( "folders", "enablelanstart", our_ini, 'NoClose') 387 If \Datatype(enablelanstart, 'B') Then 388 enablelanstart = 0 332 389 simplelogononly = VRGetIni( "folders", "simplelogononly", our_ini, 'NoClose') 333 If simplelogononly = ''Then390 If \Datatype(simplelogononly, 'B') Then 334 391 simplelogononly = 0 335 If \enablelanstart _defaultThen392 If \enablelanstart Then 336 393 simplelogononly = 0 337 lanstartupfolder _default= VRGetIni( "folders", "lanstartupfolder", our_ini, 'NoClose')338 If lanstartupfolder _default= '' Then339 lanstartupfolder _default= '<RexxAutoStart_LAN_Folder>'340 ls_sleepsec _default= VRGetIni( "objects", "ls_sleepsec", our_ini, 'Noclose')341 If ls_sleepsec_default = ''Then342 ls_sleepsec _default = 20343 ls_retries _default= VRGetIni( "objects", "ls_retries", our_ini, 'Noclose')344 If ls_retries_default = ''Then345 ls_retries _default = 15394 lanstartupfolder = VRGetIni( "folders", "lanstartupfolder", our_ini, 'NoClose') 395 If lanstartupfolder = '' Then 396 lanstartupfolder = '<RexxAutoStart_LAN_Folder>' 397 ls_sleepsec = VRGetIni( "objects", "ls_sleepsec", our_ini, 'Noclose') 398 If \Datatype(ls_sleepsec, 'N') Then 399 ls_sleepsec = 3 400 ls_retries = VRGetIni( "objects", "ls_retries", our_ini, 'Noclose') 401 If \Datatype(ls_retries, 'W') Then 402 ls_retries = 60 346 403 347 404 log_out = VRGetIni( "debug", "log_out", our_ini, 'Noclose') 348 If log_out = ''Then349 log_out = 0405 If \Datatype(log_out, 'B') Then 406 log_out = 1 350 407 verbose = VRGetIni( "debug", "verbose", our_ini, 'Noclose' ) 351 If verbose = ''Then408 If \Datatype(verbose, 'B') Then 352 409 verbose = 1 353 410 /* Sound */ 354 411 sound = VRGetIni( "RexxAutoStart", "Sound", our_ini,'NoClose' ) 355 If sound = ''Then412 If \Datatype(sound, 'B') Then 356 413 sound = VRGet("CB_Sound","set") 357 414 ok = VRSet("CB_Sound","set",sound) 358 415 sound_open = VRGetIni( "sound", "sound_open", our_ini,'NoClose' ) 359 If sound_open = ''Then416 If \Datatype(sound_open, 'W') Then 360 417 sound_open = '683' 361 418 sound_done = VRGetIni( "sound", "sound_done", our_ini,'NoClose' ) 362 If sound_done = ''Then419 If \Datatype(sound_done, 'W') Then 363 420 sound_done = '681' 364 421 sound_abort = VRGetIni( "sound", "sound_abort", our_ini,'NoClose' ) 365 If sound_abort = ''Then422 If \Datatype(sound_abort, 'W') Then 366 423 sound_abort = '682' 367 424 sound_start = VRGetIni( "sound", "sound_start", our_ini ) 368 If sound_start = ''Then425 If \Datatype(sound_start, 'W') Then 369 426 sound_start = '684' 370 427 371 428 Return 372 373 429 /*:VRX _Initialize 374 430 */ … … 380 436 If Rxfuncquery(sysversion) = 0 Then 381 437 Do 382 Parse Value (SysVersion()) With op_sys op_lvl438 Parse Value SysVersion() With op_sys op_lvl 383 439 End 384 440 Else … … 400 456 wseb = (wseb_uni | wseb_smp) & (os_base <> 'XR04501') 401 457 458 /* needs to be defined here - otherwise we crash if we can't locate the .exe */ 459 verbose = 0 460 sound = 0 461 log_out = 0 462 sleepsec = 0 402 463 /* locate the executable */ 403 464 exe_file = Stream(startup_path || '\rxautost.exe', 'c', 'query exists') … … 420 481 log_file = base_dir || '\RxAutoSt.LOG' 421 482 422 /* Parameter treatment:423 1. Read INI file424 2. Read RXAUTOST enviroment variable (overrides 1, should not be used)425 3. Read commandline parameters (override 1 and 2, optional)426 */427 428 483 /* Read the INI file */ 429 484 Call _iniread 430 431 /* let commandline parameters override config.sys parameters */432 orgparms = Strip(orgparms Value('rxautost', , 'os2environment'))433 434 /* we need this for /F switch to preserve case of ObjectIDs */435 parms = Translate(orgparms)436 /* get some initial parameters */437 If (Pos('/V',parms) <> 0) Then438 verbose = 1 /* verbose output */439 If (Pos('/L',parms) <> 0) Then440 log_out = 1 /* logging */441 testing = (Pos('/T',parms) <> 0) /* undocumented test parameter */442 If testing Then443 Do444 verbose = 1445 log_out = 1446 End447 If (Pos('/WPS',parms) <> 0) Then448 wps_wait = 1 /* wait for WPS population */449 Else450 wps_wait = wps_wait_default451 If (Pos('/SC',parms) <> 0) Then452 sc_wait = 1 /* wait for Warp Center */453 Else454 sc_wait = sc_wait_default455 If (Pos('/TB',parms) <> 0) Then456 tb_wait = 1 /* wait for Toolbar */457 Else458 tb_wait = tb_wait_default459 460 xc_wait = xc_wait_default461 462 If (Pos('/D',parms) <> 0) Then463 Do464 Parse Value('.' parms) With . '/D:' delay_wait '/'./* delay switch */465 delay_wait = Strip(delay_wait)466 If delay_wait = '' | \Datatype(delay_wait, 'W') Then467 delay_wait = delay_wait_default468 End469 Else470 delay_wait = delay_wait_default471 472 /* Object Desktop information */473 odtest = SysIni('USER','WPTS','TSMasterSetup:StartupFlags')474 objdesk = (odtest <> 'ERROR:') /* object desktop installed */475 If objdesk Then /* determine which facilities to wait for */476 Do477 If Pos('/OD',parms) = 0 Then478 od_wait = od_wait_default479 Else480 od_wait = 1 /* wait for Object Desktop */481 /* no good for OD 1.5482 odtest = Left(odtest, Length(odtest) - 1)483 od_cc = (odtest >= C2x('28'x))484 od_tlp = (odtest >= C2x('28'x))485 od_tlp = (odtest >= C2x('24'x))486 od_cc = (odtest >= C2x('20'x))487 */488 If Pos('/ODC', parms) = 0 Then489 od_cc = od_cc_default490 Else491 od_cc = 1 /* wait for Control Center */492 If Pos('/ODT', parms) = 0 Then493 od_tlp = od_tlp_default494 Else495 od_tlp = od_tlp_default /* wait for Tab LaunchPad */496 End497 Else498 od_wait = 0499 500 /* determine number of checks for desktop tasks */501 Parse Value('.' parms) With . '/OD:' od_tries '/'.502 od_tries = Strip(od_tries)503 If od_tries = '' | \Datatype(od_tries, 'W') Then504 od_tries = od_tries_default505 506 507 /* /P switch (pause between object) */508 Parse Value('.' parms) With . '/P:' sleepsec '/' .509 sleepsec = Strip(sleepsec)510 If sleepsec = '' Then511 sleepsec = sleepsec_default512 485 513 486 /* update GUI */ … … 522 495 ok = VRDeleteFile( log_file ) 523 496 524 525 497 /* Call Stream log_file, 'c', 'open write' */ 526 527 /* /F switch (make any folder your startup folder) */528 f_pos = Pos('/F:', parms)529 If f_pos <> 0 Then530 Do531 Parse Value('.' orgparms) With . + (f_pos) + 4 startupfolder '/' .532 startupfolder = Strip(Strip(Strip(startupfolder), , '"'), , "'")533 End534 Else535 startupfolder = startupfolder_default536 537 xstartupname = xstartupname_default538 enablexstart = enablexstart_default539 540 /* /R switch (open object retries) */541 Parse Value('.' parms) With . '/R:' retries '/' .542 retries = Strip(retries)543 If retries = '' Then544 retries = retries_default545 546 /* Do we need help? */547 If Pos('/?', cmdparms) <> 0 Then /* | cmdparms = '' */548 do_help = 1549 Else550 do_help = 0551 552 /* set miscellaneous options */553 554 /* set lanstartfolder settings - this could be simpler, done only as all the others are the same */555 lanstartupfolder = lanstartupfolder_default556 enablelanstart = enablelanstart_default557 498 558 499 /* load other function libraries */ 559 500 Call _loadotherfuncs 560 561 ls_sleepsec = ls_sleepsec_default562 ls_retries = ls_retries_default563 501 564 502 /* are we going to execute RxAutoSt? */ 565 503 autoexec = 1 /* (Pos('/X', parms) <> 0) */ 566 504 Return 1 567 568 505 /*:VRX _INIWrite 569 506 */ 570 507 _iniwrite: 571 if our_ini = 'OUR_INI' then our_ini = base_dir || '\RxAutoSt.INI' 508 If our_ini = 'OUR_INI' Then 509 our_ini = base_dir || '\RxAutoSt.INI' 572 510 ok = VRSet("RexxAutoStartMain","StatusText","Saving...") 573 511 ok = VRSetIni( "objects", "sleepsec", sleepsec, our_ini, 'Noclose') … … 575 513 ok = VRSetIni( "RexxAutoStart", "Top", VRGet("RexxAutoStartMain","Top"), our_ini, 'NoClose' ) 576 514 ok = VRSetIni( "RexxAutoStart", "BackColor", VRGet("RexxAutoStartMain","BackColor"), our_ini, 'NoClose' ) 577 ok = VRSetIni( "RexxAutoStart", "Sound", sound, our_ini, 'NoClose' ) 578 ok = VRSetIni( "folders", "simplelogononly", simplelogononly, our_ini ) 515 ok = VRSetIni( "RexxAutoStart", "Sound", sound, our_ini) 579 516 Return 580 517 … … 590 527 _lanwaitforconnection: 591 528 /* LAN connection wait logic */ 592 ls_info = 0 593 ls_logged = 0 594 Call _sayout 'Waiting for LAN connection.', 1 595 Do ls_retries While \ls_logged 596 Call Checkforevent 529 requester_started = 0 530 no_requester = 2138 531 server_started = 0 532 no_server = 2114 533 no_domain = 2453 534 Call _sayout 'Waiting for network startup.', 1 535 ok = VRSet("SL_Progress","Percentile", 0) 536 /* wait for the requester to start */ 537 ls_tries = 0 538 Do ls_retries While \requester_started 539 ls_tries = ls_tries + 1 597 540 Parse Value LsMyInfo() With lanrc my_uid admin? my_machine my_domain my_domain_controller . 541 If lanrc = no_requester Then 542 Do 543 Call _sayout 'Waiting for network REQUESTER to start (' || ls_tries || ').', 2 544 Call SysSleep ls_sleepsec 545 Call Checkforevent 546 End 598 547 If lanrc = 0 | lanrc = 2453 Then 599 548 Do 600 If simplelogononly Then 601 Do 602 If my_uid \= '?' Then 549 Call _sayout 'Network REQUESTER has started.', 2 550 requester_started = 1 551 End 552 End 553 If \requester_started Then 554 Do 555 Call _sayout 'Wait for network REQUESTER startup timed out.', 2 556 Return 0 557 End 558 559 /* wait for server (peer) to start */ 560 ls_tries = 0 561 If requester_started Then 562 Do ls_retries While \server_started 563 ls_tries = ls_tries + 1 564 srvrc = NetAdmin('test.', my_machine, 'net start') 565 If srvrc = no_server Then 566 Do 567 Call _sayout 'Waiting for network SERVER (PEER) to start (' || ls_tries || ').', 2 568 Call SysSleep ls_sleepsec 569 Call Checkforevent 570 End 571 If srvrc = 0 Then 572 Do 573 Call _sayout 'Network SERVER (PEER) has started.', 2 574 my_services = Space(test.2) 575 server_started = 1 576 End 577 End 578 If \server_started Then 579 Do 580 Call _sayout 'Wait for network SERVER (PEER) startup timed out.', 2 581 enablelanstart = 0 582 End 583 If \enablelanstart Then 584 Return 0 585 586 If my_domain = '?' Then 587 Parse Value LsDomName() With . my_domain . 588 589 /* wait for logon */ 590 If (requester_started | server_started) , 591 & simplelogononly Then 592 Do 593 ls_logged = 0 594 ls_tries = 0 595 Call _sayout 'Waiting for network logon.', 1 596 Parse Value LsMyInfo() With lanrc my_uid admin? my_machine my_domain my_domain_controller . 597 If lanrc = 0 | lanrc = no_domain Then 598 Do ls_retries While \ls_logged 599 Select 600 When my_uid <> '?' & my_domain_controller <> '?' Then 603 601 Do 604 Call _sayout my_uid 'is logged on to' Strip(my_machine, 'l', '\'), 2 605 ls_info = 1 602 Call _sayout my_uid 'is logged on to domain controller' my_domain_controller || '.', 2 606 603 ls_logged = 1 607 604 End 608 End 609 Else 610 Do 611 If my_domain_controller \= '?' Then 605 When my_uid <> '?' & my_domain_controller = '?' Then 612 606 Do 613 lanrc = LsLogonUser('lan_users', my_domain_controller) 614 If lanrc = 0 & lan_users.0 > 0 Then/* someone is logged on */ 615 Do i = 1 To lan_users.0/* check for this user */ 616 If my_uid = lan_users.i.0uid Then/* logged on */ 617 Do 618 Call _sayout my_uid 'is logged on to' Strip(my_domain_controller, 'l', '\'), 2 619 ls_info = 1 620 ls_logged = 1 621 End 607 Call _sayout my_uid 'is logged on to local server' my_machine || '.', 2 608 ls_logged = 1 609 End 610 Otherwise 611 Do 612 Call _sayout 'Waiting for logon (' || ls_tries || ').', 2 613 Call SysSleep ls_sleepsec 614 Call Checkforevent 615 ls_tries = ls_tries + 1 616 Parse Value LsMyInfo() With lanrc my_uid admin? my_machine my_domain my_domain_controller . 617 If lanrc = 0 | lanrc = no_domain Then 618 Iterate 619 Else 620 Do 621 Call _sayout 'The logon status query failed with a return code of' lanrc || '.', 2 622 Return 0 622 623 End 623 624 End 624 Else625 Do626 Call _sayout 'The domain controller for domain' my_domain 'cannot be found.', 2627 ls_logged = 1628 End629 625 End 630 If \ls_logged Then 631 Do 632 Call _sayout 'Waiting for logon.', 2 633 Call SysSleep ls_sleepsec 634 End 635 End 636 Else 637 Do 638 If lanrc = 2138 Then 639 Call _sayout 'Requester not started.', 2 640 Call SysSleep ls_sleepsec 641 End 642 End 643 If \ls_logged Then 644 Call _sayout 'Wait for LAN connection timed out.', 2 645 Return ls_info /* 1 = success 0 = failure */ 646 626 End 627 Else 628 Do 629 Call _sayout 'The logon status query failed with a return code of' lanrc || '.', 2 630 Return 0 631 End 632 If \ls_logged Then 633 Do 634 Call _sayout 'Wait for network logon timed out.', 2 635 Return 0 636 End 637 End 638 Return 1 647 639 /*:VRX _LoadOtherFuncs 648 640 */ … … 666 658 Return 667 659 660 /*:VRX _objdone 661 */ 662 _objdone: 663 Parse Arg wait_title 664 Call _sayout 'Waiting for' wait_title 'to complete.', 1 665 Call Checkforevent 666 success = 0 667 Parse Value(_doneobj(wait_title, sleepsec, od_tries)) With success tries . 668 If \success Then 669 open_msg = wait_title 'has completed after' tries 'check(s).' 670 Else 671 open_msg = wait_title 'has not completed after' tries 'check(s).' 672 Call _sayout open_msg, 2 673 Return 0 668 674 /*:VRX _objTitle 669 675 */ … … 679 685 */ 680 686 _objwait: 681 Say '_objwait entered'682 687 Parse Arg wait_title 683 688 Call _sayout 'Waiting for' wait_title 'to start.', 1 … … 686 691 Parse Value(_waitobj(wait_title, sleepsec, od_tries)) With success tries . 687 692 If success Then 688 open_msg = '[' || wait_title || ']has opened after' tries 'check(s).'689 Else 690 open_msg = '[' || wait_title || ']has not opened after' tries 'check(s).'693 open_msg = wait_title 'has opened after' tries 'check(s).' 694 Else 695 open_msg = wait_title 'has not opened after' tries 'check(s).' 691 696 Call _sayout open_msg, 2 692 Say '_objwait done'693 697 Return 0 694 698 … … 782 786 If sound Then 783 787 Do 784 /* 785 SoundFile = _GetEventSound(SoundEventCode) 786 */ 787 soundfileentry = VRGetIni( "MMPM2_AlarmSounds", soundeventcode, SysBootDrive()"\MMOS2\MMPM.INI" ) 788 soundfileentry = VRGetIni( "MMPM2_AlarmSounds", soundeventcode, Getbootdrive()"\MMOS2\MMPM.INI" ) 788 789 Say 'SoundFileEntry = !!!'soundfileentry'!!!' 789 790 If soundfileentry \= '' Then … … 795 796 Say "SoundFile = >>"soundfile"<<" 796 797 If VRFileExists( soundfile ) Then 797 Do 798 Call _playsound soundfile 799 /* 800 threadID = VRMethod( "Application", "StartThread", "PlaySnd", SoundFile ) 801 say ThreadID 802 */ 803 End 798 Call _playsound soundfile 804 799 Else 805 800 Say soundfile 'not found' … … 883 878 _waitobj: Procedure Expose verbose log_out log_file sub_trace sound sleepsec 884 879 /* wait for object to start */ 885 Say '_WaitObj entered'886 880 save_trace = Trace(sub_trace) 887 881 Parse Arg title, sleep, od_tries … … 891 885 Do i = 1 To od_tries Until rc_task 892 886 attempts = attempts + 1 893 Call _sleepanimated sleep894 Call Checkforevent895 887 Call SysQuerySwitchList 'tasks.', 'IGN' 896 888 Do j = 1 To tasks.0 Until rc_task 897 889 rc_task = (Pos(title, tasks.j) <> 0) 898 890 End 891 If \rc_task Then 892 Do 893 Call _sleepanimated sleep 894 Call Checkforevent 895 End 899 896 End 900 897 Else 901 898 Call _sayout 'SysQuerySwitchList not available, returning...', 2 902 899 Trace (save_trace) 903 Say '_WaitObj done'904 900 Return rc_task attempts 905 901 … … 935 931 Return 936 932 933 /*:VRX Check_startup 934 */ 935 Check_startup: 936 Procedure 937 Parse Arg auto, obj, class, startup, . 938 If auto <> '' Then 939 test_auto = (Pos(Translate(auto), Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) = 1) 940 Else 941 test_auto = 1 942 test_obj = WPToolsQueryObject(obj) 943 test_class = 0 944 test_startup = 0 945 If test_auto & test_obj Then 946 Do 947 Call SysQueryClassList 'classes.' 948 Do x = 1 To classes.0 949 If Abbrev(Translate(classes.x), Translate(class)), 950 | class = '' Then 951 Do 952 test_class = 1 953 If WPToolsFolderContent(startup, 'objects.') Then 954 Do y = 1 To objects.0 955 If Abbrev(Translate(objects.y), Translate(obj)) Then 956 Do 957 test_startup = 1 958 Leave y 959 End 960 If WPToolsQueryObject(objects.y, , , 'szSetup') Then 961 Do 962 Parse Value('.' szSetup) With . 'SHADOWID=' shadow ';' 963 If Abbrev(Translate(Strip(shadow)), Translate(obj)) Then 964 Do 965 test_startup = 1 966 Leave y 967 End 968 End 969 End 970 Drop objects. 971 Leave x 972 End 973 End 974 Drop classes. 975 End 976 Return (test_auto & test_obj & test_class & \test_startup) 937 977 /*:VRX CheckForEvent 938 978 */ … … 951 991 */ 952 992 Fini: 953 Call Playpic_close954 993 window = VRWindow() 955 994 Call VRSet window, "Visible", 0 … … 978 1017 979 1018 bootdrive = Getbootdrive() 980 Parse Value(_rxfindlines('rxautost.exe', bootdrive || '\startup.cmd')) With , 981 startup_line_no startup_line '|' 982 If startup_line_no <> 0 Then 983 Do 984 exe_pos = Pos(':\', startup_line) - 1 985 Parse Value Substr(startup_line, exe_pos) With startup_cmd . 986 startup_cmd = Strip(Strip(Strip(startup_cmd, 't', "'"), 't', '"')) 987 startup_drive = VRParseFileName(startup_cmd, "D") 988 olddrive = VRChDrive( startup_drive ) 989 startup_path = VRParseFileName(startup_cmd, "DP") 990 ok = VRChDir( startup_path ) 991 End 992 Else 993 Do 994 msg.title = 'Error' 995 msg.type = 'E' 996 msg.text = 'Unable to determine path to rxautost.exe' 997 Call _msgok 998 Call Pb_quitnow_click 999 End 1019 startup_cmd = InitArgs.1 1020 startup_drive = VRParseFileName(startup_cmd, "D") 1021 startup_path = VRParseFileName(startup_cmd, "DP") 1022 ok = VRChDrive( startup_drive ) 1023 ok = VRChDir( startup_path ) 1000 1024 1001 1025 Call Rxfuncadd 'WPToolsLoadFuncs', 'WPTOOLS', 'WPToolsLoadFuncs' … … 1003 1027 1004 1028 window = VRWindow() 1005 /*1006 call VRMethod window, "CenterWindow"1007 call VRSet window, "Visible", 11008 */1009 1029 ok = VRRedirectStdIO('OFF') 1010 1030 Call VRMethod window, "Activate" 1011 1031 Drop window 1012 1032 Return 1013 1014 1033 /*:VRX MenuSettings_Click 1015 1034 */ 1016 Menu Settings_Click:1017 1018 return1035 Menusettings_click: 1036 1037 Return 1019 1038 1020 1039 /*:VRX PB_QuitNow_Click … … 1031 1050 /*:VRX PB_Shell_Click 1032 1051 */ 1033 P B_Shell_Click:1034 1035 Shell = '"'value('OS2_SHELL',,'OS2ENVIRONMENT')'"'1036 interpret Shell1052 Pb_shell_click: 1053 ok = VRSet("RexxAutoStartMain","StatusText","Open a shell and halt RexxAutoStart temporarily") 1054 shell = '"'Value('OS2_SHELL',,'OS2ENVIRONMENT')'"' 1055 Interpret shell 1037 1056 Return 1038 1057 … … 1067 1086 level = Strip(Linein(startup_path || '\rxautost.lvl')) 1068 1087 Call Stream startup_path || '\rxautost.lvl', 'c', 'close' 1088 level = level Stream(startup_path || '\rxautost.exe', 'c', 'query timestamp') 1069 1089 ok = VRSet( "RexxAutoStartMain", "Caption", "Rexx AutoStart" level ) 1070 1071 /* Read Parameters von Environment variable or commandline */1072 orgparms = VRGet("application","CommandLine")/* get commandline parameters */1073 cmdparms = orgparms /* to enable check for help */1074 1090 1075 1091 If _initialize() Then 1076 1092 Do /* initialize parameters and variables */ 1077 1093 xrc = 0 1078 Select 1079 When do_help Then 1080 Do /* give help */ 1081 xrc = _helpscreen() 1082 xrc = _cleanup(xrc) 1083 Call Quit 1084 End 1085 When autoexec Then 1086 Do /* execute program */ 1087 Call _sayout exe_file 'started.', 0 1088 Call _sayout 'Running under the' os_name, 1 1089 Call _sayout os_comp 'at the' os_level 'level.', 2 1090 Call _sayout "Using parameters" parms || ".", 2 1091 If wps_wait Then 1092 Do /* wait for Desktop population */ 1093 xrc = _wpswait() 1094 Call _playpicture 1095 End 1096 If sc_wait Then 1097 Do /* wait for Warp Center */ 1098 warpcenter_title = _getobjecttitle('<WP_WARPCENTER>') 1099 xrc = _objwait(warpcenter_title) 1100 Call _playpicture 1101 End 1102 If tb_wait Then 1103 Do /* wait for Toolbar */ 1104 toolbar_title = _getobjecttitle('<WP_LAUNCHPAD>') 1105 xrc = _objwait(toolbar_title) 1106 Call _playpicture 1107 End 1108 If od_wait Then 1109 Do /* wait for Object Desktop */ 1110 If od_cc Then 1111 Do 1112 controlcenter_title = _getobjecttitle('<OBJD_CONTROLCENTER>') 1113 xrc = _objwait(controlcenter_title) 1114 Call _playpicture 1115 End 1116 Else 1117 Call _sayout '[' || controlcenter_title || '] has not been selected for activation.', 2 1118 If od_tlp Then 1119 Do 1120 tablaunchpad_title = _getobjecttitle('<OBJD_TABLAUNCHPAD>') 1121 xrc = _objwait(tablaunchpad_title) 1122 Call _playpicture 1123 End 1124 Else 1125 Call _sayout '[' || tablaunchpad_title || '] has not been selected for activation.', 2 1126 End 1127 If xc_wait Then 1128 Do /* wait for XCenter */ 1129 If WPToolsSetObjectData('<XWP_XCENTER>', 'OPEN=DEFAULT;') Then 1130 Do 1131 xcenter_title = _getobjecttitle('<XWP_XCENTER>') 1132 xrc = _objwait(xcenter_title) 1133 End 1134 Call _playpicture 1135 End 1136 If delay_wait <> 0 Then 1137 Do /* delay further processing */ 1138 xrc = _delayswitch() 1139 Call _playpicture 1140 End 1141 xrc = _autoexec() /* open startupfolder objects */ 1142 If enablelanstart Then 1143 Do 1144 islan = _lanwaitforconnection() 1145 If islan Then 1146 Do 1147 xrc = _lanopenstartupfolder() 1148 End 1149 Else 1150 Call _sayout "Could not connect to LAN. LANStartupFolder not processed.", 2 1151 End 1152 Else 1153 Call _sayout "LANStartupFolder disabled.", 1 1154 xrc = _cleanup(xrc) 1155 End 1156 Otherwise Nop 1157 End /* select */ 1094 If autoexec Then 1095 Do /* execute program */ 1096 Call _sayout exe_file 'started, level' level || '.', 0 1097 Call _sayout 'Running under the' os_name, 1 1098 Call _sayout os_comp 'at the' os_level 'level.', 2 1099 If wps_wait Then 1100 Do /* wait for Desktop population */ 1101 xrc = _wpswait() 1102 Call _playpicture 1103 End 1104 If sc_open | sc_wait Then 1105 Do /* wait for Warp Center */ 1106 If sc_open Then 1107 xrc = WPToolsSetObjectData('<WP_WARPCENTER>', 'OPEN=DEFAULT;') 1108 warpcenter_title = _getobjecttitle('<WP_WARPCENTER>') 1109 xrc = _objwait(warpcenter_title) 1110 Call _playpicture 1111 End 1112 If tb_open | tb_wait Then 1113 Do /* wait for Toolbar */ 1114 If tb_open Then 1115 xrc = WPToolsSetObjectData('<WP_LAUNCHPAD>', 'OPEN=DEFAULT;') 1116 toolbar_title = _getobjecttitle('<WP_LAUNCHPAD>') 1117 xrc = _objwait(toolbar_title) 1118 Call _playpicture 1119 End 1120 If xc_open | xc_wait Then 1121 Do /* wait for XCenter */ 1122 If xc_open Then 1123 xrc = WPToolsSetObjectData('<XWP_XCENTER>', 'OPEN=DEFAULT;') 1124 xcenter_title = _getobjecttitle('<XWP_XCENTER>') 1125 xrc = _objwait(xcenter_title) 1126 Call _playpicture 1127 End 1128 If od_wait Then 1129 Do /* wait for Object Desktop */ 1130 If od_cc Then 1131 Do 1132 controlcenter_title = _getobjecttitle('<OBJD_CONTROLCENTER>') 1133 xrc = _objwait(controlcenter_title) 1134 Call _playpicture 1135 End 1136 Else 1137 Call _sayout '[' || controlcenter_title || '] has not been selected for activation.', 2 1138 If od_tlp Then 1139 Do 1140 tablaunchpad_title = _getobjecttitle('<OBJD_TABLAUNCHPAD>') 1141 xrc = _objwait(tablaunchpad_title) 1142 Call _playpicture 1143 End 1144 Else 1145 Call _sayout '[' || tablaunchpad_title || '] has not been selected for activation.', 2 1146 End 1147 If delay_wait <> 0 Then 1148 Do /* delay further processing */ 1149 xrc = _delayswitch() 1150 Call _playpicture 1151 End 1152 If startup_wait & VRFileExists( bootdrive || "\startup.cmd" ) Then 1153 Do 1154 startup_title = VRParseFileName( bootdrive || "\startup.cmd", "NE" ) 1155 xrc = _objdone(startup_title) 1156 Call _playpicture 1157 End 1158 xrc = _autoexec() /* open startupfolder objects */ 1159 If enablelanstart Then 1160 Do 1161 islan = _lanwaitforconnection() 1162 If islan Then 1163 Do 1164 xrc = _lanopenstartupfolder() 1165 End 1166 Else 1167 Call _sayout "Could not start and/or connect to the network. LAN StartupFolder not processed.", 2 1168 End 1169 Else 1170 Call _sayout "LAN StartupFolder disabled.", 1 1171 xrc = _cleanup(xrc) 1172 End 1158 1173 End /* if init... */ 1159 1174 Call _playsoundevent(sound_done) -
TabularUnified /projects/rxautost/src/rxautout.rc ¶
r20 r30 2 2 ICON 2 RXASTRED.ICO 3 3 ICON 3 RXASTYEL.ICO 4 BITMAP 4 PAPER1.BMP 5 BITMAP 5 PAPER2.BMP 6 BITMAP 6 PAPER3.BMP 7 BITMAP 11 TAB11.BMP 8 BITMAP 12 TAB12.BMP 9 BITMAP 13 TAB13.BMP 10 BITMAP 14 TAB14.BMP 11 BITMAP 15 TAB15.BMP 12 BITMAP 21 TAB21.BMP 13 BITMAP 22 TAB22.BMP 14 BITMAP 23 TAB23.BMP 15 BITMAP 24 TAB24.BMP 16 BITMAP 25 TAB25.BMP -
TabularUnified /projects/rxautost/src/rxautout.vrp ¶
r20 r30 1 1 VX-REXX OS/2 V2.14 Build B3 2 VRX: R XAUTOUT.VRX3 MacroPath: VRM:E:\Dev\REXX\VXREXX\Projects\ RxAutoSt.22 VRX: RxAutoUt.VRX 3 MacroPath: VRM:E:\Dev\REXX\VXREXX\Projects\NewNB 4 4 EXEPath: 5 5 RunParameters: 6 RunDirectory: e:\rxautost7 VRXWindow: __VREMainWindow,1, 446,1747,994,43968 VRXWindow: __VREFileListWindow,1,1 205,8721,2665,33589 VRXWindow: __VRESectionListWindow,1, 4926,8432,2650,334210 VRXWindow: __VREToolsWindow,1, 410,-180,4996,168111 VRXWindow: __VREWindListWindow,1, 349,6504,2650,31506 RunDirectory: 7 VRXWindow: __VREMainWindow,1,1084,2108,994,7905 8 VRXWindow: __VREFileListWindow,1,1039,10298,2665,3358 9 VRXWindow: __VRESectionListWindow,1,3734,8660,5155,3342 10 VRXWindow: __VREToolsWindow,1,2846,181,7496,1669 11 VRXWindow: __VREWindListWindow,1,407,-854,2650,3150 12 12 UserFile: 1 13 13 UserWindow: RxAutoUtMain,1 14 UserWindow: Page1,115 UserWindow: Page4,116 UserWindow: Page2,117 UserWindow: AboutBox,118 UserWindow: Page3,1 -
TabularUnified /projects/rxautost/src/rxautout.vrx ¶
r20 r30 7 7 Get the parent window. 8 8 */ 9 Parse Source . calledas . 10 parent = "" 11 argcount = Arg() 12 argoff = 0 13 If( calledas \= "COMMAND" )Then 14 Do 15 If argcount >= 1 Then 16 Do 17 parent = Arg(1) 18 argcount = argcount - 1 19 argoff = 1 20 End 21 End; Else 22 Do 23 Call VROptions 'ImplicitNames' 24 Call VROptions 'NoEchoQuit' 25 End 26 initargs.0 = argcount 27 If( argcount > 0 )Then 28 Do i = 1 To argcount 29 initargs.i = Arg( i + argoff ) 30 End 31 Drop calledas argcount argoff 9 parse source . calledAs . 10 parent = "" 11 argCount = arg() 12 argOff = 0 13 if( calledAs \= "COMMAND" )then do 14 if argCount >= 1 then do 15 parent = arg(1) 16 argCount = argCount - 1 17 argOff = 1 18 end 19 end; else do 20 call VROptions 'ImplicitNames' 21 call VROptions 'NoEchoQuit' 22 end 23 InitArgs.0 = argCount 24 if( argCount > 0 )then do i = 1 to argCount 25 InitArgs.i = arg( i + argOff ) 26 end 27 drop calledAs argCount argOff 32 28 33 29 /* Load the windows 34 30 */ 35 Call VRInit 36 Parse Source . . spec 37 _vreprimarywindowpath = , 38 VRParseFileName( spec, "dpn" ) || ".VRW" 39 _vreprimarywindow = , 40 VRLoad( parent, _vreprimarywindowpath ) 41 Drop parent spec 42 If( _vreprimarywindow == "" )Then 43 Do 44 Call VRMessage "", "Cannot load window:" VRError(), , 45 "Error!" 46 _vrereturnvalue = 32000 47 Signal _vreleavemain 48 End 31 call VRInit 32 parse source . . spec 33 _VREPrimaryWindowPath = , 34 VRParseFileName( spec, "dpn" ) || ".VRW" 35 _VREPrimaryWindow = , 36 VRLoad( parent, _VREPrimaryWindowPath ) 37 drop parent spec 38 if( _VREPrimaryWindow == "" )then do 39 call VRMessage "", "Cannot load window:" VRError(), , 40 "Error!" 41 _VREReturnValue = 32000 42 signal _VRELeaveMain 43 end 49 44 50 45 /* Process events 51 46 */ 52 Call Init 53 Signal On Halt 54 Do While( \ VRGet( _vreprimarywindow, "Shutdown" ) ) 55 _vreevent = VREvent() 56 Interpret _vreevent 57 End 58 _vrehalt: 59 _vrereturnvalue = Fini() 60 Call VRDestroy _vreprimarywindow 61 _vreleavemain: 62 Call VRFini 63 Exit _vrereturnvalue 64 65 Vrloadsecondary: 66 __vrlswait = Abbrev( 'WAIT', Translate(Arg(2)), 1 ) 67 If __vrlswait Then 68 Do 69 Call VRFlush 70 End 71 __vrlshwnd = VRLoad( VRWindow(), VRWindowPath(), Arg(1) ) 72 If __vrlshwnd = '' Then 73 Signal __vrlsdone 74 If __vrlswait \= 1 Then 75 Signal __vrlsdone 76 Call VRSet __vrlshwnd, 'WindowMode', 'Modal' 77 __vrlstmp = __vrlswindows.0 78 If( Datatype(__vrlstmp) \= 'NUM' ) Then 79 Do 80 __vrlstmp = 1 81 End 82 Else 83 Do 84 __vrlstmp = __vrlstmp + 1 85 End 86 __vrlswindows.__vrlstmp = VRWindow( __vrlshwnd ) 87 __vrlswindows.0 = __vrlstmp 88 Do While( VRIsValidObject( VRWindow() ) = 1 ) 89 __vrlsevent = VREvent() 90 Interpret __vrlsevent 91 End 92 __vrlstmp = __vrlswindows.0 93 __vrlswindows.0 = __vrlstmp - 1 94 Call VRWindow __vrlswindows.__vrlstmp 95 __vrlshwnd = '' 96 __vrlsdone: 97 Return __vrlshwnd 98 99 /*:VRX _FirstSetup 100 */ 101 _firstsetup: 102 /* determine status of Warp Center */ 103 startup_warp_center = 1 104 If WPToolsFolderContent(startupfolder_default, 'list.', 'F') Then 105 Do i = 1 To list.0 106 If list.i = '<WP_WARPCENTER>' Then 107 startup_warp_center = 0 108 End 109 If startup_warp_center Then 110 startup_warp_center = (Pos('WARPCENTER', Translate(autostart_line)) > 0) 111 Call SysIni our_ini, 'warp_center', 'sc_wait', startup_warp_center 112 parms.0 = 1 113 parms.1 = '<WP_WARPCENTER>' 114 Perform('RxObjTitle', 'parms.'); 115 sc_title = parms.1 116 Call SysIni our_ini, 'warp_center', 'sc_title', sc_title 117 Call SysIni our_ini, 'warp_center', 'sc_tries', sc_tries_default 118 119 Return 120 121 /*:VRX _INIRead 122 */ 123 _iniread: 124 125 /* fully implemented settings */ 126 ini_changes = 0 127 128 obj_tries = wps_wait | sc_wait | tb_wait | xc_wait | od_wait 129 /* 130 ok = VRSet("CB_EnableXStartUpFolder","Value", enablexstart ) 131 */ 132 /* 133 Select 134 When \xwpstartup & xstartup Then 135 Do 136 enablexstart = 1 137 ini_changes = enablexstart <> VRGet("CB_EnableXStartupfolder","Value") 138 End 139 When xwpstartup & \xstartup Then 140 Do 141 enablexstart = 0 142 ini_changes = enablexstart <> VRGet("CB_EnableXStartupfolder","Value") 143 End 144 Otherwise 145 Do 146 enablexstart = 0 147 ini_changes = enablexstart <> VRGet("CB_EnableXStartupfolder","Value") 148 End 149 End 150 ok = VRSet("CB_EnableXStartupfolder","Value", enablexstart ) 151 */ 152 /* partly implemented settings */ 153 Return 154 155 /* 156 157 If old_parms <> '' Then 158 Do 159 /* update from old parameters file */ 160 reply = SendMsgBox('Msg019'); 161 162 /* wait for WarpCenter */ 163 Parse Value('.' old_parms) With . '/SC:' sc_tries '/'. 164 sc_tries = Strip(sc_tries) 165 If sc_tries <> '' & Datatype(sc_tries, 'W') Then 166 Call SysIni our_ini, 'warp_center', 'sc_tries', sc_tries 167 /* wait for Object Desktop */ 168 /* determine which facilities to wait for */ 169 If objdesk Then 170 Do 171 /* wait for Control Center */ 172 od_cc = (Pos('/ODC', old_parms) <> 0) 173 If od_cc Then 174 Call SysIni our_ini, 'object_desktop', 'od_cc', od_cc 175 /* wait for Tab LaunchPad */ 176 od_tlp = (Pos('/ODT', old_parms) <> 0) 177 If od_tlp Then 178 Call SysIni our_ini, 'object_desktop', 'od_tlp', od_tlp 179 /* determine number of checks for Object Desktop tasks */ 180 Parse Value('.' old_parms) With . '/OD:' od_tries '/'. 181 od_tries = Strip(od_tries) 182 If od_tries <> '' & Datatype(od_tries, 'W') Then 183 Call SysIni our_ini, 'object_desktop', 'od_tries', od_tries 184 End 185 186 Parse Value('.' old_parms) With . '/D:' delay_wait '/' . 187 delay_wait = Strip(delay_wait) 188 If delay_wait <> '' & Datatype(delay_wait, 'W') Then 189 Call SysIni our_ini, 'workplace_shell', 'delay_wait', delay_wait 190 191 Parse Value('.' old_parms) With . '/R:' retries '/' . 192 retries = Strip(retries) 193 If retries <> '' & Datatype(retries, 'W') Then 194 Call SysIni our_ini, 'objects', 'retries', retries 195 196 /* object id of startup folder */ 197 f_pos = Pos('/F:', old_parms) 198 If f_pos <> 0 Then 199 Do 200 Parse Value('.' old_parms) With . + (f_pos) + 4 startupfolder '/' . 201 startupfolder = Strip(Strip(Strip(startupfolder), , '"'), , "'") 202 Call SysIni our_ini, 'folders', 'startupfolder', startupfolder 203 End 204 205 Parse Value('.' old_parms) With . '/P:' sleepsec '/' . 206 sleepsec = Strip(sleepsec) 207 If sleepsec <> '' & Datatype(sleepsec, 'W') Then 208 Call SysIni our_ini, 'objects', 'sleepsec', sleepsec 209 210 log_out = (Pos('/L', old_parms) <> 0) 211 If log_out Then 212 Call SysIni our_ini, 'debug', 'log_out', log_out 213 214 verbose = (Pos('/V', old_parms) <> 0) 215 If verbose Then 216 Call SysIni our_ini, 'debug', 'verbose', verbose 217 End 218 End 219 */ 220 /*:VRX _INIWrite 47 call Init 48 signal on halt 49 do while( \ VRGet( _VREPrimaryWindow, "Shutdown" ) ) 50 _VREEvent = VREvent() 51 interpret _VREEvent 52 end 53 _VREHalt: 54 _VREReturnValue = Fini() 55 call VRDestroy _VREPrimaryWindow 56 _VRELeaveMain: 57 call VRFini 58 exit _VREReturnValue 59 60 VRLoadSecondary: 61 __vrlsWait = abbrev( 'WAIT', translate(arg(2)), 1 ) 62 if __vrlsWait then do 63 call VRFlush 64 end 65 __vrlsHWnd = VRLoad( VRWindow(), VRWindowPath(), arg(1) ) 66 if __vrlsHWnd = '' then signal __vrlsDone 67 if __vrlsWait \= 1 then signal __vrlsDone 68 call VRSet __vrlsHWnd, 'WindowMode', 'Modal' 69 __vrlsTmp = __vrlsWindows.0 70 if( DataType(__vrlsTmp) \= 'NUM' ) then do 71 __vrlsTmp = 1 72 end 73 else do 74 __vrlsTmp = __vrlsTmp + 1 75 end 76 __vrlsWindows.__vrlsTmp = VRWindow( __vrlsHWnd ) 77 __vrlsWindows.0 = __vrlsTmp 78 do while( VRIsValidObject( VRWindow() ) = 1 ) 79 __vrlsEvent = VREvent() 80 interpret __vrlsEvent 81 end 82 __vrlsTmp = __vrlsWindows.0 83 __vrlsWindows.0 = __vrlsTmp - 1 84 call VRWindow __vrlsWindows.__vrlsTmp 85 __vrlsHWnd = '' 86 __vrlsDone: 87 return __vrlsHWnd 88 89 /*:VRX _iniwrite 221 90 */ 222 91 _iniwrite: 223 92 ok = VRSetIni( "workplace_shell", "wps_wait", wps_wait, our_ini, "Noclose" ) 224 93 ok = VRSetIni( "workplace_shell", "sc_wait", sc_wait, our_ini, "Noclose" ) 94 ok = VRSetIni( "workplace_shell", "sc_open", sc_open, our_ini, "Noclose" ) 95 Call Update_autostart 'warpcenter', sc_wait, sc_open 225 96 ok = VRSetIni( "workplace_shell", "tb_wait", tb_wait, our_ini, "Noclose" ) 97 ok = VRSetIni( "workplace_shell", "tb_open", tb_open, our_ini, "Noclose" ) 98 Call Update_autostart 'toolbar', tb_wait, tb_open 226 99 ok = VRSetIni( "workplace_shell", "xc_wait", xc_wait, our_ini, "Noclose" ) 100 ok = VRSetIni( "workplace_shell", "xc_open", xc_open, our_ini, "Noclose" ) 101 ok = VRSetIni( "workplace_shell", "startup_wait", wps_wait, our_ini, "Noclose" ) 227 102 ok = VRSetIni( "workplace_shell", "delay_wait", delay_wait, our_ini, "Noclose" ) 228 103 ok = VRSetIni( "object_desktop", "od_wait", od_cc | od_tlp, our_ini, "Noclose" ) … … 279 154 ok = VRSetIni( "sound", "sound_start", sound_start, our_ini ) 280 155 ini_changes = 0 156 If new_autostart <> old_autostart Then 157 Do 158 /* update CONFIG.SYS */ 159 Parse Value(_rxfindlines(old_autostart, config_sys)) , 160 With autostart_line_no autostart_line '|' autostart_line_rem 161 If autostart_line_no <> 0 Then 162 Do 163 file_lines. = '' 164 file_lines.0 = 0 165 /* REM out the current SET AUTOSTART= line */ 166 autostart_line = 'REM' autostart_line 167 xrc = _rxupdline(autostart_line_no, autostart_line, config_sys) 168 /* add updated SET AUTOSTART= */ 169 new_autostart = 'SET AUTOSTART='||new_autostart 170 xrc = _rxupdline(autostart_line_no, new_autostart, config_sys, 'insert', 'close') 171 End 172 End 281 173 Return 282 174 … … 421 313 Return 422 314 423 /*:VRX _SetPage4 424 */ 425 _setpage4: 426 Parse Value(_rxfindlines('restartobjects=', bootdrive || '\config.sys')) , 427 With line_no . '=' line '|' . 428 current_line = Translate(Value('restartobjects', , 'os2environment')) 429 If line_no \= 0 Then 430 Do 431 ok = VRSet( "DT_RestartObjects", "Caption", line ) 432 If line = current_line Then 433 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", "" ) 434 Else 435 Do 436 If current_line = '' Then 437 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", "not found" ) 438 Else 439 Do 440 ok = VRSet( "DT_RestartObjects", "Caption", line "(next boot)") 441 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", current_line "(current)" ) 442 End 443 End 444 End 445 Else 446 Do 447 ok = VRSet( "DT_RestartObjects", "Caption", "not found" ) 448 If current_line \= '' Then 449 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", current_line "(current)" ) 450 End 451 Parse Value(_rxfindlines('autostart=', bootdrive || '\config.sys')) , 452 With line_no . '=' line '|' . 453 current_line = Translate(Value('autostart', , 'os2environment')) 454 If line_no \= 0 Then 455 Do 456 ok = VRSet( "DT_AutoStart", "Caption", line ) 457 If line = current_line Then 458 ok = VRSet( "DT_AutoStartCurrent", "Caption", "" ) 459 Else 460 Do 461 If current_line = '' Then 462 ok = VRSet( "DT_AutoStartCurrent", "Caption", "not found" ) 463 Else 464 Do 465 ok = VRSet( "DT_AutoStart", "Caption", line "(next boot)") 466 ok = VRSet( "DT_AutoStartCurrent", "Caption", current_line "(current)" ) 467 End 468 End 469 End 470 Else 471 Do 472 ok = VRSet( "DT_AutoStart", "Caption", "not found" ) 473 If current_line \= '' Then 474 ok = VRSet( "DT_AutoStartCurrent", "Caption", current_line "(current)" ) 475 End 476 Parse Value(_rxfindlines('rxautost.exe', bootdrive || '\startup.cmd')) , 477 With rxautost_line_no line '|' . 478 If rxautost_line_no \= 0 Then 479 ok = VRSet( "DT_StartupCmd", "Caption", line ) 480 Else 481 ok = VRSet( "DT_StartupCmd", "Caption", "Rexx Autostart not active" ) 482 If VRFileExists( our_log ) Then 483 Do 484 log_lines = 0 485 Do While Lines(our_log) 486 junk = Linein(our_log) 487 log_lines = log_lines + 1 488 End 489 ok = VRSet( "DT_LogRecords", "Caption", log_lines "lines" ) 490 End 491 Else 492 ok = VRSet( "DT_LogRecords", "Caption", "does not exist" ) 493 Parse Value(_rxfindlines('restartobjects=no', bootdrive || '\config.sys')) , 494 With restart_line_no . 495 If rxautost_line_no \= 0 & restart_line_no \= 0 Then 496 Do 497 ok = VRSet( "DT_RexxAutostartStatus", "Caption", "Rexx Autostart enabled" ) 498 ok = VRSet( "MenuRexxAutostartActivate", "Enabled", 0 ) 499 ok = VRSet( "MenuRexxAutostartDeactivate", "Enabled", 1 ) 500 End 501 Else 502 Do 503 ok = VRSet( "DT_RexxAutostartStatus", "Caption", "Rexx Autostart disabled" ) 504 ok = VRSet( "MenuRexxAutostartActivate", "Enabled", 1 ) 505 ok = VRSet( "MenuRexxAutostartDeactivate", "Enabled", 0 ) 506 End 507 drop line_no line current_line rxautost_line_no restart_line_no 508 Return 509 510 /*:VRX AboutBox_Close 511 */ 512 Aboutbox_close: 513 Call Aboutbox_fini 514 Return 515 516 /*:VRX AboutBox_Create 517 */ 518 Aboutbox_create: 519 Call Aboutbox_init 520 Return 521 522 /*:VRX AboutBox_Fini 523 */ 524 Aboutbox_fini: 525 window = VRInfo( "Window" ) 526 Call VRDestroy window 527 Drop window 528 Return 529 /*:VRX AboutBox_Init 530 */ 531 Aboutbox_init: 532 window = VRInfo( "Object" ) 533 If( \VRIsChildOf( window, "Notebook" ) ) Then 534 Do 535 Call VRMethod window, "CenterWindow" 536 Call VRSet window, "Visible", 1 537 Call VRMethod window, "Activate" 538 End 539 Drop window 540 Return 315 316 /*:VRX Activate 317 */ 318 Activate: 319 parse arg Nr 320 call PushbackAll 321 CurrentPageNr = Nr 322 /* ok = VRSet("PB_"Nr,"Font","9.WarpSans Bold") */ 323 ok = VRSet("TAB_"Nr,"Top", TabTop-8) 324 ok = VRSet("TAB_"Nr,"Left",TabWidth*(Nr-1)+PageLeft) 325 ok = VRSet("TAB_"Nr,"PicturePath", "#1"||Nr) 326 ok = VRSet("TAB_"Nr,"AutoSize",1) 327 ok = VRset("DT_PageName", "Caption", VRGet("TAB_"Nr, "UserData")) 328 ok = VRSet("Page_"Nr,"Visible", 1) 329 select 330 when Nr = 1 then ok = VRSet("IPB_paper","PicturePath","#4") 331 when Nr = Pages then ok = VRSet("IPB_paper","PicturePath","#6") 332 otherwise ok = VRSet("IPB_paper","PicturePath","#5") 333 end 334 return 541 335 542 336 /*:VRX CB_DELAY_Click … … 554 348 End 555 349 ini_changes = 1 556 Return 557 350 return 558 351 /*:VRX CB_EnableLanStartUpFolder_Click 559 352 */ … … 608 401 ini_changes = 1 609 402 Return 610 611 403 /*:VRX CB_ODInstalled_Click 612 404 */ … … 624 416 od_wait = 0 625 417 Return 626 627 418 /*:VRX CB_SimpleLogonOnly_Click 628 419 */ … … 639 430 Return 640 431 432 /*:VRX CB_startup_wait_Click 433 */ 434 CB_startup_wait_Click: 435 startup_wait = VRGet( "CB_startup_wait", "Set" ) 436 ini_changes = 1 437 return 438 641 439 /*:VRX CB_verbose_Click 642 440 */ … … 646 444 Return 647 445 648 /*:VRX CB_xc_wait_Click 649 */ 650 CB_xc_wait_Click: 651 xc_wait = VRGet( "CB_xc_wait", "Set" ) 652 ini_changes = 1 653 return 446 /*:VRX CB_wps_wait_Click 447 */ 448 CB_wps_wait_Click: 449 wps_wait = VRGet( "CB_wps_wait", "Set" ) 450 ini_changes = 1 451 return 452 453 /*:VRX Check_startup 454 */ 455 Check_startup: 456 Procedure Expose old_autostart 457 Parse Arg auto, obj, class, startup, . 458 If auto <> '' Then 459 test_auto = (Pos(Translate(auto), Translate(old_autostart)) <> 0) 460 Else 461 test_auto = 1 462 test_obj = WPToolsQueryObject(obj) 463 test_class = 0 464 test_startup = 0 465 If test_auto & test_obj Then 466 Do 467 Call SysQueryClassList 'classes.' 468 Do x = 1 To classes.0 469 If Abbrev(Translate(classes.x), Translate(class)), 470 | class = '' Then 471 Do 472 test_class = 1 473 If WPToolsFolderContent(startup, 'objects.') Then 474 Do y = 1 To objects.0 475 If Abbrev(Translate(objects.y), Translate(obj)) Then 476 Do 477 test_startup = 1 478 Leave y 479 End 480 If WPToolsQueryObject(objects.y, , , 'szSetup') Then 481 Do 482 Parse Value('.' szSetup) With . 'SHADOWID=' shadow ';' 483 If Abbrev(Translate(Strip(shadow)), Translate(obj)) Then 484 Do 485 test_startup = 1 486 Leave y 487 End 488 End 489 End 490 Drop objects. 491 Leave x 492 End 493 End 494 Drop classes. 495 End 496 Return (test_auto & test_obj & test_class & \test_startup) 497 654 498 655 499 /*:VRX EF_LANStartUpFolder_Change … … 682 526 */ 683 527 Fini: 684 window = VRWindow()685 Call VRSet window, "Visible", 0686 Drop window687 Return 0528 window = VRWindow() 529 call VRSet window, "Visible", 0 530 drop window 531 return 0 688 532 689 533 /*:VRX GetBootDrive 690 534 */ 691 Get bootdrive:535 GetBootDrive: 692 536 /* Use SysBootDrive if possible */ 693 537 If Rxfuncadd('SysBootDrive', 'RexxUtil', 'SysBootDrive') Then … … 695 539 Else 696 540 Return SysBootDrive() 541 542 697 543 /*:VRX Halt 698 544 */ 699 545 Halt: 700 Signal _vrehalt701 Return546 signal _VREHalt 547 return 702 548 703 549 /*:VRX Init 704 550 */ 705 551 Init: 552 Call Rxfuncadd 'SysLoadFuncs','Rexxutil','SysLoadFuncs' 553 Call SysLoadFuncs 554 Call Rxfuncadd 'WPToolsLoadFuncs', 'WPTOOLS', 'WPToolsLoadFuncs' 555 Call WPToolsLoadFuncs 706 556 ok = VRRedirectStdIO('OFF') 707 557 bootdrive = Getbootdrive() 708 file = Stream('rxautost.lvl', 'c', 'query exists') 709 level = Strip(Linein(file)) 710 Call Stream file, 'c', 'close' 711 ok = VRSet( "RxAutoUtMain", "Caption", "RexxAutoStart Setup Utility" level ) 558 config_sys = bootdrive||'\config.sys' 559 startup_cmd = bootdrive||'\startup.cmd' 560 our_drive = VRCurrDrive() 561 our_dir = our_drive || VRCurrDir( our_drive ) 562 our_ini = our_dir || '\RXAUTOST.INI' 563 our_log = our_dir || '\RXAUTOST.LOG' 564 startup_line = Translate('@START /MIN' our_dir||'\RXAUTOST.EXE' our_dir||'\RXAUTOST.EXE') 565 If VRFileExists( our_dir || '\rxautost.lvl' ) Then 566 Do 567 level = Strip(Linein(our_dir || '\rxautost.lvl')) 568 Call Stream our_dir || '\rxautost.lvl', 'c', 'close' 569 level = level Stream(our_dir || '\rxautout.exe', 'c', 'query timestamp') 570 End 571 Else 572 level = '' 573 caption = VRGet( "RxAutoUtMain", "Caption" ) 574 ok = VRSet( "RxAutoUtMain", "Caption", caption level ) 712 575 window = VRWindow() 713 576 Call VRMethod window, "CenterWindow" … … 715 578 Call VRMethod window, "Activate" 716 579 Drop window 580 ini_changes = Migrate_rexxautostart(our_ini, bootdrive) 581 Parse Value(_rxfindlines('autostart=', config_sys)) , 582 With line_no . '=' old_autostart '|' . 583 old_autostart = Strip(old_autostart) 584 new_autostart = old_autostart 585 return 586 /*:VRX IPB_Paper_Click 587 */ 588 IPB_Paper_Click: 589 if VRInfo("Left") > VRInfo("Top") then call Activate min(CurrentPageNr+1,Pages) 590 if VRInfo("Left") <= VRInfo("Top") then call Activate max(CurrentPageNr-1,1) 591 return 592 593 /*:VRX Migrate_rexxautostart 594 */ 595 Migrate_rexxautostart: Procedure 596 Parse Arg our_ini, bootdrive 717 597 ini_changes = 0 718 our_ini = Stream('RxAutoSt.INI', 'c', 'query exists') 719 our_log = Stream('RxAutoSt.LOG', 'c', 'query exists') 720 Return 721 722 /*:VRX MenuFileExit_Click 723 */ 724 Menufileexit_click: 598 migrated = (VRGetIni( "RexxAutoStart", "migrate", our_ini ) = 1) 599 old_parms = '' 600 If \migrated Then 601 Do 602 /* do we have a startup.cmd file ? */ 603 If VRFileExists( bootdrive || '\startup.cmd' ) Then 604 Do 605 Parse Value _rxfindlines('rxautost', bootdrive || '\startup.cmd') With , 606 startup_line_no startup_line '|' . 607 /* do we have a rxautost.exe line ? */ 608 If startup_line_no <> 0 Then 609 Do 610 /* get any parameters */ 611 exe_pos = Pos('RXAUTOST', Translate(startup_line)) 612 Parse Value Substr(startup_line, exe_pos) With . old_parms 613 End 614 End 615 old_parms = Space(old_parms Value('rxautost', , 'os2environment')) 616 If old_parms = '' Then 617 ok = VRSetIni( "RexxAutoStart", "migrate", '1', our_ini ) 618 Else 619 Do 620 If VRGetIni( "workplace_shell", "wps_wait", our_ini) = '' , 621 & Pos('/WPS', Translate(old_parms)) <> 0 Then 622 ok = VRSetIni( "workplace_shell", "wps_wait", '1', our_ini) 623 If VRGetIni( "workplace_shell", "sc_wait", our_ini) = '' , 624 & Pos('/SC', Translate(old_parms)) <> 0 , 625 & Pos('WARPCENTER', Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) <> 0 Then 626 ok = VRSetIni( "workplace_shell", "sc_wait", '1', our_ini) 627 If VRGetIni( "workplace_shell", "tb_wait", our_ini) = '' , 628 & Pos('/TB', Translate(old_parms)) <> 0 , 629 & Pos('TOOLBAR', Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) <> 0 Then 630 ok = VRSetIni( "workplace_shell", "tb_wait", '1', our_ini) 631 If VRGetIni( "workplace_shell", "delay_wait", our_ini) = '' , 632 & Pos('/D:',Translate(old_parms)) <> 0 Then 633 Do 634 Parse Value Translate('.' old_parms) With . '/D:' delay_wait '/' . 635 delay_wait = Strip(delay_wait) 636 If delay_wait <> '' & Datatype(delay_wait, 'W') Then 637 ok = VRSetIni( "workplace_shell", "delay_wait", delay_wait, our_ini) 638 End 639 If VRGetIni( "object_desktop", "od_wait", our_ini ) = '' , 640 & Pos('/OD ', Translate(old_parms)) <> 0 , 641 & VRGetIni('WPTS', 'TSMasterSetup:StartupFlags', 'User') <> '' Then 642 ok = VRSetIni( "object_desktop", "od_wait", '1', our_ini ) 643 If VRGetIni( "object_desktop", "od_cc", our_ini) = '' , 644 & Pos('/ODC ', Translate(old_parms)) <> 0 Then 645 ok = VRSetIni( "object_desktop", "od_wait", '1', our_ini ) 646 If VRGetIni( "object_desktop", "od_tlp", our_ini) = '' , 647 & Pos('/ODT ', Translate(old_parms)) <> 0 Then 648 ok = VRSetIni( "object_desktop", "od_wait", '1', our_ini ) 649 If VRGetIni( "object_desktop", "od_tries", our_ini) = '' , 650 & Pos('/OD:', Translate(old_parms)) <> 0 Then 651 Do 652 Parse Value Translate('.' old_parms) With . '/OD:' od_tries '/' . 653 od_tries = Strip(od_tries) 654 If od_tries <> '' & Datatype(od_tries, 'W') Then 655 ok = VRSetIni( "object_desktop", "od_tries", od_tries, our_ini) 656 End 657 If VRGetIni( "folders", "startupfolder", our_ini) = '' , 658 & Pos('/F:', Translate(old_parms)) <> 0 Then 659 Do 660 f_pos = Pos('/F:', Translate(old_parms)) 661 If f_pos <> 0 Then 662 Do 663 Parse Value '.' old_parms With . + (f_pos) + 4 startupfolder '/' . 664 startupfolder = Strip(Strip(Strip(startupfolder), , '"'), , "'") 665 ok = VRSetIni( "folders", "startupfolder", startupfolder, our_ini) 666 End 667 End 668 If VRGetIni( "objects", "retries", our_ini) = '' , 669 & Pos('/R:', Translate(old_parms)) <> 0 Then 670 Do 671 Parse Value Translate('.' old_parms) With . '/R:' retries '/' . 672 retries = Strip(retries) 673 If retries <> '' & Datatype(retries, 'W') Then 674 ok = VRSetIni( "objects", "retries", retries, our_ini) 675 End 676 If VRGetIni( "objects", "sleepsec", our_ini) = '' , 677 & Pos('/P:', Translate(old_parms)) <> 0 Then 678 Do 679 Parse Value Translate('.' old_parms) With . '/P:' sleepsec '/' . 680 sleepsec = Strip(sleepsec) 681 If sleepsec <> '' & Datatype(sleepsec, 'W') Then 682 ok = VRSetIni( "objects", "sleepsec", sleepsec, our_ini) 683 End 684 If VRGetIni( "debug", "log_out", our_ini) = '' , 685 & Pos('/L', Translate(old_parms)) <> 0 Then 686 ok = VRSetIni( "debug", "log_out", '1', our_ini) 687 If VRGetIni( "debug", "verbose", our_ini ) = '' , 688 & Pos('/V', Translate(old_parms)) <> 0 Then 689 ok = VRSetIni( "debug", "verbose", '1', our_ini) 690 ok = VRSetIni( "RexxAutoStart", "migrate", '1', our_ini ) 691 ini_changes = 1 692 End 693 End 694 Return ini_changes 695 /*:VRX Page1_Create 696 */ 697 Page1_Create: 698 Parse Arg no_init 699 p_init = (no_init = '') 700 startup_wait = VRGetIni( "workplace_shell", "startup_wait", our_ini, 'Noclose') 701 If startup_wait = '' Then 702 Do 703 startup_wait = VRGet("CB_startup_wait","set") 704 ini_changes = 1 705 End 706 ok = VRSet("CB_startup_wait","set", startup_wait, "Enabled", VRFileExists( bootdrive || "\startup.cmd" ) ) 707 wps_wait = VRGetIni( "workplace_shell", "wps_wait", our_ini, 'Noclose') 708 If wps_wait = '' Then 709 Do 710 wps_wait = VRGet("CB_wps_wait","set") 711 ini_changes = 1 712 End 713 ok = VRSet("CB_wps_wait","set", wps_wait ) 714 sc_test = Check_startup('WARPCENTER', '<WP_WARPCENTER>', , '<WP_START>') 715 sc_wait = VRGetIni( "workplace_shell", "sc_wait", our_ini, 'Noclose') 716 If sc_wait = '' Then 717 Do 718 sc_wait = sc_test 719 ini_changes = 1 720 End 721 sc_wait = (sc_wait & sc_test) 722 ok = VRSet( "RB_sc_wait","set", sc_wait, "Enabled", sc_test) 723 sc_test = Check_startup(, '<WP_WARPCENTER>', , '<WP_START>') 724 sc_open = VRGetIni( "workplace_shell", "sc_open", our_ini, 'Noclose') 725 If sc_open = '' Then 726 Do 727 sc_open = 0 728 ini_changes = 1 729 End 730 ok = VRSet("RB_sc_open","set",(sc_open & \sc_wait),"Enabled",sc_test) 731 tb_test = Check_startup('TOOLBAR', '<WP_LAUNCHPAD>', , '<WP_START>') 732 tb_wait = VRGetIni( "workplace_shell", "tb_wait", our_ini, 'Noclose') 733 If tb_wait = '' Then 734 Do 735 tb_wait = tb_test 736 ini_changes = 1 737 End 738 tb_wait = (tb_wait & tb_test) 739 ok = VRSet( "RB_tb_wait","set", tb_wait, "Enabled", tb_test) 740 tb_test = Check_startup(, '<WP_LAUNCHPAD>', , '<WP_START>') 741 tb_open = VRGetIni( "workplace_shell", "tb_open", our_ini, 'Noclose') 742 If tb_open = '' Then 743 Do 744 tb_open = 0 745 ini_changes = 1 746 End 747 tb_open = (tb_open & tb_test) 748 ok = VRSet( "RB_tb_open","set",(tb_open & \tb_wait),"Enabled",tb_test) 749 xc_test = Check_startup(,'<XWP_XCENTER>', 'XCenter', '<WP_START>') 750 ec_wait = VRGetIni( "workplace_shell", "ec_wait", our_ini, 'Noclose') 751 If ec_wait <> '' Then 752 Do 753 ok = VRDelIni( "workplace_shell", "ec_wait", our_ini, 'Noclose') Then 754 xc_wait = (ec_wait & xc_test) 755 ok = VRSetIni( "workplace_shell", "xc_wait", xc_wait, our_ini, 'Noclose' ) 756 End 757 xc_wait = VRGetIni( "workplace_shell", "xc_wait", our_ini, 'Noclose') 758 if xc_wait = '' then xc_wait = 0 759 xc_wait = (xc_wait & xc_test) 760 ok = VRSet( "RB_xc_wait","set",xc_wait,"Enabled",xc_test) 761 xc_open = VRGetIni( "workplace_shell", "xc_open", our_ini, 'Noclose') 762 If \Datatype(xc_open, 'B') Then 763 Do 764 xc_open = 0 765 ini_changes = 1 766 End 767 ok = VRSet( "RB_xc_open","set",xc_open,"Enabled",xc_test) 768 delay_wait = VRGetIni( "workplace_shell", "delay_wait", our_ini, 'Noclose') 769 If delay_wait = '' Then 770 Do 771 delay_wait = VRGet("SPIN_delay_wait", "Value") 772 ini_changes = 1 773 End 774 ok = VRSet("SPIN_delay_wait", "Value", delay_wait ) 775 ok = VRSet("CB_delay","Set", (delay_wait > 0)) 776 od_wait = VRGetIni( "object_desktop", "od_wait", our_ini, 'Noclose') 777 If od_wait = '' Then 778 Do 779 od_wait = (VRGetIni('WPTS', 'TSMasterSetup:StartupFlags', 'User') <> '') 780 ini_changes = 1 781 End 782 objdesk = (VRGetIni( "WPTS", "InstallDir", "User" ) <> '') 783 ok = VRSet("CB_ODInstalled","set",objdesk) 784 If objdesk Then 785 Do 786 ok = VRSet("CB_ODInstalled", "caption", "Object Desktop is installed") 787 od_cc = VRGetIni( "object_desktop", "od_cc", our_ini, 'Noclose') 788 If od_cc = '' Then 789 od_cc = 0 790 ok = VRSet("CB_od_cc", "Set", od_cc, "Enabled", WPToolsQueryObject('<OBJD_CONTROLCENTER>')) 791 od_tlp = VRGetIni( "object_desktop", "od_tlp", our_ini ) 792 If od_tlp = '' Then 793 od_tlp = 0 794 ok = VRSet("CB_od_tlp", "Set", od_tlp, "Enabled", WPToolsQueryObject('<OBJD_TABLAUNCHPAD>')) 795 End 796 Else 797 Do 798 ok = VRSet("CB_ODInstalled", "caption", "Object Desktop is not installed") 799 od_cc = 0 800 od_tlp = 0 801 End 802 od_tries = VRGetIni( "object_desktop", "od_tries", our_ini, 'Noclose') 803 If od_tries = '' Then 804 Do 805 od_tries = 30 806 ini_changes = 1 807 End 808 ok = VRSet("SPIN_od_tries","Value", od_tries ) 809 If p_init Then 810 Call Page1_init 811 Return 812 /*:VRX Page1_Init 813 */ 814 Page1_Init: 815 816 return 817 818 /*:VRX Page2_Create 819 */ 820 Page2_create: 821 Parse Arg no_init 822 p_init = (no_init = '') 823 startupfolder = VRGetIni( "folders", "startupfolder", our_ini, 'NoClose') 824 If startupfolder = '' Then 825 Do 826 startupfolder = VRGet( "EF_Startupfolder", "Value" ) 827 ini_changes = 1 828 End 829 ok = VRSet( "EF_Startupfolder", "Value", startupfolder ) 830 xwpstartupfolder = Strip(VRGetIni('XWorkplace', 'XStartupFolders', 'User'), 't', '00'x) 831 xstartupfolder = Strip(VRGetIni( "folders", "XStartupFolders", our_ini, 'NoClose'), 't', '00'x) 832 Select 833 When xwpstartupfolder <> '' Then 834 Do 835 If WPToolsQueryObject('#' || xwpstartupfolder, , , 'szSetupString') Then 836 Do 837 Parse Value '.' szsetupstring With . 'OBJECTID=' xstartupname ';' . 838 xstartupname = Strip(xstartupname) 839 End 840 End 841 When xstartupfolder <> '' Then 842 Do 843 If WPToolsQueryObject('#' || xstartupfolder, , , 'szSetupString') Then 844 Do 845 Parse Value '.' szsetupstring With . 'OBJECTID=' xstartupname ';' . 846 xstartupname = Strip(xstartupname) 847 End 848 End 849 Otherwise 850 xstartupname = VRGet("EF_XStartupfolder", "Value" ) 851 End 852 ok = VRSet("EF_XStartupfolder","Value", xstartupname ) 853 enablexstart = VRGetIni( "folders", "enablexstart", our_ini, 'NoClose') 854 If enablexstart = '' Then 855 Do 856 enablexstart = 0 857 ini_changes = 1 858 End 859 ok = VRSet("CB_EnableXStartupfolder", "Set", enablexstart,"Enabled", xwpstartupfolder <> '' | xstartupfolder <> '' ) 860 retries = VRGetIni( "objects", "retries", our_ini, 'Noclose') 861 If retries = '' Then 862 Do 863 retries = 2 864 ini_changes = 1 865 End 866 ok = VRSet("SPIN_retries","Value", retries ) 867 sleepsec = VRGetIni( "objects", "sleepsec", our_ini, 'Noclose') 868 If sleepsec = '' Then 869 Do 870 sleepsec = VRGet("SPIN_sleepsec","Value") 871 ini_changes = 1 872 End 873 ok = VRSet("SPIN_sleepsec","Value", sleepsec ) 874 enablelanstart = VRGetIni( "folders", "enablelanstart", our_ini, 'NoClose') 875 If enablelanstart = '' Then 876 Do 877 enablelanstart = VRGet("CB_EnableLANStartupfolder","Set") 878 ini_changes = 1 879 End 880 ok = VRSet("CB_EnableLANStartupfolder","Set", enablelanstart ) 881 simplelogononly = VRGetIni( "folders", "simplelogononly", our_ini, 'NoClose') 882 If simplelogononly = '' Then 883 Do 884 simplelogononly = VRGet("CB_SimpleLogonOnly","Set") 885 ini_changes = 1 886 End 887 If \enablelanstart Then 888 Do 889 simplelogononly = 0 890 ini_changes = 1 891 End 892 ok = VRSet("CB_SimpleLogonOnly","Set", simplelogononly, "Enabled", enablelanstart ) 893 lanstartupfolder = VRGetIni( "folders", "lanstartupfolder", our_ini, 'NoClose') 894 If lanstartupfolder = '' Then 895 Do 896 lanstartupfolder = VRGet("EF_LANStartupfolder","Value") 897 ini_changes = 1 898 End 899 ok = VRSet("EF_LANStartupfolder","Value", lanstartupfolder,"Enabled", enablelanstart ) 900 ls_sleepsec = VRGetIni( "objects", "ls_sleepsec", our_ini, 'Noclose') 901 If ls_sleepsec = '' Then 902 Do 903 ls_sleepsec = VRGet("SPIN_ls_sleepsec","Value") 904 ini_changes = 1 905 End 906 ok = VRSet("SPIN_ls_sleepsec","Value", ls_sleepsec,"Enabled", enablelanstart ) 907 ls_retries = VRGetIni( "objects", "ls_retries", our_ini, 'Noclose') 908 If ls_retries = '' Then 909 Do 910 ls_retries = VRGet("SPIN_ls_retries","Value") 911 ini_changes = 1 912 End 913 ok = VRSet("SPIN_ls_retries","Value", ls_retries,"Enabled", enablelanstart ) 914 If p_init Then 915 Call Page2_init 916 Return 917 /*:VRX Page2_init 918 */ 919 Page2_init: 920 921 return 922 923 /*:VRX Page3_Create 924 */ 925 Page3_create: 926 Parse Arg no_init 927 p_init = (no_init = '') 928 log_out = VRGetIni( "debug", "log_out", our_ini, 'Noclose') 929 If log_out = '' Then 930 Do 931 log_out = VRGet("CB_log_out","set") 932 ini_changes = 1 933 End 934 ok = VRSet("CB_log_out","set", log_out ) 935 verbose = VRGetIni( "debug", "verbose", our_ini, 'NoClose') 936 If verbose = '' Then 937 Do 938 verbose = VRGet("CB_verbose","set") 939 ini_changes = 1 940 End 941 ok = VRSet("CB_verbose","set", verbose ) 942 sound = VRGetIni( "RexxAutoStart", "Sound", our_ini ) 943 If sound = '' Then 944 Do 945 sound = VRGet("CB_sound","set") 946 ini_changes = 1 947 End 948 ok = VRSet("CB_sound","set", sound ) 949 sound_open = VRGetIni( "sound", "open", our_ini ) 950 If sound_open = '' Then 951 Do 952 sound_open = "683" 953 ini_changes = 1 954 End 955 sound_done = VRGetIni( "sound", "done", our_ini ) 956 If sound_done = '' Then 957 Do 958 sound_done = "681" 959 ini_changes = 1 960 End 961 sound_abort = VRGetIni( "sound", "abort", our_ini ) 962 If sound_abort = '' Then 963 Do 964 sound_abort = "682" 965 ini_changes = 1 966 End 967 sound_start = VRGetIni( "sound", "start", our_ini ) 968 If sound_start = '' Then 969 Do 970 sound_start = "684" 971 ini_changes = 1 972 End 973 If p_init Then 974 Call Page3_init 975 Return 976 /*:VRX Page3_Init 977 */ 978 Page3_Init: 979 980 return 981 982 /*:VRX Page4_Create 983 */ 984 Page4_Create: 985 Parse Arg no_init 986 p_init = (no_init = '') 987 Parse Value(_rxfindlines('restartobjects=', config_sys)) , 988 With line_no . '=' next_restart '|' . 989 current_restart = Translate(Value('restartobjects', , 'os2environment')) 990 If line_no \= 0 Then 991 Do 992 ok = VRSet( "DT_RestartObjects", "Caption", next_restart ) 993 If next_restart = current_restart Then 994 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", "" ) 995 Else 996 Do 997 If current_restart = '' Then 998 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", "not found" ) 999 Else 1000 Do 1001 ok = VRSet( "DT_RestartObjects", "Caption", next_restart "(next boot)") 1002 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", current_restart "(current)" ) 1003 End 1004 End 1005 End 1006 Else 1007 Do 1008 ok = VRSet( "DT_RestartObjects", "Caption", "not found" ) 1009 If current_restart \= '' Then 1010 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", current_restart "(current)" ) 1011 End 1012 Parse Value(_rxfindlines('autostart=', config_sys)) , 1013 With line_no . '=' next_autostart '|' . 1014 If next_autostart <> new_autostart Then 1015 next_autostart = new_autostart 1016 current_autostart = Translate(Value('autostart', , 'os2environment')) 1017 If line_no \= 0 Then 1018 Do 1019 ok = VRSet( "DT_AutoStart", "Caption", next_autostart ) 1020 If next_autostart = current_autostart Then 1021 ok = VRSet( "DT_AutoStartCurrent", "Caption", "" ) 1022 Else 1023 Do 1024 If current_autostart = '' Then 1025 ok = VRSet( "DT_AutoStartCurrent", "Caption", "not found" ) 1026 Else 1027 Do 1028 ok = VRSet( "DT_AutoStart", "Caption", next_autostart "(next boot)") 1029 ok = VRSet( "DT_AutoStartCurrent", "Caption", current_autostart "(current)" ) 1030 End 1031 End 1032 End 1033 Else 1034 Do 1035 ok = VRSet( "DT_AutoStart", "Caption", "not found" ) 1036 If current_line \= '' Then 1037 ok = VRSet( "DT_AutoStartCurrent", "Caption", current_autostart "(current)" ) 1038 End 1039 file_lines. = '' 1040 file_lines.0 = 0 1041 Parse Value(_rxfindlines('rxautost.exe', startup_cmd)) , 1042 With rxautost_line_no line '|' . 1043 If rxautost_line_no \= 0 , 1044 & Pos(startup_line, line) = 0 Then 1045 Do 1046 xrc = _rxupdline(rxautost_line_no, 'REM' line, startup_cmd, 'replace', 'close') 1047 rxautost_line_no = 0 1048 End 1049 If rxautost_line_no \= 0 Then 1050 ok = VRSet( "DT_StartupCmd", "Caption", line ) 1051 Else 1052 ok = VRSet( "DT_StartupCmd", "Caption", "Rexx Autostart not active" ) 1053 If VRFileExists(startup_cmd) Then 1054 Do 1055 isrexx = Abbrev(Charin(startup_cmd, 1, 2), '/*') 1056 Call Stream startup_cmd, 'c', 'close' 1057 End 1058 Else 1059 isrexx = 0 1060 If VRFileExists( our_log ) Then 1061 Do 1062 log_lines = 0 1063 Do While Lines(our_log) 1064 junk = Linein(our_log) 1065 log_lines = log_lines + 1 1066 End 1067 ok = VRSet( "DT_LogRecords", "Caption", log_lines "lines" ) 1068 End 1069 Else 1070 ok = VRSet( "DT_LogRecords", "Caption", "does not exist" ) 1071 Parse Value(_rxfindlines('restartobjects=no', config_sys)) , 1072 With restart_line_no . 1073 If rxautost_line_no \= 0 & restart_line_no \= 0 Then 1074 Do 1075 ok = VRSet( "DT_RexxAutostartStatus", "Caption", "Rexx Autostart enabled" ) 1076 ok = VRSet( "RB_RexxAutostartActivate", "Enabled", 0 ) 1077 ok = VRSet( "RB_RexxAutostartDeactivate", "Enabled", 1 ) 1078 End 1079 Else 1080 Do 1081 ok = VRSet( "DT_RexxAutostartStatus", "Caption", "Rexx Autostart disabled" ) 1082 ok = VRSet( "RB_RexxAutostartActivate", "Enabled", 1 ) 1083 ok = VRSet( "RB_RexxAutostartDeactivate", "Enabled", 0 ) 1084 End 1085 If p_init Then 1086 Call Page4_init 1087 Return 1088 /*:VRX Page4_init 1089 */ 1090 Page4_init: 1091 1092 return 1093 1094 /*:VRX Page5_Create 1095 */ 1096 Page5_Create: 1097 1098 return 1099 1100 /*:VRX PB_Cancel_Click 1101 */ 1102 PB_Cancel_Click: 725 1103 Call Quit 726 Return 727 728 /*:VRX MenuHelp_Click 729 */ 730 Menuhelp_click: 731 732 Return 733 734 /*:VRX MenuHelpAbout_Click 735 */ 736 Menuhelpabout_click: 737 window = Vrloadsecondary( "AboutBox", "W" ) 738 Return 739 740 /*:VRX MenuHelpViewManual_Click 741 */ 742 Menuhelpviewmanual_click: 1104 return 1105 1106 /*:VRX PB_Help_Click 1107 */ 1108 PB_Help_Click: 743 1109 'view rxautost.inf' 744 Return 745 746 /*:VRX MenuRexxAutostartActivate_Click 747 */ 748 Menurexxautostartactivate_click: Procedure Expose bootdrive file_lines. isrexx ini_changes 749 config_file = bootdrive || '\config.sys' 750 startup_file = bootdrive || '\startup.cmd' 1110 return 1111 1112 /*:VRX PB_InstallSound_Click 1113 */ 1114 Pb_installsound_click: 1115 /* This routine is loosely based on Mr. XWPS, Ulrich Mller's sound001.cmd */ 1116 1117 /* enable new RexxAutoStart system sound */ 1118 mmini = SysBootDrive()||"\MMOS2\MMPM.INI" 1119 1120 /* these are the titles of the sounds to be created */ 1121 rexxautostart_done = "RexxAutoStart: Done" 1122 rexxautostart_abort = "RexxAutoStart: Abort" 1123 rexxautostart_open = "RexxAutoStart: Open object" 1124 rexxautostart_start = "RexxAutoStart: Start" 1125 1126 /* Create empty sound entries */ 1127 rc = SysIni(mmini, "MMPM2_AlarmSounds", "681", "#"|| rexxautostart_done ||"#70") 1128 rc = SysIni(mmini, "MMPM2_AlarmSounds", "682", "#"|| rexxautostart_abort||"#70") 1129 rc = SysIni(mmini, "MMPM2_AlarmSounds", "683", "#"|| rexxautostart_open ||"#70") 1130 rc = SysIni(mmini, "MMPM2_AlarmSounds", "684", "#"|| rexxautostart_start ||"#70") 1131 1132 /* open WP_SOUND */ 1133 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1) 1134 Return 1135 1136 /*:VRX PB_Set_Click 1137 */ 1138 PB_Set_Click: 1139 Call _iniwrite 1140 buttons.1 = "OK" 1141 buttons.0 = 1 1142 id = VRMessage( VRWindow(), "Saving of options to RxAutoSt.INI complete", "Saving RexxAutoStart options", "Information", "Buttons.", 1, 1 ) 1143 return 1144 1145 /*:VRX PB_SoundConfig_Click 1146 */ 1147 Pb_soundconfig_click: 1148 /* open WP_SOUND */ 1149 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1) 1150 Return 1151 1152 /*:VRX PB_Undo_Click 1153 */ 1154 PB_Undo_Click: 1155 Call Page1_create 'no_init' 1156 Call Page2_create 'no_init' 1157 Call Page3_create 'no_init' 1158 Call Page4_create 'no_init' 1159 return 1160 1161 /*:VRX PB_UnInstallSound_Click 1162 */ 1163 Pb_uninstallsound_click: 1164 mmini = SysBootDrive()||"\MMOS2\MMPM.INI" 1165 Do i = 681 To 684 1166 rc = SysIni(mmini, "MMPM2_AlarmSounds", i, "DELETE:") 1167 End 1168 1169 /* open WP_SOUND */ 1170 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1) 1171 Return 1172 1173 /*:VRX PushbackAll 1174 */ 1175 PushbackAll: 1176 Pages = 5 1177 Delta = 400 /* This is the base distance between menubar an Page */ 1178 1179 /* Tab Position */ 1180 TabWidth = VRget("TAB_1","Width") 1181 TabHeight= VRget("TAB_1","Height") 1182 TabTop = Delta - TabHeight 1183 1184 /* Page Position */ 1185 PageLeft = 120 1186 PageTop = PageLeft + Delta 1187 1188 /* Page size */ 1189 PageHeight = 4000 1190 PageWidth = 5500 1191 ok = VRset("DT_PageName", "Caption", "") 1192 ok = VRSet("GB_Main","Left", 0) 1193 ok = VRSet("GB_Main","Top", Delta - 60) 1194 1195 do I = 1 to Pages 1196 ok = VRSet("TAB_"I,"Top", TabTop) 1197 ok = VRSet("TAB_"I,"PicturePath","#2"||I) 1198 ok = VRSet("TAB_"I,"Left",TabWidth*(I-1)+PageLeft) 1199 ok = VRSet("TAB_"I,"Width",TabWidth) 1200 ok = VRSet("TAB_"I,"Height",TabHeight) 1201 ok = VRSet("Page_"I,"Height", PageHeight) 1202 ok = VRSet("Page_"I,"Width", PageWidth) 1203 ok = VRSet("Page_"I,"Left", PageLeft) 1204 ok = VRSet("Page_"I,"Top", PageTop) 1205 ok = VRSet("Page_"I,"Visible", 0) 1206 ok = VRSet("Page_"I,"BackColor", "<default>") 1207 end 1208 return 1209 1210 /*:VRX Quit 1211 */ 1212 Quit: 1213 call QuitRxAutoUt 1214 window = VRWindow() 1215 call VRSet window, "Shutdown", 1 1216 drop window 1217 return 1218 1219 /*:VRX QuitRxAutoUt 1220 */ 1221 QuitRxAutoUt: 1222 If ini_changes Then 1223 Do 1224 buttons.1 = "Yes" 1225 buttons.2 = "Discard" 1226 buttons.3 = "Cancel" 1227 buttons.0 = 3 1228 id = VRMessage( VRWindow(), "Save changes made before exiting RexxAutoStart Setup Utility?", "Save RexxAutoStart Options", "Query", "Buttons.", 1, 3 ) 1229 If id = 1 Then 1230 Call _INIWrite 1231 If id = 3 Then 1232 Return 1233 End 1234 return 1235 1236 /*:VRX RB_RexxAutostartActivate_Click 1237 */ 1238 RB_rexxautostartactivate_click: Procedure Expose bootdrive file_lines. isrexx ini_changes startup_line 1239 config_sys = bootdrive || '\config.sys' 1240 startup_cmd = bootdrive || '\startup.cmd' 751 1241 /* update CONFIG.SYS */ 752 Parse Value(_rxfindlines('restartobjects=no', config_ file)) ,1242 Parse Value(_rxfindlines('restartobjects=no', config_sys)) , 753 1243 With restart_line_no restart_line '|' restart_line_rem 754 1244 If restart_line_no = 0 Then … … 756 1246 file_lines. = '' 757 1247 file_lines.0 = 0 758 Parse Value(_rxfindlines('restartobjects=', config_ file)) ,1248 Parse Value(_rxfindlines('restartobjects=', config_sys)) , 759 1249 With restart_line_no restart_line '|' . 760 1250 /* REM out the current SET RESTARTOBJECTS= line */ 761 1251 restart_line = 'REM' restart_line 762 xrc = _rxupdline(restart_line_no, restart_line, config_ file)1252 xrc = _rxupdline(restart_line_no, restart_line, config_sys) 763 1253 /* do we have a SET RESTARTOBJECTS=NO line? */ 764 1254 save_restart_line_no = restart_line_no … … 775 1265 action = 'insert' 776 1266 End 777 xrc = _rxupdline(restart_line_no, restart_line, config_ file, action, 'close')1267 xrc = _rxupdline(restart_line_no, restart_line, config_sys, action, 'close') 778 1268 End 779 1269 Else … … 785 1275 file_lines. = '' 786 1276 file_lines.0 = 0 787 startup_line = '@START /MIN' Directory() || '\RxAutoSt.EXE'788 1277 If isrexx Then 789 1278 startup_line = 'Address cmd' '"' || startup_line || '"' 790 /* do we have a startup.cmd file ? */791 If Stream(startup_ file, 'c', 'query exists') \= '' Then792 Do 793 Parse Value(_rxfindlines('rxautost.exe', startup_ file)) With ,794 startup_line_no .'|' startup_line_rem1279 /* do we have a startup.cmd file ? */ 1280 If Stream(startup_cmd, 'c', 'query exists') \= '' Then 1281 Do 1282 Parse Value(_rxfindlines('rxautost.exe', startup_cmd)) With , 1283 startup_line_no startup_line_current '|' startup_line_rem 795 1284 /* do we have a rxautost.exe line? */ 796 1285 If startup_line_no = 0 Then … … 807 1296 startup_line_no = 0 808 1297 End 809 xrc = _rxupdline(startup_line_no, startup_line, startup_ file, action, 'close')1298 xrc = _rxupdline(startup_line_no, startup_line, startup_cmd, action, 'close') 810 1299 End 1300 Else 1301 Do 1302 If Pos(startup_line, startup_line_current) = 0 Then 1303 xrc = _rxupdline(startup_line_no, startup_line, startup_cmd, 'replace', 'close') 1304 End 811 1305 End 812 1306 Else 813 1307 Do 814 xrc = _rxupdline(0, 'REM * * * added by RxAutoUt * * *', startup_file, 'insert') 815 xrc = _rxupdline(1, startup_line, startup_file, 'insert') 816 xrc = _rxupdline(2, 'EXIT', startup_file, 'insert', 'close') 817 End 818 End 819 Else 820 id = VRMessage( VRWindow(), "Update of" startup_file "bypassed due to failure to update" config_file, "", "Information", "", , ) 821 Call _setpage4 822 ini_changes = 1 823 Return 824 825 /*:VRX MenuRexxAutostartDeactivate_Click 826 */ 827 Menurexxautostartdeactivate_click: Procedure Expose bootdrive file_lines. isrexx , 1308 xrc = _rxupdline(0, 'REM * * * added by RxAutoUt * * *', startup_cmd, 'insert') 1309 xrc = _rxupdline(1, startup_line, startup_cmd, 'insert') 1310 xrc = _rxupdline(2, 'EXIT', startup_cmd, 'insert', 'close') 1311 End 1312 End 1313 Else 1314 id = VRMessage( VRWindow(), "Update of" startup_cmd "bypassed due to failure to update" config_sys, "", "Information", "", , ) 1315 Call Page4_create 'no_init' 1316 ini_changes = 1 1317 Return 1318 /*:VRX RB_RexxAutostartDeActivate_Click 1319 */ 1320 RB_rexxautostartdeactivate_click: Procedure Expose bootdrive file_lines. isrexx , 828 1321 enablexstart ini_changes 829 config_ file= bootdrive || '\config.sys'830 startup_ file= bootdrive || '\startup.cmd'1322 config_sys = bootdrive || '\config.sys' 1323 startup_cmd = bootdrive || '\startup.cmd' 831 1324 /* update CONFIG.SYS */ 832 Parse Value(_rxfindlines('restartobjects=no', config_ file)) With ,1325 Parse Value(_rxfindlines('restartobjects=no', config_sys)) With , 833 1326 restart_line_no restart_line '|' restart_line_rem 834 1327 If restart_line_no \= 0 Then … … 838 1331 /* REM out the SET RESTARTOBJECTS=NO line */ 839 1332 restart_line = 'REM' restart_line 840 xrc = _rxupdline(restart_line_no, restart_line, config_ file)1333 xrc = _rxupdline(restart_line_no, restart_line, config_sys) 841 1334 save_restart_line_no = restart_line_no 842 1335 /* do we have a SET RESTARTOBJECTS=STARTUPFOLDERSONLY line? */ 843 Parse Value(_rxfindlines('restartobjects=startupfoldersonly', config_file)) With ,1336 Parse Value(_rxfindlines('restartobjects=startupfoldersonly',config_sys)) With , 844 1337 restart_line_no restart_line '|' restart_line_rem 845 1338 If Words(restart_line_rem) \= 0 Then … … 855 1348 action = 'insert' 856 1349 End 857 xrc = _rxupdline(restart_line_no, restart_line, config_ file, action, 'close')1350 xrc = _rxupdline(restart_line_no, restart_line, config_sys, action, 'close') 858 1351 End 859 1352 Else … … 865 1358 file_lines. = '' 866 1359 file_lines.0 = 0 867 Parse Value(_rxfindlines('rxautost.exe', startup_ file)) With ,1360 Parse Value(_rxfindlines('rxautost.exe', startup_cmd)) With , 868 1361 startup_line_no startup_line '|' startup_line_rem 869 1362 If startup_line_no \= 0 Then … … 873 1366 Else 874 1367 startup_line = '/*' startup_line '*/' 875 xrc = _rxupdline(startup_line_no, startup_line, startup_ file, , 'close')1368 xrc = _rxupdline(startup_line_no, startup_line, startup_cmd, , 'close') 876 1369 End 877 1370 xrc = 1 878 1371 End 879 1372 Else 880 id = VRMessage( VRWindow(), "Update of" startup_ file "bypassed due to failure to update" config_file, "", "Information", "", , )881 Call _setpage41373 id = VRMessage( VRWindow(), "Update of" startup_cmd "bypassed due to failure to update" config_sys, "", "Information", "", , ) 1374 Call Page4_create 'no_init' 882 1375 If enablexstart Then 883 1376 enablexstart = 0 884 1377 ini_changes = 1 885 1378 Return 0 886 887 /*:VRX Page1_Close 888 */ 889 Page1_close: 890 Call Page1_fini 891 Return 892 893 /*:VRX Page1_Create 894 */ 895 Page1_create: 896 Parse Arg no_init 897 p_init = (no_init = '') 898 wps_wait = VRGetIni( "workplace_shell", "wps_wait", our_ini, 'Noclose') 899 If wps_wait = '' Then 900 Do 901 wps_wait = VRGet("CB_wps_wait","set") 902 ini_changes = 1 903 End 904 ok = VRGet("CB_wps_wait","set", wps_wait ) 905 sc_wait = VRGetIni( "workplace_shell", "sc_wait", our_ini, 'Noclose') 906 If sc_wait = '' Then 907 Do 908 sc_wait = Pos('WARPCENTER', Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) <> 0 909 ini_changes = 1 910 End 911 ok = VRSet("CB_sc_wait","set", sc_wait ) 912 ok = VRSet( "CB_sc_wait", "Enabled", sc_wait ) 913 tb_wait = VRGetIni( "workplace_shell", "tb_wait", our_ini, 'Noclose') 914 If tb_wait = '' Then 915 Do 916 tb_wait = Pos('TOOLBAR', Translate(Value('AUTOSTART', , 'OS2ENVIRONMENT'))) <> 0 917 ini_changes = 1 918 End 919 ok = VRSet( "CB_tb_wait","set", tb_wait ) 920 ok = VRSet( "CB_tb_wait", "Enabled", tb_wait ) 921 xc_wait = VRGetIni( "workplace_shell", "xc_wait", our_ini, 'Noclose') 922 If xc_wait = '' Then 923 Do 924 xc_wait = VRGet("CB_xc_wait", "Set") 925 ini_changes = 1 926 End 927 ok = VRSet( "CB_xc_wait","set", xc_wait ) 928 ok = VRSet( "CB_xc_wait", "Enabled", WPToolsQueryObject('<XWP_XCENTER>') ) 929 delay_wait = VRGetIni( "workplace_shell", "delay_wait", our_ini, 'Noclose') 930 If delay_wait = '' Then 931 Do 932 delay_wait = VRGet("SPIN_delay_wait", "Value") 933 ini_changes = 1 934 End 935 ok = VRSet("SPIN_delay_wait", "Value", delay_wait ) 936 ok = VRSet("CB_delay","Set", (delay_wait > 0)) 937 od_wait = VRGetIni( "object_desktop", "od_wait", our_ini, 'Noclose') 938 If od_wait = '' Then 939 Do 940 od_wait = 0 941 ini_changes = 1 942 End 943 objdesk = VRGetIni( "WPTS", "InstallDir", "User" ) <> '' 944 ok = VRSet("CB_ODInstalled","set",objdesk) 945 If objdesk Then 946 Do 947 ok = VRSet("CB_ODInstalled", "caption", "Object Desktop is installed") 948 od_cc = VRGetIni( "object_desktop", "od_cc", our_ini, 'Noclose') 949 If od_cc = '' Then 950 od_cc = 0 951 ok = VRSet("CB_od_cc", "Set", od_cc) 952 ok = VRSet("CB_od_cc", "Enabled", WPToolsQueryObject('<OBJD_CONTROLCENTER>')) 953 od_tlp = VRGetIni( "object_desktop", "od_tlp", our_ini ) 954 If od_tlp = '' Then 955 od_tlp = 0 956 ok = VRSet("CB_od_tlp", "Set", od_tlp) 957 ok = VRSet("CB_od_tlp", "Enabled", WPToolsQueryObject('<OBJD_TABLAUNCHPAD>')) 958 End 959 Else 960 ok = VRSet("CB_ODInstalled", "caption", "Object Desktop is not installed") 961 od_tries = VRGetIni( "object_desktop", "od_tries", our_ini, 'Noclose') 962 If od_tries = '' Then 963 Do 964 od_tries = 30 965 ini_changes = 1 966 End 967 ok = VRSet("SPIN_od_tries","Value", od_tries ) 968 od_wait = VRGetIni( "object_desktop", "od_wait", our_ini, 'Noclose') 969 If p_init Then 970 Call Page1_init 971 Return 972 973 /*:VRX Page1_Fini 974 */ 975 Page1_fini: 976 window = VRInfo( "Window" ) 977 Call VRDestroy window 978 Drop window 979 Return 980 /*:VRX Page1_Init 981 */ 982 Page1_init: 983 window = VRInfo( "Object" ) 984 If( \VRIsChildOf( window, "Notebook" ) ) Then 985 Do 986 Call VRMethod window, "CenterWindow" 987 Call VRSet window, "Visible", 1 988 Call VRMethod window, "Activate" 989 End 990 Drop window 991 Return 992 993 /*:VRX Page2_Close 994 */ 995 Page2_close: 996 Call Page1_fini 997 Return 998 999 /*:VRX Page2_Create 1000 */ 1001 Page2_create: 1002 Parse Arg no_init 1003 p_init = (no_init = '') 1004 startupfolder = VRGetIni( "folders", "startupfolder", our_ini, 'NoClose') 1005 If startupfolder = '' Then 1006 Do 1007 startupfolder = VRGet( "EF_Startupfolder", "Value" ) 1008 ini_changes = 1 1009 End 1010 ok = VRSet( "EF_Startupfolder", "Value", startupfolder ) 1011 xwpstartupfolder = Strip(VRGetIni('XWorkplace', 'XStartupFolders', 'User'), 't', '00'x) 1012 xstartupfolder = Strip(VRGetIni( "folders", "XStartupFolders", our_ini, 'NoClose'), 't', '00'x) 1013 Select 1014 When xwpstartupfolder <> '' Then 1015 Do 1016 If WPToolsQueryObject('#' || xwpstartupfolder, , , 'szSetupString') Then 1017 Do 1018 Parse Value '.' szSetupString With . 'OBJECTID=' xstartupname ';' . 1019 xstartupname = Strip(xstartupname) 1020 End 1021 End 1022 When xstartupfolder <> '' Then 1023 Do 1024 If WPToolsQueryObject('#' || xstartupfolder, , , 'szSetupString') Then 1025 Do 1026 Parse Value '.' szSetupString With . 'OBJECTID=' xstartupname ';' . 1027 xstartupname = Strip(xstartupname) 1028 End 1029 End 1030 Otherwise 1031 xstartupname = VRGet("EF_XStartupfolder", "Value" ) 1032 End 1033 ok = VRSet("EF_XStartupfolder","Value", xstartupname ) 1034 enablexstart = VRGetIni( "folders", "enablexstart", our_ini, 'NoClose') 1035 If enablexstart = '' Then 1036 Do 1037 enablexstart = 0 1038 ini_changes = 1 1039 End 1040 ok = VRSet("CB_EnableXStartupfolder", "Set", enablexstart ) 1041 ok = VRSet("CB_EnableXStartupfolder","Enabled", xwpstartupfolder <> '' | xstartupfolder <> '' ) 1042 retries = VRGetIni( "objects", "retries", our_ini, 'Noclose') 1043 If retries = '' Then 1044 Do 1045 retries = 2 1046 ini_changes = 1 1047 End 1048 ok = VRSet("SPIN_retries","Value", retries ) 1049 sleepsec = VRGetIni( "objects", "sleepsec", our_ini, 'Noclose') 1050 If sleepsec = '' Then 1051 Do 1052 sleepsec = VRGet("SPIN_sleepsec","Value") 1053 ini_changes = 1 1054 End 1055 ok = VRSet("SPIN_sleepsec","Value", sleepsec ) 1056 enablelanstart = VRGetIni( "folders", "enablelanstart", our_ini, 'NoClose') 1057 If enablelanstart = '' Then 1058 Do 1059 enablelanstart = VRGet("CB_EnableLANStartupfolder","Set") 1060 ini_changes = 1 1061 End 1062 ok = VRSet("CB_EnableLANStartupfolder","Set", enablelanstart ) 1063 simplelogononly = VRGetIni( "folders", "simplelogononly", our_ini, 'NoClose') 1064 If simplelogononly = '' Then 1065 Do 1066 simplelogononly = VRGet("CB_SimpleLogonOnly","Set") 1067 ini_changes = 1 1068 End 1069 If \enablelanstart Then 1070 Do 1071 simplelogononly = 0 1072 ini_changes = 1 1073 End 1074 ok = VRSet("CB_SimpleLogonOnly","Set", simplelogononly) 1075 ok = VRSet( "CB_SimpleLogonOnly", "Enabled", enablelanstart ) 1076 lanstartupfolder = VRGetIni( "folders", "lanstartupfolder", our_ini, 'NoClose') 1077 If lanstartupfolder = '' Then 1078 Do 1079 lanstartupfolder = VRGet("EF_LANStartupfolder","Value") 1080 ini_changes = 1 1081 End 1082 ok = VRSet("EF_LANStartupfolder","Value", lanstartupfolder ) 1083 ok = VRSet("EF_LANStartupfolder","Enabled", enablelanstart ) 1084 ls_sleepsec = VRGetIni( "objects", "ls_sleepsec", our_ini, 'Noclose') 1085 If ls_sleepsec = '' Then 1086 Do 1087 ls_sleepsec = VRGet("SPIN_ls_sleepsec","Value") 1088 ini_changes = 1 1089 End 1090 ok = VRSet("SPIN_ls_sleepsec","Value", ls_sleepsec ) 1091 ok = VRSet("SPIN_ls_sleepsec","Enabled", enablelanstart ) 1092 ls_retries = VRGetIni( "objects", "ls_retries", our_ini, 'Noclose') 1093 If ls_retries = '' Then 1094 Do 1095 ls_retries = VRGet("SPIN_ls_retries","Value") 1096 ini_changes = 1 1097 End 1098 ok = VRSet("SPIN_ls_retries","Value", ls_retries ) 1099 ok = VRSet("SPIN_ls_retries","Enabled", enablelanstart ) 1100 If p_init Then 1101 Call Page2_init 1102 Return 1103 1104 /*:VRX Page2_Fini 1105 */ 1106 Page2_fini: 1107 window = VRInfo( "Window" ) 1108 Call VRDestroy window 1109 Drop window 1110 Return 1111 /*:VRX Page2_Init 1112 */ 1113 Page2_init: 1114 window = VRInfo( "Object" ) 1115 If( \VRIsChildOf( window, "Notebook" ) ) Then 1116 Do 1117 Call VRMethod window, "CenterWindow" 1118 Call VRSet window, "Visible", 1 1119 Call VRMethod window, "Activate" 1120 End 1121 Drop window 1122 Return 1123 1124 /*:VRX Page3_Close 1125 */ 1126 Page3_close: 1127 Call Page3_fini 1128 Return 1129 1130 /*:VRX Page3_Create 1131 */ 1132 Page3_create: 1133 Parse Arg no_init 1134 p_init = (no_init = '') 1135 log_out = VRGetIni( "debug", "log_out", our_ini, 'Noclose') 1136 If log_out = '' Then 1137 Do 1138 log_out = VRGet("CB_log_out","set") 1139 ini_changes = 1 1140 End 1141 ok = VRSet("CB_log_out","set", log_out ) 1142 verbose = VRGetIni( "debug", "verbose", our_ini, 'NoClose') 1143 If verbose = '' Then 1144 Do 1145 verbose = VRGet("CB_verbose","set") 1146 ini_changes = 1 1147 End 1148 ok = VRSet("CB_verbose","set", verbose ) 1149 sound = VRGetIni( "RexxAutoStart", "Sound", our_ini ) 1150 If sound = '' Then 1151 Do 1152 sound = VRGet("CB_sound","set") 1153 ini_changes = 1 1154 End 1155 ok = VRSet("CB_sound","set", sound ) 1156 sound_open = VRGetIni( "sound", "open", our_ini ) 1157 If sound_open = '' Then 1158 Do 1159 sound_open = "683" 1160 ini_changes = 1 1161 End 1162 sound_done = VRGetIni( "sound", "done", our_ini ) 1163 If sound_done = '' Then 1164 Do 1165 sound_done = "681" 1166 ini_changes = 1 1167 End 1168 sound_abort = VRGetIni( "sound", "abort", our_ini ) 1169 If sound_abort = '' Then 1170 Do 1171 sound_abort = "682" 1172 ini_changes = 1 1173 End 1174 sound_start = VRGetIni( "sound", "start", our_ini ) 1175 If sound_start = '' Then 1176 Do 1177 sound_start = "684" 1178 ini_changes = 1 1179 End 1180 If p_init Then 1181 Call Page3_init 1182 Return 1183 1184 /*:VRX Page3_Fini 1185 */ 1186 Page3_fini: 1187 window = VRInfo( "Window" ) 1188 Call VRDestroy window 1189 Drop window 1190 Return 1191 /*:VRX Page3_Init 1192 */ 1193 Page3_init: 1194 window = VRInfo( "Object" ) 1195 If( \VRIsChildOf( window, "Notebook" ) ) Then 1196 Do 1197 Call VRMethod window, "CenterWindow" 1198 Call VRSet window, "Visible", 1 1199 Call VRMethod window, "Activate" 1200 End 1201 Drop window 1202 Return 1203 1204 /*:VRX Page4_Close 1205 */ 1206 Page4_close: 1207 Call Page4_fini 1208 Return 1209 1210 /*:VRX Page4_Create 1211 */ 1212 Page4_create: 1213 Parse Arg no_init 1214 p_init = (no_init = '') 1215 Parse Value(_rxfindlines('restartobjects=', bootdrive || '\config.sys')) , 1216 With line_no . '=' line '|' . 1217 current_line = Translate(Value('restartobjects', , 'os2environment')) 1218 If line_no \= 0 Then 1219 Do 1220 ok = VRSet( "DT_RestartObjects", "Caption", line ) 1221 If line = current_line Then 1222 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", "" ) 1223 Else 1224 Do 1225 If current_line = '' Then 1226 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", "not found" ) 1227 Else 1228 Do 1229 ok = VRSet( "DT_RestartObjects", "Caption", line "(next boot)") 1230 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", current_line "(current)" ) 1231 End 1232 End 1233 End 1234 Else 1235 Do 1236 ok = VRSet( "DT_RestartObjects", "Caption", "not found" ) 1237 If current_line \= '' Then 1238 ok = VRSet( "DT_RestartObjectsCurrent", "Caption", current_line "(current)" ) 1239 End 1240 Parse Value(_rxfindlines('autostart=', bootdrive || '\config.sys')) , 1241 With line_no . '=' line '|' . 1242 current_line = Translate(Value('autostart', , 'os2environment')) 1243 If line_no \= 0 Then 1244 Do 1245 ok = VRSet( "DT_AutoStart", "Caption", line ) 1246 If line = current_line Then 1247 ok = VRSet( "DT_AutoStartCurrent", "Caption", "" ) 1248 Else 1249 Do 1250 If current_line = '' Then 1251 ok = VRSet( "DT_AutoStartCurrent", "Caption", "not found" ) 1252 Else 1253 Do 1254 ok = VRSet( "DT_AutoStart", "Caption", line "(next boot)") 1255 ok = VRSet( "DT_AutoStartCurrent", "Caption", current_line "(current)" ) 1256 End 1257 End 1258 End 1259 Else 1260 Do 1261 ok = VRSet( "DT_AutoStart", "Caption", "not found" ) 1262 If current_line \= '' Then 1263 ok = VRSet( "DT_AutoStartCurrent", "Caption", current_line "(current)" ) 1264 End 1265 Parse Value(_rxfindlines('rxautost.exe', bootdrive || '\startup.cmd')) , 1266 With rxautost_line_no line '|' . 1267 If rxautost_line_no \= 0 Then 1268 ok = VRSet( "DT_StartupCmd", "Caption", line ) 1269 Else 1270 ok = VRSet( "DT_StartupCmd", "Caption", "Rexx Autostart not active" ) 1271 If VRFileExists( bootdrive || "\startup.cmd" ) Then 1272 isrexx = Abbrev(Charin(bootdrive || "\startup.cmd", 1, 2), '/*') 1273 Else 1274 isrexx = 0 1275 If VRFileExists( our_log ) Then 1276 Do 1277 log_lines = 0 1278 Do While Lines(our_log) 1279 junk = Linein(our_log) 1280 log_lines = log_lines + 1 1281 End 1282 ok = VRSet( "DT_LogRecords", "Caption", log_lines "lines" ) 1283 End 1284 Else 1285 ok = VRSet( "DT_LogRecords", "Caption", "does not exist" ) 1286 Parse Value(_rxfindlines('restartobjects=no', bootdrive || '\config.sys')) , 1287 With restart_line_no . 1288 If rxautost_line_no \= 0 & restart_line_no \= 0 Then 1289 Do 1290 ok = VRSet( "DT_RexxAutostartStatus", "Caption", "Rexx Autostart enabled" ) 1291 ok = VRSet( "MenuRexxAutostartActivate", "Enabled", 0 ) 1292 ok = VRSet( "MenuRexxAutostartDeactivate", "Enabled", 1 ) 1293 End 1294 Else 1295 Do 1296 ok = VRSet( "DT_RexxAutostartStatus", "Caption", "Rexx Autostart disabled" ) 1297 ok = VRSet( "MenuRexxAutostartActivate", "Enabled", 1 ) 1298 ok = VRSet( "MenuRexxAutostartDeactivate", "Enabled", 0 ) 1299 End 1300 If p_init Then 1301 Call Page4_init 1302 Call _iniread 1303 Return 1304 1305 /*:VRX Page4_Fini 1306 */ 1307 Page4_fini: 1308 window = VRInfo( "Window" ) 1309 Call VRDestroy window 1310 Drop window 1311 Return 1312 /*:VRX Page4_Init 1313 */ 1314 Page4_init: 1315 window = VRInfo( "Object" ) 1316 If( \VRIsChildOf( window, "Notebook" ) ) Then 1317 Do 1318 Call VRMethod window, "CenterWindow" 1319 Call VRSet window, "Visible", 1 1320 Call VRMethod window, "Activate" 1321 End 1322 Drop window 1323 Return 1324 1325 /*:VRX ParkingLot 1326 */ 1327 Parkinglot: 1328 Say 'RxAutoSt.EXE in PATH?' 1329 Say 'Envar RxAutoSt set?' 1330 Say 'RESTARTOBJECTS set?' 1331 Say 'AUTOSTART set?' 1332 Say 'RxAutoSt.EXE in STARTUP.CMD?' 1333 /* SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS 1334 SET RESTARTOBJECTS=STARTUPFOLDERSONLY 1335 SET RXAUTOST=/WPS /D:20 /X /E */ 1336 Return 1337 1338 /*:VRX PB_AboutBox_OK_Click 1339 */ 1340 Pb_aboutbox_ok_click: 1341 Call Aboutbox_close 1342 Return 1343 1344 /*:VRX PB_Cancel_Click 1345 */ 1346 Pb_cancel_click: 1347 Call Quit 1348 Return 1349 1350 /*:VRX PB_InstallSound_Click 1351 */ 1352 Pb_installsound_click: 1353 /* This routine is loosely based on Mr. XWPS, Ulrich Mller's sound001.cmd */ 1354 1355 /* enable new RexxAutoStart system sound */ 1356 mmini = SysBootDrive()||"\MMOS2\MMPM.INI" 1357 1358 /* these are the titles of the sounds to be created */ 1359 rexxautostart_done = "RexxAutoStart: Done" 1360 rexxautostart_abort = "RexxAutoStart: Abort" 1361 rexxautostart_open = "RexxAutoStart: Open object" 1362 rexxautostart_start = "RexxAutoStart: Start" 1363 1364 /* Create empty sound entries */ 1365 rc = SysIni(mmini, "MMPM2_AlarmSounds", "681", "#"|| rexxautostart_done ||"#70") 1366 rc = SysIni(mmini, "MMPM2_AlarmSounds", "682", "#"|| rexxautostart_abort||"#70") 1367 rc = SysIni(mmini, "MMPM2_AlarmSounds", "683", "#"|| rexxautostart_open ||"#70") 1368 rc = SysIni(mmini, "MMPM2_AlarmSounds", "684", "#"|| rexxautostart_start ||"#70") 1369 1370 /* open WP_SOUND */ 1371 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1) 1372 Return 1373 1374 /*:VRX PB_Set_Click 1375 */ 1376 Pb_set_click: 1377 Call _iniwrite 1378 buttons.1 = "OK" 1379 buttons.0 = 1 1380 id = VRMessage( VRWindow(), "Saving of options to RxAutoSt.INI complete", "Saving RexxAutoStart options", "Information", "Buttons.", 1, 1 ) 1381 1382 Return 1383 /*:VRX PB_SoundConfig_Click 1384 */ 1385 Pb_soundconfig_click: 1386 /* open WP_SOUND */ 1387 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1) 1388 Return 1389 1390 /*:VRX PB_Undo_Click 1391 */ 1392 Pb_undo_click: 1393 Call Page1_Create no_load 1394 Call Page2_Create no_load 1395 Call Page3_Create no_load 1396 Call Page4_Create no_load 1397 Call _iniread 1398 Return 1399 1400 /*:VRX PB_UnInstallSound_Click 1401 */ 1402 Pb_uninstallsound_click: 1403 mmini = SysBootDrive()||"\MMOS2\MMPM.INI" 1404 Do i = 681 To 684 1405 rc = SysIni(mmini, "MMPM2_AlarmSounds", i, "DELETE:") 1406 End 1407 1408 /* open WP_SOUND */ 1409 ok = SysOpenObject("<WP_SOUND>","DEFAULT",1) 1410 Return 1411 1412 /*:VRX Quit 1413 */ 1414 Quit: 1415 If ini_changes Then 1416 Do 1417 buttons.1 = "Yes" 1418 buttons.2 = "Discard" 1419 buttons.3 = "Cancel" 1420 buttons.0 = 3 1421 id = VRMessage( VRWindow(), "Save changes made before exiting RexxAutoStart Setup Utility?", "Save RexxAutoStart Options", "Query", "Buttons.", 1, 3 ) 1422 If id = 1 Then 1423 Call _INIWrite 1424 If id = 3 Then 1425 Return 1426 End 1427 window = VRWindow() 1428 Call VRSet window, "Shutdown", 1 1429 Drop window 1430 Return 1379 /*:VRX RB_sc_open_Click 1380 */ 1381 RB_sc_open_Click: 1382 sc_wait = VRGet("RB_sc_wait", "Set") 1383 sc_open = VRGet("RB_sc_open","Set") 1384 Call Update_autostart 'warpcenter', sc_wait, sc_open 1385 ini_changes = 1 1386 return 1387 1388 /*:VRX RB_sc_wait_Click 1389 */ 1390 RB_sc_wait_Click: 1391 sc_wait = VRGet("RB_sc_wait", "Set") 1392 sc_open = VRGet("RB_sc_open","Set") 1393 Call Update_autostart 'warpcenter', sc_wait, sc_open 1394 ini_changes = 1 1395 return 1396 1397 /*:VRX RB_tb_open_Click 1398 */ 1399 RB_tb_open_Click: 1400 tb_wait = VRGet("RB_tb_wait", "Set") 1401 tb_open = VRGet("RB_tb_open","Set") 1402 Call Update_autostart 'toolbar', tb_wait, tb_open 1403 ini_changes = 1 1404 return 1405 1406 /*:VRX RB_tb_wait_Click 1407 */ 1408 RB_tb_wait_Click: 1409 tb_wait = VRGet("RB_tb_wait", "Set") 1410 tb_open = VRGet("RB_tb_open","Set") 1411 Call Update_autostart 'toolbar', tb_wait, tb_open 1412 ini_changes = 1 1413 return 1414 1415 /*:VRX RB_xc_open_Click 1416 */ 1417 RB_xc_open_Click: 1418 xc_wait = VRGet("RB_xc_wait", "Set") 1419 xc_open = VRGet("RB_xc_open","Set") 1420 ini_changes = 1 1421 return 1422 1423 /*:VRX RB_xc_wait_Click 1424 */ 1425 RB_xc_wait_Click: 1426 xc_wait = VRGet("RB_xc_wait","Set") 1427 xc_open = VRGet("RB_xc_open","Set") 1428 ini_changes = 1 1429 return 1431 1430 1432 1431 /*:VRX RxAutoUtMain_Close 1433 1432 */ 1434 Rx autoutmain_close:1435 Call Quit1436 Return1433 RxAutoUtMain_Close: 1434 call Quit 1435 return 1437 1436 1438 1437 /*:VRX RxAutoUtMain_Create 1439 1438 */ 1440 Rxautoutmain_create: 1441 Return 1439 RxAutoUtMain_Create: 1440 ok = VRMethod("PB_Set","SetFocus") 1441 call PushbackAll 1442 call TAB_1_Click 1443 call Page1_Create 1444 call Page2_Create 1445 call Page3_Create 1446 call Page4_Create 1447 call RxAutoUtMain_Resize 1448 ok = VRSet("RxAutoUtMain", "Visible", 1) 1449 call TAB_1_Click 1450 call TAB_1_Click 1451 return 1452 1453 /*:VRX RxAutoUtMain_Resize 1454 */ 1455 RxAutoUtMain_Resize: 1456 MainWin = "RxAutoUtMain" 1457 ok = VRset(MainWin,"Visible", 0) 1458 ok = VRSet(MainWin,"Width",max(VRget(MainWin,"Width"),Pages*TabWidth+300)) 1459 ok = VRset("GB_Main","width",VRget(MainWin,"Width")-150) 1460 ok = VRset("GB_Main","Height",VRget(MainWin,"Height")-1175) 1461 ok = VRset("GB_Main2","width",VRget("GB_Main","Width")-260) 1462 ok = VRset("GB_Main2","Height",VRget("GB_Main","Height")-275) 1463 ok = VRset("GB_VerticalLine","Left",VRget("GB_Main2","Width")-60) 1464 ok = VRset("GB_VerticalLine","Height",VRget("GB_Main2","Height")-410) 1465 ok = VRset("IPB_Paper","Left",VRget("GB_Main2","width")-510) 1466 ok = VRset("GB_HorLineTop","Width",VRget("GB_Main2","width")-480) 1467 ok = VRset("GB_HorLineTop","Width",VRget("GB_Main2","width")-480) 1468 ok = VRset("GB_LineSubtitle","Width",VRget("GB_Main2","width")-480) 1469 do I = 1 to Pages 1470 ok = VRSet("Page_"I,"Height", min(PageHeight,VRget("GB_Main2","Height")-600)) 1471 ok = VRSet("Page_"I,"Width", min(PageWidth,VRget("GB_Main2","Width")-450)) 1472 end 1473 ok = VRSEt("PB_Set","top",VRGet("GB_Main","Height")+365) 1474 ok = VRSEt("PB_Undo","top",VRGet("GB_Main","Height")+365) 1475 ok = VRSEt("PB_Cancel","top",VRGet("GB_Main","Height")+365) 1476 ButtonDist= 1080 1477 ButtonNr = 4 1478 ButtonPos = max((VRget(MainWin,"Width")-ButtonDist*ButtonNr)/2,0) 1479 ok = VRSEt("PB_Set","Left",ButtonPos+ButtonDist*(ButtonNr-4)) 1480 ok = VRSEt("PB_Undo","left",ButtonPos+ButtonDist*(ButtonNr-3)) 1481 ok = VRSEt("PB_Cancel","left",ButtonPos+ButtonDist*(ButtonNr-2)) 1482 ok = VRSEt("PB_Help","left",ButtonPos+ButtonDist*(ButtonNr-1)) 1483 ok = VRset(MainWin,"Visible", 1) 1484 return 1442 1485 1443 1486 /*:VRX SPIN_delay_wait_Change … … 1482 1525 Return 1483 1526 1527 /*:VRX TAB_1_Click 1528 */ 1529 TAB_1_Click: 1530 call Activate 1 1531 return 1532 1533 /*:VRX TAB_2_Click 1534 */ 1535 TAB_2_Click: 1536 call Activate 2 1537 return 1538 1539 /*:VRX TAB_3_Click 1540 */ 1541 TAB_3_Click: 1542 call Activate 3 1543 return 1544 1545 /*:VRX TAB_4_Click 1546 */ 1547 TAB_4_Click: 1548 call Activate 4 1549 return 1550 1551 /*:VRX TAB_5_Click 1552 */ 1553 TAB_5_Click: 1554 call Activate 5 1555 return 1556 1557 /*:VRX update_autostart 1558 */ 1559 update_autostart: 1560 Parse Upper Arg autostart_parm, autostart_wait, autostart_open, . 1561 /* opened by rexxautostart, remove from new_autostart */ 1562 If autostart_open Then 1563 Do 1564 If Pos(autostart_parm, new_autostart) <> 0 Then 1565 Do 1566 Parse Var new_autostart temp_1 (autostart_parm) temp_2 . 1567 new_autostart = Strip(temp_1||temp_2, 't', ',') 1568 double_comma = Pos(',,', new_autostart) 1569 If double_comma <> 0 Then 1570 new_autostart = Substr(new_autostart, 1, double_comma)||Substr(new_autostart, double_comma + 2) 1571 End 1572 End 1573 /* not opened by rexxautostart, put back in new_autostart if being waited on */ 1574 Else 1575 Do 1576 If autostart_wait , 1577 & Pos(autostart_parm, new_autostart) = 0 Then 1578 new_autostart = new_autostart||','autostart_parm 1579 End 1580 If new_autostart <> next_autostart Then 1581 Do 1582 next_autostart = new_autostart 1583 ok = VRSet( "DT_AutoStart", "Caption", next_autostart "(next boot)") 1584 End 1585 return 1586 -
TabularUnified /projects/rxautost/src/testurl.vrp ¶
r20 r30 7 7 VRXWindow: __VREMainWindow,1,1156,2168,5767,8000 8 8 VRXWindow: __VRESectionListWindow,1,2192,4481,2650,3342 9 VRXWindow: __VREToolsWindow,1,2252,8335, 4478,16599 VRXWindow: __VREToolsWindow,1,2252,8335,7999,1661 10 10 UserFile: 1 -
TabularUnified /projects/wpiview/1.x/WPIVIEW.IPF ¶
r20 r30 7 7 :h1 res=100.Introduction 8 8 9 : font facename='Default' size=0x0.:lines align=center.:hp2.WPIView Version 1.0.7:elines.9 :lines align=center.:font facename='Default' size=0x0.W:hp2.PIView Version 1.1.0:elines. 10 10 :p.:ehp2.This is&comma. as the name indicates&comma. a viewer for the content of 11 11 WarpIN archives. Basically WPIView acts as a frontend for … … 22 22 :h1 res=200.License 23 23 24 : font facename='Default' size=0x0.:p.This is free&comma. but copyrighted software. I&comma. Herwig24 :p.:font facename='Default' size=0x0.This is free&comma. but copyrighted software. I&comma. Herwig 25 25 Bauernfeind&comma. hold the copyright for 26 26 this program. This software is provided ":hp2.AS IS:ehp2." and without any express or … … 45 45 :h1 res=300.Installation 46 46 47 : font facename='Default' size=0x0.:p.:hp2.Recommended Installation&colon.47 :p.:font facename='Default' size=0x0.R:hp2.ecommended Installation&colon. 48 48 :ul. 49 49 :li.:ehp2.Put WPIView.EXE into the same directory as WarpIN.EXE. … … 53 53 :li.Create a program object and associate *.WPI files with it. 54 54 :eul. 55 :note.RXU.DLL is not required for version 1.0.6 or higher anymore(and therefore not found in the package anymore).55 :note.RXU.DLL is not required anymore for version 1.0.6 or better (and therefore not found in the package anymore). 56 56 :p.:hp2.Alternative installation&colon. 57 57 :ul. … … 68 68 :h1 res=400.Usage 69 69 70 : font facename='Default' size=0x0.:p.Fonts can be individually configured using D'n'D from the font palette.70 :p.:font facename='Default' size=0x0.Fonts can be individually configured using D'n'D from the font palette. 71 71 72 72 :p.Hovering with the mouse cursor over elements of the window display a hint in the statusline at the bottom. … … 100 100 :h2 res=420.Files 101 101 102 : font facename='Default' size=0x0.:p.Shows the files within the archive102 :p.:font facename='Default' size=0x0.Shows the files within the archive 103 103 :p.Use :hp2.contextmenu:ehp2. in order to 104 104 :ul. … … 123 123 :h2 res=430.Script 124 124 125 : font facename='Default' size=0x0.:p.Shows the installation script of the archive125 :p.:font facename='Default' size=0x0.Shows the installation script of the archive 126 126 :p.Use :hp2.contextmenu:ehp2. to 127 127 :ul. … … 142 142 :h2 res=440.Info 143 143 144 : font facename='Default' size=0x0.:p.Shows the properties and capabilities of the loaded WPI archive whether the archive script144 :p.:font facename='Default' size=0x0.Shows the properties and capabilities of the loaded WPI archive whether the archive script 145 145 :ul. 146 146 :li.is an installable archive … … 165 165 :h2 res=450.Settings 166 166 167 : font facename='Default' size=0x0.:ul.167 :ul.:font facename='Default' size=0x0. 168 168 :li.:hp2.Open file dialog on startup 169 169 :p.:ehp2.By checking this option&comma. you can decide whether WPIView should open a … … 200 200 :h1 res=500.Acknowledgements 201 201 202 : font facename='Default' size=0x0.:p.Ulrich M&oe.ller&comma. Jens Beckmann&comma. Yuri Dario&comma.202 :p.:font facename='Default' size=0x0.Ulrich M&oe.ller&comma. Jens Beckmann&comma. Yuri Dario&comma. 203 203 Paul Ratcliffe (WarpIN) 204 204 :p.Chris Wohlgemuth (directory picker in DRCTL017.DLL) … … 218 218 :h1 res=600.Author 219 219 220 : font facename='Default' size=0x0.:p.Author&colon. Herwig Bauernfeind&comma. 2006-2008220 :p.:font facename='Default' size=0x0.Author&colon. Herwig Bauernfeind&comma. 2006-2010 221 221 :p.mailto&colon.herwig.bauernfeind@aon.at 222 222 :i1.Author -
TabularUnified /projects/wpiview/1.x/WPIView.WIS ¶
r20 r30 2 2 <HEAD> 3 3 <PCK INDEX=1 4 PACKAGEID="Herwig Bauernfeind\WPIView\Program\1\ 0\8\0"4 PACKAGEID="Herwig Bauernfeind\WPIView\Program\1\1\0\0" 5 5 TARGET="$(WARPIN_DEFAULTTOOLSPATH)\WPIView" 6 6 SELECT … … 46 46 <P>That's it, trust me. 47 47 48 <P>Author: Herwig Bauernfeind, 2006-20 0848 <P>Author: Herwig Bauernfeind, 2006-2010 49 49 <P>EMail: <U><a href="mailto:herwig.bauernfeind@aon.at">herwig.bauernfeind@aon.at</a></U> 50 50 </README> … … 72 72 73 73 <P>You are not allowed to think nasty about the author! 74 75 <P>By using this program you agree that it is legal to post messages about76 eComStation in OS/2 newsgroups and vice versa (or forums or wherever), otherwise77 you are not allowed to use this program (Yes, there is no valid license for78 FUDsters!).79 74 </README> 80 75 </PAGE> -
TabularUnified /projects/wpiview/1.x/changes ¶
r20 r30 1 Version 1.1.0 1 Version 1.1.0 19.06.2010 2 2 !Added: Support new date and time fields of WarpIN 3 3 1.0.18 or better … … 11 11 !Added: Notify user in case a search string was 12 12 not found (anymore). 13 !Fixed: Do not allow modification of the script when 14 the WPI is loaded in read-only mode. 13 15 Version 1.0.8 24.11.2008 14 16 !Fixed: Properly initialize vendor, application, -
TabularUnified /projects/wpiview/1.x/mkwpi.cmd ¶
r20 r30 6 6 echo ---------------------- WIC -------------------------- 7 7 setlocal 8 wic wpiview%1 -v -s wpiview.WIS -a 1 wpiview.exe wpiview.hlp changes readme.wpiview 2 drctl017.dll drctl017.txt8 wic wpiview%1.wpi -v -a 1 wpiview.exe wpiview.hlp changes readme.txt 2 drctl017.dll drctl017.txt -s wpiview.wis 9 9 endlocal 10 10 echo ---------------------- End WIC ---------------------- -
TabularUnified /projects/wpiview/1.x/readme.11 ¶
r20 r30 1 WPIView Version 1.1 Alpha-52 ===================== ======1 WPIView Version 1.1.0 2 ===================== 3 3 4 4 WarpIN 1.0.18 also shows date and time of the files in the archive. 5 5 This breaks WPIView 1.0.x. 6 7 This is a 5th drop of the upcoming WPIView 1.1.8 9 Just replace previous WPIView.exe by the updated one.10 11 This alpha level software! Use at your own risk!12 It is only offered for testing purposes.13 6 14 7 Current limitations: -
TabularUnified /projects/wpiview/1.x/readme.txt ¶
r20 r30 1 WPIView Version 1. 0.81 WPIView Version 1.1.0 2 2 ===================== 3 3 4 4 This is, as the name indicates, a viewer for the content of WarpIN archives. 5 Basically WPIView acts as a frontend for WIC.EXE, which comes with each version6 of WarpIN.5 Basically WPIView acts as a frontend for WIC.EXE, which comes with each 6 version of WarpIN. 7 7 8 8 The purpose of this program is to provide a simple tool for all those WarpIN … … 36 36 open the context menu which provides a context sensitive help on every page). 37 37 38 Author: Herwig Bauernfeind, 2006-20 0838 Author: Herwig Bauernfeind, 2006-2010 39 39 mailto:herwig.bauernfeind@aon.at -
TabularUnified /projects/wpiview/1.x/wpiview.vrp ¶
r20 r30 8 8 VRXWindow: __VREFileListWindow,1,1132,10841,2665,3358 9 9 VRXWindow: __VRESectionListWindow,1,4698,11130,6914,3342 10 VRXWindow: __VREToolsWindow,1,2939,723, 7490,166110 VRXWindow: __VREToolsWindow,1,2939,723,6987,1663 11 11 UserFile: 1 12 12 UserWindow: Main,1 -
TabularUnified /projects/wpiview/1.x/wpiview.vrx ¶
r20 r30 1683 1683 */ 1684 1684 Page_4_ContextMenu: 1685 ok = VRset("MLE_Script","Readonly",ReadOnlyMode) 1686 ok = VRset("Menu_ContextScript_Update","Visible",\ReadOnlyMode) 1687 ok = VRset("MItem_13","Visible",\ReadOnlyMode) 1685 1688 ok = VRMethod( "Menu_Page_4", "Popup") 1686 1689 return
Note:
See TracChangeset
for help on using the changeset viewer.