Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 22-12-2007, 08:43 PM   #1 (permalink)
~ Harsh ~
 
hdsk.23's Avatar
 
Join Date: Feb 2006
Location: Patiala, Punjab
Posts: 211
Default Make pc shutdown if internet is not working!!


Hello everybody...

can anyone know any way which make the pc shutdown if internet is not working.......i want to implement it on my BSNL connection...
there can be some script related to ping command that if a website is not replying then pc gets shutdown!!!!!
hdsk.23 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-12-2007, 10:37 PM   #2 (permalink)
dá ûnrêäl Kiñg
 
zyberboy's Avatar
 
Join Date: Feb 2006
Location: kerala/calicut
Posts: 992
Default Re: Make pc shutdown if internet is not working!!

u can do it using autohotkey,but u will need to write the script
chk here http://www.autohotkey.com/forum/topi...lan+connection
__________________
My Stomach pains:D:D
http://tinyurl.com/32jj4m
zyberboy is offline  
Old 23-12-2007, 07:48 AM   #3 (permalink)
~ Harsh ~
 
hdsk.23's Avatar
 
Join Date: Feb 2006
Location: Patiala, Punjab
Posts: 211
Default Re: Make pc shutdown if internet is not working!!

thanks of ton bro..
but which script i should use......no idea plz help....plzz post the correct script here!!!
hdsk.23 is offline  
Old 23-12-2007, 11:15 AM   #4 (permalink)
dá ûnrêäl Kiñg
 
zyberboy's Avatar
 
Join Date: Feb 2006
Location: kerala/calicut
Posts: 992
Default Re: Make pc shutdown if internet is not working!!

First download and install autohotkey frm here,
then copy this code to a note pad and save with .ahk extension( eg script.ahk)
if u want u can compile it to .exe
Code:
ConnectionTest:
sleep, 10000

If ConnectedToInternet()
{
gosub, ConnectionTest
}
Else
{
Shutdown,1
}

return

ConnectedToInternet(flag=0x40) {
Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0)
}
This script once activated chks if there is net connection in every 10 seconds,u can change the timing by entering alternate values in this step
sleep, 10000 <------ time in milli seconds
__________________
My Stomach pains:D:D
http://tinyurl.com/32jj4m
zyberboy is offline  
Old 24-12-2007, 01:47 PM   #5 (permalink)
~ Harsh ~
 
hdsk.23's Avatar
 
Join Date: Feb 2006
Location: Patiala, Punjab
Posts: 211
Default Re: Make pc shutdown if internet is not working!!

thanks bro. lots of ton....
u really very helpful...
script is working absolutely fine!!!
hdsk.23 is offline  
Old 24-12-2007, 09:48 PM   #6 (permalink)
dá ûnrêäl Kiñg
 
zyberboy's Avatar
 
Join Date: Feb 2006
Location: kerala/calicut
Posts: 992
Default Re: Make pc shutdown if internet is not working!!

^nice to see that
__________________
My Stomach pains:D:D
http://tinyurl.com/32jj4m
zyberboy is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Disk make a sound on Startup & shutdown g_goyal2000 Hardware Q&A 3 25-05-2008 07:28 PM
How To Make Vista Start, Run and Shutdown Faster. anandk Tutorials 11 15-09-2007 12:24 AM
MAKE WINXP STARTUP/SHUTDOWN FASTER ! anandk Tutorials 46 09-06-2007 11:41 PM
how to make win xp start/shutdown faster ? anandk Software Q&A 2 04-04-2005 10:21 PM

 
Latest Threads
- by chris
- by icebags
- by Tenida
- by Who

Advertisement




All times are GMT +5.5. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2