Jump to content

Random Error :(


BrettF
 Share

Recommended Posts

Disregard this whole topic. I fixed it...

code]C:\Documents and Settings\Jane\My Documents\alex\research.au3(23,73) : ERROR: syntax error

$Button7 = GUICtrlCreateButton("Add", 1112, 752, 33, 33, 0;addquicklink

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(24,81) : ERROR: syntax error

$Button8 = GUICtrlCreateButton("Remove", 1056, 752, 49, 33, 0);remove quicklink

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(25,64) : ERROR: syntax error

$Button9 = GUICtrlCreateButton("Stop", 176, 8, 49, 49, 0);Stop

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(26,77) : ERROR: syntax error

$Button10 = GUICtrlCreateButton("Refresh", 119, 8, 49, 49, 0); Refresh Page

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(27,85) : ERROR: syntax error

$Button11 = GUICtrlCreateButton("Mail", 288, 8, 49, 49, 0);Opens Defult Mail Client

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(87,42) : WARNING: $Button8: possibly used before declaration.

Case $msg = $Button8 ; remove quicklink

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(90,29) : WARNING: $Button9: possibly used before declaration.

Case $msg = $Button9; Stop

~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(93,38) : WARNING: $Button10: possibly used before declaration.

Case $msg = $Button10; Refresh Page

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(96,51) : WARNING: $Button11: possibly used before declaration.

Case $msg = $Button11 ; Opens Defult Mail Client

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3(87,42) : ERROR: $Button8: undeclared global variable.

Case $msg = $Button8 ; remove quicklink

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Jane\My Documents\alex\research.au3 - 6 error(s), 4 warning(s)

Thats my random error, and this is my code:

#include <GUIConstants.au3>
$oIE = ObjCreate("Shell.Explorer.2")
$AForm1_1 = GUICreate("AForm1", 1160, 841, 109, 95, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj ($oIE, 8, 88, 913, 705)
$Input1 = GUICtrlCreateInput("AInput1", 8, 64, 865, 21)
$Input2 = GUICtrlCreateInput("Search Term:", 936, 24, 153, 21)
$Group1 = GUICtrlCreateGroup("Searcher:", 928, 8, 225, 217)
$Group2 = GUICtrlCreateGroup("Quick-Links", 928, 232, 225, 561)
$Radio1 = GUICtrlCreateRadio("Google", 936, 56, 153, 25)
$Radio2 = GUICtrlCreateRadio("Yahoo!", 936, 80, 153, 25)
$Radio3 = GUICtrlCreateRadio("Nine MSN", 936, 104, 153, 25)
$Radio4 = GUICtrlCreateRadio("Ask Jeeves", 936, 128, 153, 25)
$Radio5 = GUICtrlCreateRadio("Dogpile", 936, 152, 153, 25)
$List1 = GUICtrlCreateList("", 936, 248, 209, 500, BitOR($LBS_SORT,$LBS_STANDARD,$WS_HSCROLL,$WS_VSCROLL,$WS_BORDER))
$Button1 = GUICtrlCreateButton("Foward", 64, 8, 49, 49, 0, $BS_ICON) ; Foward
GUICtrlSetImage (-1, "shell32.dll", 138)
$Button2 = GUICtrlCreateButton("Back", 8, 8, 49, 49, 0) ; Back
$Button3 = GUICtrlCreateButton("Home", 232, 8, 49, 49, 0) ; Home
$Button4 = GUICtrlCreateButton("GO!", 880, 64, 41, 21, 0) ; Go to input1's url
$Button5 = GUICtrlCreateButton("Perform Search!", 936, 184, 153, 33, 0) ; search
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
$Button6 = GUICtrlCreateButton("GO!", 936, 752, 49, 33, 0) ;gotofavorite
$Button7 = GUICtrlCreateButton("Add", 1112, 752, 33, 33, 0 ;addquicklink
$Button8 = GUICtrlCreateButton("Remove", 1056, 752, 49, 33, 0) ;remove quicklink
$Button9 = GUICtrlCreateButton("Stop", 176, 8, 49, 49, 0) ;Stop
$Button10 = GUICtrlCreateButton("Refresh", 119, 8, 49, 49, 0) ; Refresh Page
$Button11 = GUICtrlCreateButton("Mail", 288, 8, 49, 49, 0) ;Opens Defult Mail Client

GUISetState(@SW_SHOW)

$oIE.navigate("http://www.autoitscript.com")

While 1
    $Msg = GUIGetMsg()
    Select 
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    
    Case $msg = $AForm1_1
    
    
    Case $msg = $List1
    
    
    Case $msg = $Input1
    
    
    Case $msg = $Input2
    
    
    Case $msg = $Radio1
    
    
    Case $msg = $Radio2
    
    
    Case $msg = $Radio3
    
    
    Case $msg = $Radio4
    
    
    Case $msg = $Radio5


    Case $msg = $Button1; Foward
        $oIE.GoForward
    
    Case $msg = $Button2; Back
        $oIE.GoBack
    
    Case $msg = $Button3; Home
        $oIE.navigate("http://www.autoitscript.com")
    
    Case $msg = $Button4 ; Go to input1's url
    
    
    Case $msg = $Button5 ; search
    
    
    Case $msg = $Button6 ; gotofavorite
    
    
    Case $msg = $Button7 ; addquicklink
    
    
    Case $msg = $Button8  ; remove quicklink
    
    
    Case $msg = $Button9 ; Stop
        $oIE.Stop
    
    Case $msg = $Button10 ; Refresh Page
    
    
    Case $msg = $Button11  ; Opens Defult Mail Client
    EndSelect
WEnd
Edited by bert
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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