Jump to content
Sign in to follow this  
gcue

dashboard

Recommended Posts

gcue

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 by gcue

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.