Zedna Posted September 11, 2007 Share Posted September 11, 2007 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 scriptWhat 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. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
weaponx Posted September 11, 2007 Share Posted September 11, 2007 (edited) 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 September 11, 2007 by weaponx Link to comment Share on other sites More sharing options...
weaponx Posted September 11, 2007 Share Posted September 11, 2007 (edited) 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 September 11, 2007 by weaponx Link to comment Share on other sites More sharing options...
SoulBlade Posted September 11, 2007 Share Posted September 11, 2007 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 More sharing options...
weaponx Posted September 11, 2007 Share Posted September 11, 2007 That is kind of what Didonet originally wanted. I don't understand why you wouldn't use the windows builtin tray icon. Link to comment Share on other sites More sharing options...
SoulBlade Posted September 11, 2007 Share Posted September 11, 2007 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 More sharing options...
weaponx Posted September 11, 2007 Share Posted September 11, 2007 I'm pretty sure its related to the limited set of services running inside the BartsPE environment. Activity can be monitored with WMI (look for scriptomatic in the forums)Or use a plugin for BartsPE like Netmeter: http://www.911cd.net/forums//index.php?showtopic=16592 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now