Jump to content

Network status on taskbar


Didonet
 Share

Recommended Posts

Thanks, but... i cannot get the resources. i put the reshack.exe to the AutoIt3Wrapper subdirectory and i compile.. in reshack the resources are there, but if i cannot get them with this script

What about helpfile?

GUICtrlSetImage:

Passing a positive number will reference the string equivalent icon name.

Passing a negative number causes 1-based "index" behaviour. Some Dll can have icon extracted just with negative numbers.

Link to comment
Share on other sites

The icons shouldn't even have to be embedded in the exe, I simply could not get them to show on the taskbar from netshell.dll. Anybody able to get them to show using this dll?

I tried:

TraySetIcon ("netshell.dll", 193)

and

TraySetIcon ("netshell.dll", "193")

and

TraySetIcon (@SystemDir & "\netshell.dll", 193)

Edited by weaponx
Link to comment
Share on other sites

For some reason this works:

; Script Start - Add your code below here
#Include <Constants.au3>
TraySetState()
$dropped = true

While 1
    isOnline()
    Sleep(1000)
WEnd
Func isOnline()
    If Ping("www.google.com") > 0 Then
        TraySetIcon ("netshell.dll", -63)
        If $dropped Then
            TrayTip ( "", "Connection established", 4, 1)
            $dropped = False
        EndIf
    Else
        TrayTip ( "Warning", "Connection lost", 4, 2)
        TraySetIcon ("netshell.dll", -65)
        $dropped = true
    EndIf
EndFunc   ;==>isOnline

The original icon id's were from NirSoft IconExtract so i'm guessing autoit is pulling them by index or something.

EDIT: Updated for v3.2.8.1

Edited by weaponx
Link to comment
Share on other sites

Without trying to hijack this thread, is it possible to create a Autoit program that functions as the Windows systray network icon?

I only need the "2 monitors systray icon" to blink each time there is upload and/or upload activity.

Any help would be appreciated. :)

thanks

Link to comment
Share on other sites

That is kind of what Didonet originally wanted. I don't understand why you wouldn't use the windows builtin tray icon.

I'm using BartPE, and for some reason, using windows built icon doesnt work.

Im trying to use some VBs and batch files to solve this problem.

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...