--- In [email protected], miinx <[EMAIL PROTECTED]> wrote:
>
> entropyreduction wrote:
> > What happens when you do same to
> >
> >
reg.set_dword(?"HKLM\SYSTEM\ControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{A6412256-7CE4-4898-9DC8-7950B06D9708}\Connection\ShowIcon",
> > 1)
> >
> > My understanding was that ControlSet001 and ControlSet002 where
backups.
> >
>
> Thanks Alan, I don't have a ControlSet key but I do have
> CurrentControlSet, so have just tried that but still no luck,
> unfortunately. The value is reset correctly but the icon doesn't seem
> to want to change with just the PowerPro call..?
>
> I haven't tried it but I assume that if I rebooted, any change would be
> evident then, so is there any way to get Windows to kinda "re-read"
that
> key? Or is it meant to be dynamic anyway?
You may call the properties page directly, then tick/untick the box, e.g.:
local sVerb,sFile,sParam,sWork,hInst,hProc,sei
sVerb="properties"
sFile=?"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\::{A6412256-7CE4-4898-9DC8-7950B06D9708}"
sei=dll.create_struct("ui ui ui s s s s i i i i ui ui ui ui",
60,1036,"","sVerb|sFile|sParam|sWork",1,"hInst| | | | | |hProc")
dll.call("shell32.dll|ShellExecuteEx|t* i",sei)
wait.for(1000)
keys %w{enter}
Sean
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/