gcue Posted May 16, 2008 Posted May 16, 2008 (edited) i am trying to make a dashboard. an app where you can see a PCs, each represented by an icon. to start i created each icon manually (spacing, labeling n such) i was trying to see if theres a way i can auotmate this via an ini - where the icons would get created based off the PCs listed in the ini? (with the proper spacing/labeling) heres the manual process ive been doing: $PC1_btn = GUICtrlCreateButton ("PC1", 180,20,40,40, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll",16) GUICtrlCreateLabel("PC1", 170, 60) GUICtrlSetOnEvent($PC1_btn, "PC1") $PC2_btn = GUICtrlCreateButton ("PC2", 420,20,40,40, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll",16) GUICtrlCreateLabel("PC2", 405, 60) GUICtrlSetOnEvent($PC2_btn, "PC2") Func PC1() $asset = "d0090774" Ping($asset) If @error Then MsgBox(0, "Dashboard", $asset & " is offline.") Else ... ... EndFunc Func PC2() $asset = "d0090775" Ping($asset) If @error Then MsgBox(0, "Dashboard", $asset & " is offline.") Else ... ... EndFunc Edited May 16, 2008 by gcue
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