Here is the source code of the App along with its Help document
File Name: Help.txt
I developed this application with the BSNL Internet Connection Rs.500/- plan in my mind. So I would advice only those users using the aforementioned Plan to use this Application.
Go to Control Panel>Network Connections and
RENAME THE INTERNET CONNECTION IN NETWORK CONNECTIONS AS "BSNL Internet" (without the quotes). The application won't work if it is not renamed correctly.
To pause the Script at any time, Right-click on the Green "H" icon and select "Pause Script"
To Re-enable the Script, Right-click on the Red "H" icon and remove the tick on "Pause Script"
Clicking on "Suspend Hotkeys" has no effect on the app. as I did not use any.
The application is named "Felix Timer.exe" in the task-manager processes tab. Do not Kill it when you are using the application.
The Files of this program are extracted to "c:\ProgramFiles\FelixTimer"
File Name: Felix Timer.ahk
#persistent
#singleinstance ignore
#Include CoHelper.ahk
settimer, rep,2000 ;repeat this label for every 2 seconds
return
rep: ;this is a label
hour=%A_Hour% ;current hour
min=%A_Min% ;current minute
if( (hour>02) and (hour<7)>
{ NetConnect(1)
;Msgbox %A_Hour% %A_Min% within limits
}
else if(hour=2 and min>9)
{ NetConnect(1)
;Msgbox %A_Hour% %A_Min% within limits
}
else if(hour=7 and min<50)
{ NetConnect(1)
;Msgbox %A_Hour% %A_Min% within limits
}
else
{ NetConnect(0)
;Msgbox %A_Hour% %A_Min% Off limits
}
;NetConnect(0)
;Sleep, 5000
;NetConnect(1)
NetConnect(bEnable = False, sConnection = "BSNL Internet")
{
CoInitialize()
psh := ActiveXObject("Shell.Application")
pns := Invoke_(psh, "Namespace", 3, CSIDL_Connections:=0x0031)
pitems := Invoke(pns, "Items")
Loop, % Invoke(pitems, "Count")
{
pid := Invoke_(pitems, "Item", 3, A_Index-1)
If (Invoke(pid, "Name") = sConnection)
{
bRes := True
Break
}
Release(pid)
}
If !bRes
ExitApp
pverbs := Invoke(pid, "Verbs")
pvb := Invoke_(pverbs, "Item", 3, nVB:=0)
If pvb
{
sVerbName := Invoke(pvb, "Name")
If (bEnable && InStr(sVerbName, "&a")) || (!bEnable && InStr(sVerbName, "&b")) ; &a and &b can be Language dependent.
Invoke(pvb, "DoIt")
WinWait, %sConnection% ahk_class #32770,, 1
WinWaitClose
Release(pvb)
}
Release(pverbs)
Release(pid)
Release(pitems)
Release(pns)
Release(psh)
CoUninitialize()
}
return ; end settimer
File Name: Felix_Timer_Setup.ahk
MsgBox, 4,Felix Timer Setup, Install Felix Timer?
IfMsgBox Yes
{
FileCreateDir, %A_ProgramFiles%\Felix Timer
FileInstall,Felix Timer.exe, %A_ProgramFiles%\Felix Timer\Felix Timer.exe,1
FileInstall, Help.txt, %A_ProgramFiles%\Felix Timer\Help.rtf,1
FileCreateShortcut %A_ProgramFiles%\Felix Timer\Felix Timer.exe, %A_Desktop%\Felix Timer.lnk, %A_ProgramFiles%\Felix Timer, ,A LAN Enable/Disable Timer
FileCreateShortcut %A_ProgramFiles%\Felix Timer\Felix Timer.exe, %A_StartMenu%\Felix Timer.lnk, %A_ProgramFiles%\Felix Timer, ,A LAN Enable/Disable Timer
FileCreateShortcut %A_ProgramFiles%\Felix Timer\Help.rtf, %A_StartMenu%\Help for Felix Timer.lnk, %A_ProgramFiles%\Felix Timer, ,Help for Felix Timer
MsgBox Rename the Internet Connection in Control Panel > Network Connections as "BSNL Internet"(without the quotes). The application wont work if its not done properly.
Run %A_ProgramFiles%\Felix Timer\Help.rtf,,Max
}
IfMsgBox No
MsgBox Then why bother clicking it. So you don't have a BSNL LAN Connection with Rs.500 Plan? Then never mind this application.
File Name: CoHelper.ahk -- Sean from AutoHotkey Community.
2 Comments:
This is great info to know.
[url=http://cpcheat.org/]Club Penguin[/url] gives you a [url=http://cpcheat.org/club-penguin-money-maker/]Club Penguin Money Maker[/url] that allows you to make a lot of coins in Club Penguin.
[url=http://cpcheat.org/]Club Penguin Codes[/url] also provides you with [url=http://cpcheat.org/club-penguin-trackers/]Club Penguin Trackers[/url] such as a [url=http://cpcheat.org/club-penguin-aunt-arctic-tracker/]Club Penguin Aunt Arctic Tracker[/url], a [url=http://cpcheat.org/club-penguin-cadence-tracker/]Club Penguin Cadence Tracker[/url], a [url=http://cpcheat.org/club-penguin-gary-tracker/]Club Penguin Gary Tracker[/url], a [url=http://cpcheat.org/club-penguin-band-tracker/]Club Penguin Band Tracker[/url], a [url=http://cpcheat.org/club-penguin-rockhopper-tracker/]Club Penguin Rockhopper Tracker[/url], and a [url=http://cpcheat.org/club-penguin-sensei-tracker/]Club Penguin Sensei Tracker[/url].
Last,[url=http://cpcheat.org/]Club Penguin Codes[/url] gives you [url=http://cpcheat.org/club-penguin-bots/]Club Penguin Bots[/url] and [url=http://cpcheat.org/]Club Penguin Mission Cheats[/url] and [url=http://cpcheat.org/]Club Penguin Coin Cheats[/url]
Post a Comment