|
You last visited: Today at 09:41
Advertisement
problem mit input
Discussion on problem mit input within the AutoIt forum part of the Coders Den category.
03/04/2011, 16:13
|
#1
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
problem mit input
PHP Code:
#include <GUIConstants.au3>
$Form1 = GUICreate("Tabbed Notebook Dialog", 409, 272, 303, 219)
GUISetIcon("D:\005.ico")
$PageControl1 = GUICtrlCreateTab(8, 8, 396, 256)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$Input1 = GUICtrlCreateInput("Input1", 24, 40, 137, 22)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button1 = GUICtrlCreateButton("entpacken", 176, 40, 65, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
so ich will jetzt das wenn man z.b. root eingibt und dann auf entpacken drückt das er die test.bat startet und wenn man locale_de eingibt dann test2.bat kann das einer pls weiter machen ich kann das nicht-.-
|
|
|
03/04/2011, 16:55
|
#2
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Case $Button1
If GUICtrlRead($input1) = "Root" then
ShellExecute("test.bat","","Pfad")
ElseIf
If GUICtrlRead($input1) = "locale_de" then
ShellExecute("test2.bat","","Pfad")
Hier damit klappts.
Zu faul für php FTW
|
|
|
03/04/2011, 17:00
|
#3
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
dann kommt das problem
PHP Code:
C:\Dokumente und Einstellungen\marcel\Desktop\Neu AutoIt v3 Script.au3(26,1) : ERROR: syntax error Case ^ C:\Dokumente und Einstellungen\marcel\Desktop\Neu AutoIt v3 Script.au3 - 1 error(s), 0 warning(s)
source ist
PHP Code:
#include <GUIConstants.au3>
$Form1 = GUICreate("Tabbed Notebook Dialog", 409, 272, 303, 219) GUISetIcon("D:\005.ico") $PageControl1 = GUICtrlCreateTab(8, 8, 396, 256) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $Input1 = GUICtrlCreateInput("Input1", 24, 40, 137, 22) GUICtrlSetFont(-1, 8, 400, 0, "Arial") $Button1 = GUICtrlCreateButton("entpacken", 176, 40, 65, 25, 0) GUICtrlSetFont(-1, 8, 400, 0, "Arial") $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") $TabSheet3 = GUICtrlCreateTabItem("TabSheet3") GUICtrlCreateTabItem("") GUISetState(@SW_SHOW)
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
EndSwitch WEnd
Case $Button1 If GUICtrlRead($input1) = "Root" then ShellExecute("test.bat","","Pfad") ElseIf If GUICtrlRead($input1) = "locale_de" then ShellExecute("test2.bat","","Pfad")
|
|
|
03/04/2011, 17:07
|
#4
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Ne du musst das in die Switch schleife oder abfrage packen also unter case $GUI_EVENT_CLOSE .. Exit ach ja und ich hab das EndIf vergessen
Edit:
PHP Code:
#include <GUIConstants.au3>
$Form1 = GUICreate("Tabbed Notebook Dialog", 409, 272, 303, 219)
GUISetIcon("D:\005.ico")
$PageControl1 = GUICtrlCreateTab(8, 8, 396, 256)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$Input1 = GUICtrlCreateInput("Input1", 24, 40, 137, 22)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button1 = GUICtrlCreateButton("entpacken", 176, 40, 65, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($input1) = "Root" then
ShellExecute("test.bat","","Pfad")
ElseIf
If GUICtrlRead($input1) = "locale_de" then
ShellExecute("test2.bat","","Pfad")
endif
EndSwitch
WEnd
|
|
|
03/04/2011, 17:08
|
#5
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
hab dich mal in skype geaddt ist einfacher^^
|
|
|
03/04/2011, 17:20
|
#6
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
geht immer noch nicht auch nicht mit deiner source XDDD
|
|
|
03/04/2011, 17:24
|
#7
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Lass mich raten du hast bei ShellExecute den Pfad nicht angepasst
|
|
|
03/04/2011, 17:30
|
#8
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
doch ^^ hier der source
PHP Code:
#include <GUIConstants.au3>
$Form1 = GUICreate("Tabbed Notebook Dialog", 409, 272, 303, 219) GUISetIcon("D:\005.ico") $PageControl1 = GUICtrlCreateTab(8, 8, 396, 256) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $Input1 = GUICtrlCreateInput("Input1", 24, 40, 137, 22) GUICtrlSetFont(-1, 8, 400, 0, "Arial") $Button1 = GUICtrlCreateButton("entpacken", 176, 40, 65, 25, 0) GUICtrlSetFont(-1, 8, 400, 0, "Arial") $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") $TabSheet3 = GUICtrlCreateTabItem("TabSheet3") GUICtrlCreateTabItem("") GUISetState(@SW_SHOW)
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 If GUICtrlRead($input1) = "Root" then ShellExecute("test.bat","","C:\test.bat") ElseIf If GUICtrlRead($input1) = "locale_de" then ShellExecute("test2.bat","","C:\test2.bat") endif EndSwitch WEnd
|
|
|
03/04/2011, 17:34
|
#9
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Mach mal test.bat weg also nur C:\
|
|
|
03/04/2011, 17:36
|
#10
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
ne er sagt iwas ´mit endswitch PS: einfach in skype anehmen dann kann ich dir den source schicken^^
|
|
|
03/04/2011, 17:43
|
#11
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
du hast ja auch nach elseif noch ein if eingebaut... somit erwartet er erst das du dein elseif abschließt, und dann dein if. ausserdem hast du dem elseif keine parameter gegeben, was auchnicht zulässig ist.
|
|
|
03/04/2011, 18:32
|
#12
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 97
|
egal hatt sich erledigt geht alles:P thread kann geclosed oder gelöscht werden mir latte XD
|
|
|
 |
Similar Threads
|
IniRead~Input Problem
05/02/2010 - AutoIt - 2 Replies
mein 2ter thread,weil ich grad beim letzten Schritt daran verzweifel
Mein Ziel ist es die gewuenschte Realmlist abzuspeichern in der .ini datei und auf Buttondruck wieder hervorzurufen
und das 3 mal (sprich 3 Favoriten)
hier der Script
Es funktioniert alles soweit auch das speichern der Favoriten,nur das Aufrufen funktioniert nicht.
|
Input Problem(php)
04/05/2010 - Web Development - 4 Replies
abend com
ich habe eine frage an euch ich habe meine seite mit php gemacht
<td><input type="text" name="name" value size="20"><font color="#FF0000" face="Arial"> *Pflichtfeld</font></td>
</tr>
<tr>
<td align="right"><font color="#000000" face="Arial,helvetica" size="-1">Char:</font></td&g t;
<td><input type="text" name="ID:" value size="20"><font color="#FF0000" face="Arial"> *Pflichtfeld</font></td>
</tr>
<td align="right"><font color="#000000" face="Arial,helvetica"...
|
Input Problem(php)
04/05/2010 - Off Topic - 5 Replies
abend com
ich habe eine frage an euch ich habe meine seite mit php gemacht
<td><input type="text" name="name" value size="20"><font color="#FF0000" face="Arial"> *Pflichtfeld</font></td>
</tr>
<tr>
<td align="right"><font color="#000000" face="Arial,helvetica" size="-1">Char:</font></td&g t;
<td><input type="text" name="ID:" value size="20"><font color="#FF0000" face="Arial"> *Pflichtfeld</font></td>
</tr>
<td align="right"><font color="#000000" face="Arial,helvetica"...
|
Sun W PROBLEM INPUT PARAM ERROR 4
08/01/2009 - SRO Private Server - 7 Replies
well i have sun world client full , no patchs . no programs, no pks, and data , just patch chinese and when i launch i get this error this happend after the update 100 cap and skills
|
Need some input please
07/10/2009 - Dekaron Private Server - 9 Replies
OKay guys i got my client packed but i only have 2 problems:
The loading map screen for deathlands is white and blank. also the minimap is blank. At first my mobs were pink but i reinstalled the textures and it fixed it. I reinstallled the files from data/texture/minimap and the loading one in texture/ui/game/loading.
Wondering if anyone else might have an idea
EDIT:: Its all new maps but they worked fine in unpacked mode same textures and etc
...
|
All times are GMT +1. The time now is 09:42.
|
|