Sign in to follow this  
Followers 0
bobheart

Getting errors now after update

7 posts in this topic

#1 ·  Posted (edited)

Why did something chnage that autobuilder won't work now ?

Unknown function name.:

$checkbox_1 = GUISetControl("checkbox", "Checkbox 1", 20, 30, 100, 30)

$checkbox_1 = ^ ERROR

Rest of code .

#cs - ### Generated by AutoBuilder 0.4 -- do not modify ###
528 433
0   1   12  0   0   0   0   0   0   0   0   1   0   0   0   0   
checkbox    $checkbox_1 Checkbox 1  20  30  100 30  0   0   
checkbox    $checkbox_2 Checkbox 2  20  80  100 40  0   0   
checkbox    $checkbox_3 Checkbox 3  20  140 90  40  0   0   
checkbox    $checkbox_4 Checkbox 4  20  200 90  40  0   0   
checkbox    $checkbox_5 Checkbox 5  20  270 90  40  0   0   
checkbox    $checkbox_6 Checkbox 6  20  340 90  20  0   0   
checkbox    $checkbox_7 Checkbox 7  140 30  90  30  0   0   
checkbox    $checkbox_8 Checkbox 8  140 80  90  30  0   0   
checkbox    $checkbox_9 Checkbox 9  140 140 90  20  0   0   
checkbox    $checkbox_10    Checkbox 10 150 200 90  30  0   0   
checkbox    $checkbox_11    Checkbox 11 140 260 100 30  0   0   
checkbox    $checkbox_12    Checkbox 12 150 330 100 30  0   0   
button  $button_1   Button 1    400 250 100 40  0   0   
pic $pic_1  Pic 1   370 30  140 200 0   0   
#ce - ### End of Dump ###

;Script generated by AutoBuilder 0.4


Opt("GUICoordMode", 1)
Opt("GUINotifyMode", 1)
GuiCreate("MyGUI", 526,428,(@DesktopWidth-526)/2, (@DesktopHeight-428)/2 , 0x04CF0000)

$checkbox_1 = GUISetControl("checkbox", "Checkbox 1", 20, 30, 100, 30)
$checkbox_2 = GUISetControl("checkbox", "Checkbox 2", 20, 80, 100, 40)
$checkbox_3 = GUISetControl("checkbox", "Checkbox 3", 20, 140, 90, 40)
$checkbox_4 = GUISetControl("checkbox", "Checkbox 4", 20, 200, 90, 40)
$checkbox_5 = GUISetControl("checkbox", "Checkbox 5", 20, 270, 90, 40)
$checkbox_6 = GUISetControl("checkbox", "Checkbox 6", 20, 340, 90, 20)
$checkbox_7 = GUISetControl("checkbox", "Checkbox 7", 140, 30, 90, 30)
$checkbox_8 = GUISetControl("checkbox", "Checkbox 8", 140, 80, 90, 30)
$checkbox_9 = GUISetControl("checkbox", "Checkbox 9", 140, 140, 90, 20)
$checkbox_10 = GUISetControl("checkbox", "Checkbox 10", 150, 200, 90, 30)
$checkbox_11 = GUISetControl("checkbox", "Checkbox 11", 140, 260, 100, 30)
$checkbox_12 = GUISetControl("checkbox", "Checkbox 12", 150, 330, 100, 30)
$button_1 = GUISetControl("button", "Button 1", 400, 250, 100, 40)
$pic_1 = GUISetControl("virus.jpg", "Pic 1", 370, 30, 140, 200)

GuiShow()

While 1
    sleep(100)
    $msg = GuiMsg(0)
    Select
    Case $msg = -3
        Exit
    Case $msg = 1
       ;;;
    Case $msg = $checkbox_1
       ;;;
    Case $msg = $checkbox_2
       ;;;
    Case $msg = $checkbox_3
       ;;;
    Case $msg = $checkbox_4
       ;;;
    Case $msg = $checkbox_5
       ;;;
    Case $msg = $checkbox_6
       ;;;
    Case $msg = $checkbox_7
       ;;;
    Case $msg = $checkbox_8
       ;;;
    Case $msg = $checkbox_9
       ;;;
    Case $msg = $checkbox_10
       ;;;
    Case $msg = $checkbox_11
       ;;;
    Case $msg = $checkbox_12
       ;;;
    Case $msg = $button_1
       ;;;
    Case $msg = $pic_1
       ;;;
    EndSelect
