os2fan2 Posted October 16, 2004 Posted October 16, 2004 I use regina rexx and patrick mcphee's w32util.dll to do this. This code turns on and off the throbber for ie and the explorer, by using registry keys. It reads a key, changes a bit and puts it back./* Shell throbber/dethrobber. The core now works. */numeric digits 50regroot = 'HKEY_CURRENT_USER'regbase = 'Software\Microsoft\Internet Explorer\Toolbar\'regword = 'ITBarLayout'call rxfuncadd 'w32loadfuncs', 'w32util', 'w32loadfuncs'call w32LoadFuncsparse arg a1 a2if pos(a1,'012') = 0 then dosay "THROB.REX non-distructively alters the throbber in IE and the Shell"say ""say "the throbber is the little rotating thing in the top right hand corner"say "of the window"say "This is to be run under the target system, not in PE boot"; saysay "Usage: THROB shell ie"say " 0 turn off the throbber"say " 1 turn on the throbber"say " 2 just look."; say ""say "if the throbber is on, then the last hex digit is a letter or over 8"say "a value of 0 to 7 means it is off".endif pos(a1,'012') = 0 then a1 = 2if pos(a2,'012') = 0 then a2 = 2/* Shell Browser */call regpeek 'ShellBrowser', a1call regpeek 'Explorer', a1/* IE */call regpeek 'WebBrowser', a2exitregpeek:parse arg t0, t1reghere = w32regopenkey(regroot, regbase || t0)if reghere=0 then do; call w32regclosekey(reghere); return; end;k1 = w32regqueryvalue(reghere, regword)parse var k1 1 k1a 33 k1b 35 k1cselect when t1 = 1 then r1 = b2x( bitor(x2b(k1b), '00001000')) when t1 = 0 then r1 = b2x(bitand(x2b(k1b), '11110111')) when t1 = 2 then r1 = k1b otherwise; r1 = k1b; say 'invalid option' t1; endr0 = w32regqueryvaluetype( reghere, regword)r2 = k1a || r1 || k1cs1 = w32regsetvalue(reghere, regword, r0, r2)if s1=0 then s2 = 'Y'; else s2 = 'N'call w32regclosekey(reghere)say t1 left(t0,20) r0 k1b r1 s2return
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now