|
You last visited: Today at 10:04
Advertisement
[Problem With Input]
Discussion on [Problem With Input] within the AutoIt forum part of the Coders Den category.
04/09/2015, 15:56
|
#1
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
[Problem With Input]
#Solved Thanks To ►D3v1n3r
Quote:
Originally Posted by ►D3v1n3r
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form2 = GUICreate("", 496, 143, -1, -1)
$Input1 = GUICtrlCreateInput("", 232, 88, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Button2 = GUICtrlCreateButton("Back", 240, 112, 107, 25)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 621, 357, -1, -1)
$Button1 = GUICtrlCreateButton("Show", 24, 40, 131, 25)
GUISetState(@SW_SHOW)
#EndRegion
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_Hide, "S4Client.exe")
GUISetState(@SW_SHOW, $Form2)
Case $Button2
GUISetState(@SW_Hide, "S4Client.exe")
GUISetState(@SW_SHOW, $Form1)
EndSwitch
WEnd
|
|
|
|
04/09/2015, 16:43
|
#2
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
In that script I don't see any error but your error is that you access a variable before it is declared.
Something like this
Code:
MsgBox(0,0, $s)
$s = "asd"
|
|
|
04/09/2015, 16:50
|
#3
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Its not the full script,
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form2 = GUICreate("", 496, 143, -1, -1)
$Input1 = GUICtrlCreateInput("", 232, 88, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Button2 = GUICtrlCreateButton("Back", 240, 112, 107, 25)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 621, 357, -1, -1)
$Button1 = GUICtrlCreateButton("Show", 24, 40, 131, 25)
GUISetState(@SW_SHOW)
#EndRegion
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_Hide, "S4Client.exe")
GUISetState(@SW_SHOW, $Form2)
Case $Button2
GUISetState(@SW_Hide, "S4Client.exe")
GUISetState(@SW_SHOW, $Form1)
EndSwitch
WEnd
|
|
|
04/09/2015, 17:05
|
#4
|
elite*gold: 10
Join Date: Dec 2013
Posts: 1,224
Received Thanks: 3,095
|
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form2 = GUICreate("", 496, 143, -1, -1)
$Input1 = GUICtrlCreateInput("", 232, 88, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Button2 = GUICtrlCreateButton("Back", 240, 112, 107, 25)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 621, 357, -1, -1)
$Button1 = GUICtrlCreateButton("Show", 24, 40, 131, 25)
GUISetState(@SW_SHOW)
#EndRegion
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_Hide, "S4Client.exe")
GUISetState(@SW_SHOW, $Form2)
Case $Button2
GUISetState(@SW_Hide, "S4Client.exe")
GUISetState(@SW_SHOW, $Form1)
EndSwitch
WEnd
|
|
|
04/09/2015, 18:19
|
#5
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Thank you deviner also thank you alpines. <3
deviner its work but what you have changed?
|
|
|
04/09/2015, 18:31
|
#6
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
You have a linebreak in front of the BitOr.
|
|
|
04/09/2015, 18:39
|
#7
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Code:
$Input1 = GUICtrlCreateInput("", 232, 88, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
Also that's will be error i dont know what he have changed.
|
|
|
04/09/2015, 19:01
|
#8
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
|
Quote:
Originally Posted by HaMaDa..
Code:
$Input1 = GUICtrlCreateInput("", 232, 88, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
Also that's will be error i dont know what he have changed.
|
You shouldn't delete your main post. It can be helpful for people having the same problem
|
|
|
04/09/2015, 19:06
|
#9
|
elite*gold: 37
Join Date: May 2014
Posts: 1,835
Received Thanks: 9,833
|
Okay.
|
|
|
 |
Similar Threads
|
[Java]could not get audio input stream from input file
07/29/2013 - General Coding - 7 Replies
Ich Habe das Spiel Tetris geschrieben mit einer Hintergrundmusik, die bis zum GameOver in einem Loop läuft, passt alles auch. Die Datei ist 35,4 MB groß und .mp3. Wenn ich aber nen GameOver habe, soll eine andere Musi kommen und die alte stoppen. Klappt auch soweit, aber wenn er die neue Musik abspielen will, kommt die Exception daoben. Die Datei ist nur 282 KB groß und dauert 17 Sekunden, die andere 4 min. Weiß wer Rat, bzw. braucht ihr Code-Teile?
Die ganze Exception:
Jul 28, 2013...
|
problem mit input
03/04/2011 - AutoIt - 11 Replies
#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)
|
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"...
|
All times are GMT +1. The time now is 10:04.
|
|