Odd why now lines in a script of mine like this: ( problem lies around $icon16= )
[ code='text' ] (
Popup )
#include <GUIConstantsEx.au3>
$Form1 = GUICreate("Edugeek's Admin's Admin Bar 1.7.1", 465, 160, 64, 34)
$helpmenu = GUICtrlCreateMenu("Help")
$support_sites_menu = GUICtrlCreateMenu("Support Sites")
$infoitem = GUICtrlCreateMenuItem("About", $helpmenu)
$infoitem2 = GUICtrlCreateMenuItem("Support Sites", $support_sites_menu)
GUISetBkColor(0x0066FF)
$Icon16 = GUICtrlCreateIcon(@SystemDir & "\eventvwr.exe", 0, 380, 7, 32, 32, BitOR($SS_NOTIFY, $WS_GROUP))
GUICtrlCreateLabel("Event", 381, 35)
GUICtrlCreateLabel("Viewer", 381, 48)
GUICtrlSetTip(-1, "Launch Event Viewer")
Is showing errors:
C:\COOL\test.au3(10,94) : WARNING: $SS_NOTIFY: possibly used before declaration.
$Icon16 = GUICtrlCreateIcon(@SystemDir & "\eventvwr.exe", 0, 380, 7, 32, 32, BitOR($SS_NOTIFY,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\COOL\test.au3(10,105) : WARNING: $WS_GROUP: possibly used before declaration.
$Icon16 = GUICtrlCreateIcon(@SystemDir & "\eventvwr.exe", 0, 380, 7, 32, 32, BitOR($SS_NOTIFY, $WS_GROUP)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~^
C:\COOL\test.au3(10,94) : ERROR: $SS_NOTIFY: undeclared global variable.
$Icon16 = GUICtrlCreateIcon(@SystemDir & "\eventvwr.exe", 0, 380, 7, 32, 32, BitOR($SS_NOTIFY,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\COOL\test.au3 - 1 error(s), 2 warning(s)
I have put in the new #include <GUIConstantsEx.au3> but why the variable errors when it worked ok before ?