Scripts, scripts & more scripts...
- ---
Clone GIT Branches
- ---
Set NIC Properties
Dependencies: pywin32, wmi
I use this script on my laptop to switch from DHCP (at work) to a static IP addressing scheme (at home) and vice versa.
Usage:
$ python set_nic_properties.py True Listing interfaces, filters: {IPEnabled = False} Please wait, this might take a few seconds... Index Interface ===== ========= [7] Intel(R) 82579LM Gigabit Network Connection [15] Intel(R) Centrino(R) Advanced-N 6205 [23] Remote NDIS based Internet Sharing Device [29] VirtualBox Host-Only Ethernet Adapter
Select an interface index from the listed options when prompted and specify if you want to configure this interface.
- ---
Move Mouse to Active Window
Dependencies: pywin32, pyhook
I have a weird 3 screen setup at work (don't ask me why): ...a docked laptop with a 27" monitor to its right and a 19" monitor above the 27" monitor.
I hate having to move the mouse from window to window when switching between windows using Alt-Tab, specially when the mouse has to be moved from the 1st screen to the 3rd screen.
So... I created this simple script to move the mouse to the middle of the new window if Alt-Tab is being used.
Usage:
$ python mouse_to_active_win.py True
The parameter (True or False) enables/disables debug prints.