pshankland Posted October 17, 2006 Share Posted October 17, 2006 I am trying to create my own include file so that I can always call on a certain form to display identically except for the text. The following is my include file called AutoITMessages.au3: #include-once Func _AutoITMessageScreen($strTitle, $strBody) GuiCreate($strTitle, 600, 150, 0, 846 , "", $WS_EX_TOPMOST) GUISetFont(24, 400, "", "Tahoma") GuiCtrlCreateLabel($strBody, 10, 10) GUISetState(@SW_SHOW) EndFuncoÝ÷ ØZ½ëaz{hµë-r·µçZ²)©ë®*mq©eyÛ^²Ö®ßbr[-+"Énuçâ殶sb6æ6ÇVFRfÇC¶æ6ÇVFW2b3#´WFôDÖW76vW2æS2fwC° ¢b33c·7G$ÖW76vUFFÆRÒgV÷CµF22FRFFÆRgV÷C°¢b33c·7G$ÖW76vT&öGÒgV÷CµF22FR&öGgV÷C° ¥ôWFôDÖW76vU67&VVâb33c·7G$ÖW76vUFFÆRÂb33c·7G$ÖW76vT&öG Keep getting the following errors when I build: \\rpl-bugatti\data\1533\Scripts\AutoIT\includes\AutoITMessages.au3(4,60) : WARNING: $WS_EX_TOPMOST: possibly used before declaration. GuiCreate($strTitle, 600, 150, 0, 846 , "", $WS_EX_TOPMOST) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ \\rpl-bugatti\data\1533\Scripts\AutoIT\includes\AutoITMessages.au3(4,60) : ERROR: $WS_EX_TOPMOST: undeclared global variable. GuiCreate($strTitle, 600, 150, 0, 846 , "", $WS_EX_TOPMOST) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ \\rpl-bugatti\data\1533\Scripts\AutoIT\test.au3 - 1 error(s), 1 warning(s)Could someone please point me in the correct direction? Thanks. Pete. Link to comment Share on other sites More sharing options...
this-is-me Posted October 17, 2006 Share Posted October 17, 2006 In AutoITMessages.au3, you never #included <GuiConstants.au3>. Who else would I be? Link to comment Share on other sites More sharing options...
pshankland Posted October 17, 2006 Author Share Posted October 17, 2006 In AutoITMessages.au3, you never #included <GuiConstants.au3>.Just worked that out myself, really sorry :"> Link to comment Share on other sites More sharing options...
this-is-me Posted October 17, 2006 Share Posted October 17, 2006 That's ok. Who else would I be? 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