Hmm what sort of school would set such a project for a student, let alone allow them to use a random tool from the web instead of something specific chosen by the curriculum.
Dubious to say the least.
I figured that might be what I was running into, then I realized I could just use GUICtrlCreatePic and change the format of the image instead of using an icon. I'm still curious if there was a right way of applying that icon to the button, but it's no longer a concern since I can do it differently.
Yes, using WMI
$objWMIService = ObjGet("winmgmts:\\.\root\CIMV2")
$colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_DisplayConfiguration", "WQL", 0x10 + 0x20)
If IsObj($colItems) then
For $objItem In $colItems
$Output = $objItem.DeviceName
Next
Endif
Msgbox(0,"", $Output)
Do it this way.
;==================================================================
; VARIABLES - without icon references as they don't work yet if I put icon numbers:
$icon_File = @SystemDir & "\shell32.dll"
$icon_for_GUI = 240
$icon_for_CLEAR_button = 133
;==================================================================
GUICtrlSetImage(-1, $icon_File, $icon_for_GUI, 0)
GUISetIcon($icon_File, $icon_for_CLEAR_button)