DxDark Posted August 24, 2008 Share Posted August 24, 2008 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 More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 Post more of the script. What are your includes? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
DxDark Posted August 24, 2008 Author Share Posted August 24, 2008 (edited) 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 August 24, 2008 by DxDark Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 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. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
DxDark Posted August 24, 2008 Author Share Posted August 24, 2008 GLOMPS!~ THANK YOU!!! I'll try it out now!~ Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 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. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] 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