Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoTrayIcon
- If ConnectedToInternet() {
- Gui, Add, Text, x2 y10 w30 h20 , URL:
- Gui, Add, Edit, x2 y30 w280 h20 vLink ,
- Gui, Add, Button, x282 y30 w60 h20 , Open
- Gui, Font, S6,
- Gui, Show, x475 y488 h60 w347, URL Launcher
- Return
- ButtonOpen:
- GuiControlGet, Link
- If Exist, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
- Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "%Link%"
- else
- Run %Link%
- Return
- GuiClose:
- ExitApp
- }
- else
- Msgbox, 48, WinInet.dll, Internet is Offline!
- ExitApp
- Return
- ConnectedToInternet(flag=0x40) {
- Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0)
- }
- #IfWinActive URL Launcher
- Enter::
- GuiControlGet, Link
- sleep, 3000
- Return
Advertisement
Add Comment
Please, Sign In to add comment