|
You last visited: Today at 00:14
Advertisement
speicherfunktion und checkbox lesen?
Discussion on speicherfunktion und checkbox lesen? within the AutoIt forum part of the Coders Den category.
01/02/2010, 14:53
|
#16
|
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
|
|
|
|
01/02/2010, 15:23
|
#17
|
elite*gold: 9
Join Date: Apr 2009
Posts: 10,163
Received Thanks: 3,810
|
Quote:
Originally Posted by 93lucas
Ich hatte noch ne Frage
Und jetzt hab ich au noch ne Frage wie mach ich die speicherfunktion bei ner combobox?
|
IniWrite("Name.ini", "Einstellungen", "Zeile 1", GUICtrlRead($Variable))
$IniRead = IniRead("Name.ini", "Einstellungen", "Zeile 1", "")
GUIctrlSetState($Variable, $IniRead)
Bei ner Guictrlcreatecombo gehts genauso wie bei einer Guictrlcreateinput.
|
|
|
01/02/2010, 15:47
|
#18
|
elite*gold: 0
Join Date: Aug 2009
Posts: 225
Received Thanks: 68
|
geht ned hier der code
da will ich ne speicherfunktion
PHP Code:
$Combo1 = GUICtrlCreateCombo("", 136, 352, 65, 25)
GUICtrlSetData($Combo1,"1")
GUICtrlSetData($Combo1,"2")
GUICtrlSetData($Combo1,"3")
GUICtrlSetData($Combo1,"4")
GUICtrlSetData($Combo1,"F1")
GUICtrlSetData($Combo1,"F2")
GUICtrlSetData($Combo1,"F3")
GUICtrlSetData($Combo1,"F4")
$Combo2 = GUICtrlCreateCombo("", 56, 352, 65, 25)
GUICtrlSetData($Combo2,"1")
GUICtrlSetData($Combo2,"2")
GUICtrlSetData($Combo2,"3")
GUICtrlSetData($Combo2,"4")
GUICtrlSetData($Combo2,"F1")
GUICtrlSetData($Combo2,"F2")
GUICtrlSetData($Combo2,"F3")
GUICtrlSetData($Combo2,"F4")
|
|
|
01/02/2010, 16:16
|
#19
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
|
Code:
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 162, 133, 192, 124)
GUISetBkColor(0xFFFFFF)
$Combo1 = GUICtrlCreateCombo("1", 8, 8, 145, 25)
GUICtrlSetData(-1, "2|3|4|F1|F2|F3|F4")
$Button1 = GUICtrlCreateButton("Save", 36, 48, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Load", 36, 88, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
IniWrite("Test.ini", "Status", "Combo", GUICtrlRead($Combo1))
Case $Button2
GUICtrlSetData($Combo1, IniRead("Test.ini", "Status", "Combo", ""))
EndSwitch
WEnd
Ist doch genau das gleiche...
|
|
|
 |
|
Similar Threads
|
Checkbox Hilfe!
09/11/2010 - AutoIt - 6 Replies
Hallo ich brauche schnell eure hilfe...
Ich schreibe einen Trainer und möchte,
dass wenn z.B.
$Checkbox14 angekreuzt ist,
$Checkbox15 nicht angekreuzt ist.
und wenn dann
|
Help-CheckBox zuweisen!
11/29/2009 - AutoIt - 13 Replies
Hallo Leute
ich hab mal wieder ne Frage xD
Also, ich wollte mal mit AutoIT ein Programm schreiben für mich und meine freunde und so, dass wenn sie den Pc neumachen das dieses Programm halt die wichtigsten bzw. auch guten Programme automatisch insterliert.
Das mit dem Automatisch insterlieren war ja kein Problem für mich, doch wie mache ich es das er jetzt z.b. anklickt das er Antivir haben will und Firfox, dass er die nacheinander Insterliert.
Also hier noch mal mehr Infos.
Wenn er jetzt...
|
checkbox FOCUS & DISABLE
11/09/2009 - AutoIt - 1 Replies
Hy, wie bekomm ich das hin das wenn die checkbox unchecked is der button nicht anklickbar ist und wenn sie checked is der button anklickbar is... ich weis komisch formuliert. So habs ich getestet aber wenn ich dann Checkbox anklicke bleibt der button trotzdem "unchecked" was mach ich da falsch ?
$Checkbox1 = 0
test()
Func test()
If $Checkbox1 = 0 Then
$Button1 = GUICtrlSetState(-1, $GUI_DISABLE)
|
checkbox auslesen ?
05/27/2009 - AutoIt - 3 Replies
Hey,
brauche hilfe da weder search hier im forum noch au3 help was ausgespuckt hat
wie bekomme ich checkbox ausgelesen (vieleicht so wie $radio??) sodas ich diese dann in eine if/else reinpacken kann
hier mal ansatz
//Edit:so habe es hinbekommen aber wie packe ich diese nun in eine if/else also das wenn z.b. alle 3 ausgewählt sind er auch alle 3 ausführt?
danke euch schonmal ;D
|
AutoIT - Transparente Checkbox
07/19/2007 - General Coding - 2 Replies
-
|
All times are GMT +1. The time now is 00:14.
|
|