Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: w2k networkingby t0mas (Priest) |
on Sep 19, 2002 at 08:14 UTC ( [id://199099]=note: print w/replies, xml ) | Need Help?? |
I've looked into automagically enable/disable network connections before. Heres what I came up with. First I aimed for the registry, it seems like disable a connection clears the NTEContextList of the interface and reduces a reference count (Yes!) to the interface. Enable it sets a unique hex counter on NTEContextList and increases the reference count. It probably does more that that, so I decided not to fiddle with it. I decided to go for a solution using the Win32::GuiTest module and emulate a user (Me) doing it. Here is my code, you'll probably need to modify it to match your icon positions and maybe increase/decrease the sleep values. Good luck, /brother t0mas
In Section
Seekers of Perl Wisdom
|
|