gamers600 Posted December 14, 2008 Posted December 14, 2008 When I try running the script here http://www.autoitscript.com/forum/index.ph...mp;hl=brain.txt I get the following error:(39) : ==> Variable used without being declared.:$history = GUICtrlCreateEdit("Please type in the input field at the bottom."&@CRLF&"---------------", 10, 10, 240, 230, BitOR($WS_VSCROLL, $ES_READONLY, $ES_AUTOVSCROLL))$history = GUICtrlCreateEdit("Please type in the input field at the bottom."&@CRLF&"---------------", 10, 10, 240, 230, BitOR(^ ERRORDoes anyone know how to fix this?
Rental Posted December 14, 2008 Posted December 14, 2008 add #include <WindowsConstants.au3> to the script
gamers600 Posted December 14, 2008 Author Posted December 14, 2008 add #include <WindowsConstants.au3> to the scriptThat error is gone but a new one is caused:(41) : ==> Variable used without being declared.:$Sbutton = GUICtrlCreateButton("Say", 200, 260, 50, 30, $BS_DEFPUSHBUTTON)$Sbutton = GUICtrlCreateButton("Say", 200, 260, 50, 30, ^ ERROR
Malkey Posted December 14, 2008 Posted December 14, 2008 When I try running the script here http://www.autoitscript.com/forum/index.ph...mp;hl=brain.txt I get the following error:(39) : ==> Variable used without being declared.:$history = GUICtrlCreateEdit("Please type in the input field at the bottom."&@CRLF&"---------------", 10, 10, 240, 230, BitOR($WS_VSCROLL, $ES_READONLY, $ES_AUTOVSCROLL))$history = GUICtrlCreateEdit("Please type in the input field at the bottom."&@CRLF&"---------------", 10, 10, 240, 230, BitOR(^ ERRORDoes anyone know how to fix this?Need to add #include <Array.au3>#include <WindowsConstants.au3>#include <ButtonConstants.au3>#include <ScrollBarConstants.au3>and change Global $contents = _XMLLoad("brain.aiml")to Global $contents = _XMLLoad("brain.txt")
gamers600 Posted December 14, 2008 Author Posted December 14, 2008 Need to add #include <Array.au3>#include <WindowsConstants.au3>#include <ButtonConstants.au3>#include <ScrollBarConstants.au3>and change Global $contents = _XMLLoad("brain.aiml")to Global $contents = _XMLLoad("brain.txt") thanks it works now
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