SHOW:
|
|
- or go back to the newest paste.
| 1 | /* rexx */ | |
| 2 | ||
| 3 | parse arg app key | |
| 4 | ||
| 5 | crlf = '0d 0a'x | |
| 6 | ||
| 7 | ||
| 8 | app = 'XWorkplace:Hook' | |
| 9 | key = 'PagerConfig' | |
| 10 | ||
| 11 | /* | |
| 12 | app = 'PM_Workplace:WindowListPos' | |
| 13 | key = 'SavePos' | |
| 14 | */ | |
| 15 | ||
| 16 | strlen = 24 | |
| 17 | ||
| 18 | x = sysini('USER', app, key)
| |
| 19 | len = length(x) | |
| 20 | ||
| 21 | say "/* rexx */" | |
| 22 | say | |
| 23 | say "call RxFuncAdd 'SysIni', 'rexxutil', 'SysIni'" | |
| 24 | say | |
| 25 | say "cfg = ," | |
| 26 | ||
| 27 | pos = 0 | |
| 28 | do forever | |
| 29 | str = '''' | |
| 30 | do i = 1 to strlen | |
| 31 | pos = pos + 1 | |
| 32 | if pos > len then leave | |
| 33 | byte = c2x(substr(x, pos, 1)) | |
| 34 | str = str || byte | |
| 35 | ||
| 36 | if i < strlen & pos < len then | |
| 37 | str = str || ' ' | |
| 38 | end | |
| 39 | call charout, str | |
| 40 | if pos > len then do | |
| 41 | call charout, '''x' || crlf | |
| 42 | leave | |
| 43 | end; else | |
| 44 | call charout, '''x,' || crlf | |
| 45 | end | |
| 46 | ||
| 47 | say | |
| 48 | say "call sysini 'USER', '" || app || "', '" || key || "', cfg" | |
| 49 | say |