asi es como da el error
Código: Seleccionar todo
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include "opciones.au3"
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("conexion", 210, 298, 571, 296)
$Input1 = GUICtrlCreateInput("", 40, 40, 129, 21)
$Input2 = GUICtrlCreateInput("", 40, 88, 129, 21)
$Input3 = GUICtrlCreateInput("", 40, 136, 129, 21)
$Input4 = GUICtrlCreateInput("", 40, 184, 129, 21)
$Label1 = GUICtrlCreateLabel("usuario", 88, 16, 38, 17)
$Label2 = GUICtrlCreateLabel("password", 80, 64, 49, 17)
$Label3 = GUICtrlCreateLabel("db", 95, 160, 44, 17)
$Button1 = GUICtrlCreateButton("ok", 24, 232, 161, 33, $WS_GROUP)
$Label4 = GUICtrlCreateLabel("servidor", 85, 112, 41, 17)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUICtrlSetOnEvent($Button1, "Botton1Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
;##############################
;#funciones del formulario #
;##############################
Func Botton1Click()
Dim $username = GUICtrlRead($Input1)
Dim $Password = GUICtrlRead($Input2)
Dim $Database = GUICtrlRead($Input4)
Dim $MySQLServerName = GUICtrlRead($Input3)
GUIDelete ( $Form1 )
tipobjeto()
EndFunc ;==>Botton1Click
Func Form1Close()
Exit
EndFunc ;==>Form1Close
Código: Seleccionar todo
func tipobjeto()
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <mysql.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("vandecum", 231, 145, 192, 124)
$Button100 = GUICtrlCreateButton("introducir planta", 24, 16, 185, 33, $WS_GROUP)
$Button200 = GUICtrlCreateButton("borrar planta", 24, 56, 185, 33, $WS_GROUP)
$Button300 = GUICtrlCreateButton("buscar plantas", 24, 96, 185, 33, $WS_GROUP)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form2Close")
GUICtrlSetOnEvent($Button100, "Button100Click")
GUICtrlSetOnEvent($Button200, "Button200Click")
GUICtrlSetOnEvent($Button300, "Button300Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
;##############################
;#funciones del formulario #
;##############################
Func Button100Click()
EndFunc
Func Button200Click()
EndFunc
Func Button300Click()
EndFunc
Func Form2Close()
Exit
EndFunc
EndFunc