Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HotKeySet("{ESC}","close")
- pingpong()
- Func pingpong()
- While True
- $ping=ping("8.8.8.8",3000)
- ;~ $ping =
- $s = string($ping)
- ;~ ConsoleWrite($s)
- if $ping = 0 Then
- $i=ToolTip("N/A",0,0)
- $H_TOOLTIP1 = WinGetHandle($s)
- DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $H_TOOLTIP1, "wstr", "", "wstr", "")
- DllCall("user32.dll", "int", "SendMessage", "hwnd", $H_TOOLTIP1, "int", 1043, "int", 000, "int", 0)
- ElseIf 1 <= $ping < 250 Then
- $i=ToolTip($s&" ms",0,0)
- $H_TOOLTIP1 = WinGetHandle($s)
- DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $H_TOOLTIP1, "wstr", "", "wstr", "")
- DllCall("user32.dll", "int", "SendMessage", "hwnd", $H_TOOLTIP1, "int", 1043, "int", 0255255, "int", 0)
- ElseIf 250 < $ping < 750 Then
- $i=ToolTip($s&" ms",0,0)
- $H_TOOLTIP1 = WinGetHandle($s)
- DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $H_TOOLTIP1, "wstr", "", "wstr", "")
- DllCall("user32.dll", "int", "SendMessage", "hwnd", $H_TOOLTIP1, "int", 1043, "int", 2550255, "int", 0)
- ElseIf 750 < $ping Then
- $i=ToolTip($s&" ms",0,0)
- $H_TOOLTIP1 = WinGetHandle($s)
- DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $H_TOOLTIP1, "wstr", "", "wstr", "")
- DllCall("user32.dll", "int", "SendMessage", "hwnd", $H_TOOLTIP1, "int", 1043, "int", 00255, "int", 0)
- EndIf
- Sleep(500)
- WEnd
- EndFunc
- Func close()
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement