Jump to content

Function Help


Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...