Jump to content

[Help] Image giving off error message


DxDark
 Share

Recommended Posts

My program is extremely basic, however, I keep getting this error...

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\LTony\Local Settings\Temp\test.au3"    
C:\Documents and Settings\LTony\Local Settings\Temp\test.au3 (16) : ==> Variable used without being declared.:
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\LTony\My Documents\ForumPwnerBeta\ForumPwnerTitle.GIF", 16, 8, 497, 100, BitOR($WS_GROUP,$WS_CLIPSIBLINGS))
[b]$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\LTony\My Documents\ForumPwnerBeta\ForumPwnerTitle.GIF", 16, 8, 497, 100, BitOR(^ ERROR[/b]
>Exit code: 1   Time: 0.581

What could I be doing wrong? I created a .BMP and .GIF, tried them both, and the same error...;__;

Link to comment
Share on other sites

well, heres the rest of it...

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=c:\documents and settings\ltony\my documents\forumpwnerbeta\fpmain.kxf
$FPMain = GUICreate("Basic Program :: =[Created by DxDark]=", 522, 363, 231, 129)
GUISetBkColor(0x000000)
$MainView = GUICtrlCreateTab(8, 112, 505, 225)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$Target = GUICtrlCreateTabItem("Tab1")
$TabTSpiderButton = GUICtrlCreateButton("Run", 16, 144, 153, 33, 0)
$Tab1ATKall = GUICtrlCreateButton("Attack", 16, 184, 153, 33, 0)
GUICtrlSetTip(-1, "Tab2")
$ATK = GUICtrlCreateTabItem("Tactic")
$Attack = GUICtrlCreateTabItem("Targets")
$FinalReport = GUICtrlCreateTabItem("Conclusion")
$MoreOptions = GUICtrlCreateTabItem("More Options")
$About = GUICtrlCreateTabItem("About")
GUICtrlCreateTabItem("")
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\LTony\My Documents\FP\FMP.bmp", 16, 16, 489, 84, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd
Edited by DxDark
Link to comment
Share on other sites

Here you are ;).

#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>

#Region ### START Koda GUI section ### Form=c:\documents and settings\ltony\my documents\forumpwnerbeta\fpmain.kxf
$FPMain = GUICreate("Basic Program :: =[Created by DxDark]=", 522, 363, 231, 129)
GUISetBkColor(0x000000)
$MainView = GUICtrlCreateTab(8, 112, 505, 225)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$Target = GUICtrlCreateTabItem("Tab1")
$TabTSpiderButton = GUICtrlCreateButton("Run", 16, 144, 153, 33, 0)
$Tab1ATKall = GUICtrlCreateButton("Attack", 16, 184, 153, 33, 0)
GUICtrlSetTip(-1, "Tab2")
$ATK = GUICtrlCreateTabItem("Tactic")
$Attack = GUICtrlCreateTabItem("Targets")
$FinalReport = GUICtrlCreateTabItem("Conclusion")
$MoreOptions = GUICtrlCreateTabItem("More Options")
$About = GUICtrlCreateTabItem("About")
GUICtrlCreateTabItem("")
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\LTony\My Documents\FP\FMP.bmp", 16, 16, 489, 84, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

Notice I added WindowsConstants.au3 and StaticConstants.au3 to your includes. That fixed all your "undefined variable" errors that I noticed when I tested your script.

Link to comment
Share on other sites

GLOMPS!~ THANK YOU!!! I'll try it out now!~

lol No problem, I had the same issues before so I started using the hex but hopefully this will help you out. ;)

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...