WEnd
Exit
Edited by bobheart

Share this post


Link to post
Share on other sites



GUISetControl has been depreciated. Read your new documentation.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

Just found that Matt . what is the replacement for GuiShow() .

Share this post


Link to post
Share on other sites

Converted to new syntax:

GuiCreate ("MyGUI", 526, 428, (@DesktopWidth - 526) / 2, (@DesktopHeight - 428) / 2, 0x04CF0000)

$CHECKBOX_1 = GUICtrlCreatecheckbox ("Checkbox 1", 20, 30, 100, 30)
$CHECKBOX_2 = GUICtrlCreatecheckbox ("Checkbox 2", 20, 80, 100, 40)
$CHECKBOX_3 = GUICtrlCreatecheckbox ("Checkbox 3", 20, 140, 90, 40)
$CHECKBOX_4 = GUICtrlCreatecheckbox ("Checkbox 4", 20, 200, 90, 40)
$CHECKBOX_5 = GUICtrlCreatecheckbox ("Checkbox 5", 20, 270, 90, 40)
$CHECKBOX_6 = GUICtrlCreatecheckbox ("Checkbox 6", 20, 340, 90, 20)
$CHECKBOX_7 = GUICtrlCreatecheckbox ("Checkbox 7", 140, 30, 90, 30)
$CHECKBOX_8 = GUICtrlCreatecheckbox ("Checkbox 8", 140, 80, 90, 30)
$CHECKBOX_9 = GUICtrlCreatecheckbox ("Checkbox 9", 140, 140, 90, 20)
$CHECKBOX_10 = GUICtrlCreatecheckbox ("Checkbox 10", 150, 200, 90, 30)
$CHECKBOX_11 = GUICtrlCreatecheckbox ("Checkbox 11", 140, 260, 100, 30)
$CHECKBOX_12 = GUICtrlCreatecheckbox ("Checkbox 12", 150, 330, 100, 30)
$BUTTON_1 = GUICtrlCreatebutton ("Button 1", 400, 250, 100, 40)
$PIC_1 = GUICtrlCreatePic ("virus.jpg", 370, 30, 140, 200)

GuiSetState (@SW_SHOW)

While 1
   Sleep(10)
   $MSG = GuiGetMsg ()
   Select
      Case $MSG = -3
         Exit
      Case $MSG = 1
        ;;;
      Case $MSG = $CHECKBOX_1
        ;;;
      Case $MSG = $CHECKBOX_2
        ;;;
      Case $MSG = $CHECKBOX_3
        ;;;
      Case $MSG = $CHECKBOX_4
        ;;;
      Case $MSG = $CHECKBOX_5
        ;;;
      Case $MSG = $CHECKBOX_6
        ;;;
      Case $MSG = $CHECKBOX_7
        ;;;
      Case $MSG = $CHECKBOX_8
        ;;;
      Case $MSG = $CHECKBOX_9
        ;;;
      Case $MSG = $CHECKBOX_10
        ;;;
      Case $MSG = $CHECKBOX_11
        ;;;
      Case $MSG = $CHECKBOX_12
        ;;;
      Case $MSG = $BUTTON_1
        ;;;
      Case $MSG = $PIC_1
        ;;;
   EndSelect
Wend
Exit

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Why did something chnage that autobuilder  won't work now ?

Unknown function name.:

$checkbox_1 = GUISetControl("checkbox", "Checkbox 1", 20, 30, 100, 30)

$checkbox_1 = ^ ERROR

Rest of code .

<{POST_SNAPBACK}>

Bob, the whole syntax changed ... here is an overview : http://www.autoitscript.com/fileman/users/jpm/AutoIt3-gui/GUI%20Syntax%20changes.txt

CyberSlug wrote a conversion script to convert old to new syntax...

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks guys for the help .

Will autobuilder be updated now or we just have to convert scripts ?

Share this post


Link to post
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
Sign in to follow this  
Followers 0