Skip to content
View in the app

A better way to browse. Learn more.

Vodafone Techforum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NÁVOD: Stav připojení k internetu každých 30s

Featured Replies

  • Solution

Jednoduchý skript, který každých 30 sekund zkontroluje, zda jste připojeni k internetu (pingem na adresu google.com). Skript bude automaticky startovat po přihlášení do Windows. V souboru offline.txt najdete datum a čas, kdy nebylo možné se připojit k internetu.

 

Co budete potřebovat:

AutoHotkey (Windows): https://www.autohotkey.com/

 

Návod:

1.) Nainstalujte AutoHotkey

2.) Vytvořte novou složku ahk  v adresáři C:\Users\NAZEV_UZIVATELE\Documents

3.) V adresáři vytvořte nový soubor offline.txt

4.) Do souboru offline.txt vložte následující kod:

Loop
{
    speed:=SimplePing("google.com")
    SimplePing(URL)
    {
        Runwait,%comspec% /c ping -w 4000 -n 1 %url%>ping.log,,hide
        fileread, StrTemp, ping.log
        if RegExMatch(StrTemp, "Average = (\d+)"){
      
        Sleep, 30000

        }else{
        
        FileAppend, %A_YYYY%-%A_MM%-%A_DD% %A_Hour%:%A_Min%:%A_Sec%`n, C:\Users\NAZEV_UZIVATELE\Documents\ahk\offline.txt

        Sleep, 30000

        }
    }

}

5.) Změnte NAZEV_UZIVATELE za vaše uživatelské jméno

6.) Přejmenujte soubor offline.txt na offline.ahk

7.) V adresáři vytvořte prázdný soubor offline.txt

8.) Klepněte pravým tlačítkem na soubor offline.ahk . Vyberte Send  >>  Desktop (create shortcut)

9.) Jděte do adresáře C:\Users\NAZEV_UZIVATELE\Desktop

10.) Zkopírujte soubor offline.ahk - Shortcut do adresáře C:\Users\NAZEV_UZIVATELE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

 

Alternativou je rozšíření Internet Connection Monitor pro Chrome prohlížeč.

https://chrome.google.com/webstore/detail/internet-connection-monit/hgccfdagfbilbdbkgmfdmmdfmjjoakfo/related

https://chrome.google.com/webstore/detail/internet-connection-monit/hgccfdagfbilbdbkgmfdmmdfmjjoakfo

Edited by DCG

Solved by Guest DCG

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Vodafone Czech Republic a.s.,
nám. Junkových 2808/2, 155 00 - Praha 5,
IČO 25788001, sp. zn. B 6064 vedená u Městského soudu v Praze

Vodafone Czech Republic a.s.,
Junkových sq. 2808/2, 155 00 - Prague 5,
CRN 25788001, file number B 6064 kept at the Municipal Court in Prague

Powered by Invision Community

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.