Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 11, 2016, 03:58:06 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Netlocker  (Read 2833 times)

Eye-R

  • Participant
  • Joined in 2007
  • *
  • Posts: 2
    • View Profile
    • Donate to Member
IDEA: Netlocker
« on: January 19, 2007, 11:03:29 PM »
    Eh-up

  Just wunderin, is there not a lil proggie none o y'all knows 'bout, that upon a 'three-key-sequence'(ie: [ctrl] + [shift] + [end]) that'll disconnect all netwurk adapters, and disable them?

  an if not, would one o u kind chaps mind makey me one?

  It'd b quite nice if the sequnce whuz usr programmable, and also covered user specified programs in its envolope. but not essential.

  I'm lurnin c++, badly. else i'd 'ave a crack @ doing it meself... but i'm nowhere near that level yut...


  Ty in advance.


It is better tu remain silent, and be thought a phewl, than it is tu open yur mouth, and remove all doubt.
« Last Edit: January 20, 2007, 04:19:38 AM by brotherS »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,435
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Netlocker
« Reply #1 on: January 20, 2007, 02:36:47 AM »
This exact request came up before and the suggestion was to install one of the firewalls with a quick BLOCKALL switch.
Zone Alarm has it, so does Outpost Agnitum.  Others too probably.  I think thats the easiest and best approach.

Maybe someone can find that old thread?

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Re: IDEA: Netlocker
« Reply #2 on: January 20, 2007, 04:23:01 AM »
Hi Eye-R, welcome to the forum! We prefer regular English in here (hint: t3h d4rknezZ surR0unDz m3H ISN'T, neither "y", "r", "u", "ur", "wut", "wat", "ne1", "sum1" etc.), please no SMS-speak... for your other chats get:

http://img49.imageshack.us/img49/2018/spelchek5bk.jpg
IDEA: Netlocker


And why are you using space at the beginning of your lines? :o

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Netlocker
« Reply #3 on: January 27, 2007, 09:35:14 PM »
 :) Try ToggleNic!

It's just a quick hack, using Windows' own network folder, but it works! I'm testing Vista, and I couldn't get the menu selction to work properly, but in XP you could remove the ; before WinMenuSelectItem and add a ; before Send.

Remember to change the nic= and hotkey= lines to match your system!

Skrommel

;ToggleNic.ahk
; Use a hotkey to toggle your network cards' enabled state.
; Change the line nic= below to match the names of your network connections, separated by comma.
; Change the hotkey= below using !=Alt ^=Ctrl +=Shift or #=Win followed by any other key.
; For more advanced hotkeys, check the AutoHotkey help file.
;Skrommel @2007


;Settings
nic=Lokal tilkobling          ;Names of the network connections, separated by comma
hotkey=^F12                   ;Ctrl-F12


;Program
#SingleInstance,Force
#NoEnv
DetectHiddenWindows,On
SetWinDelay,0
Hotkey,%hotkey%,START,On
TrayTip,ToggleNic,Hotkey: %hotkey%
Return

START:
TrayTip,ToggleNic,Toggling...
RunWait,::{7007ACC7-3202-11D1-AAD2-00805FC1270E},,Hide
Sleep,1000
WinSet,Transparent,0,ahk_class CabinetWClass,,Program Manager
WinMove,ahk_class CabinetWClass,,guix,guiy,,,Program Manager
WinShow,ahk_class CabinetWClass,,Program Manager
ControlGet,nics,List,Col1,SysListView321,ahk_class CabinetWClass,,Program Manager

Loop,Parse,nics,`n
{
  If A_LoopField In %nic%
  {
    row:=A_Index-1
    ControlFocus,SysListView321,ahk_class CabinetWClass,,Program Manager
    ControlSend,SysListView321,{Home}{Down %row%},ahk_class CabinetWClass,,Program Manager
    ;WinMenuSelectItem,ahk_class CabinetWClass,,1&,1&,,,,,,Program Manager   ;In XP, use this instead of the line below
    Send,{Alt Down}f{Alt Up}{Enter}
    Sleep,1000
  }
}
WinClose,ahk_class CabinetWClass,,Program Manager
Return
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
« Last Edit: January 27, 2007, 09:37:40 PM by skrommel »