Hallo Leute Ich Wollte Nur Was Fragen Und zwar kan man buttons eigentlich auch als (ich weis nit wie das heist)
sagen wir mal input verwenden ?
also kann ich zum beispiel ne gui mit 3 buttons machen und wenn z.b. button 2 gedrückt wird ist das wie wenn man etwas in einen input geschrieben hatt ?
also genauer wenn ich einen code habe für ein homepage design
aber ich will das die das anpassen können
könnte man das dann über eine gui regeln ?
also man klickt auf nen button mit dem namen blau und wenn das geschieht wird in einer zeile meines programs der klick auf den button so gelesen als hätte jemand den befehl für blau in einen input geschrieben ich weis das steht sicher in der hilfe aber ich habe nichts gefunden...
naja wenn ich wüsste nach was ich suchen sollte wäre es warscheinlich leichter
Butten Als Input Umfunktionieren
-
- [ offen ]
-
Eistee -
14. August 2007 um 13:15 -
Geschlossen -
Erledigt
-
-
GUICtrlSetData ?
Ich könnt dir ja ein Beispiel schreiben, aber ich mag deine Rechtschreibung nicht und es ist nicht schwer zu machenhab heute meinen fiesen Tag
-
- Offizieller Beitrag
Klar geht das.
[autoit]
Am Besten du verwendest OnEvent - Mode.Opt("GUIOnEventMode", 1)
[/autoit]
;...
GUICtrlCreateButton("Blau", 20, 20, 40, 25)
GUICtrlSetOnEvent(-1, "_BlauClick")
;..
;..
Func _BlauClick()
; Send("Blau") oder wie auch immer das realisiert sein soll
EndFuncEdit peethebee: OnEventMode auch angemacht
-
also im grossen und ganzen so
Spoiler anzeigen
[autoit]Filewrite("text.txt" , "hallo das hier ist ein
[/autoit]
text")
aber das problem hier ist in diesem text soll noch etwas verändert werden
und zwar wenn mann auf den button blau klickt dann soll z.b. zwischen hallo und das "duda" dazwischen stehen
wie das mit nem input möglich ist ist mir klar aber wie ich dem button als input verwende das is mein probok das beispiel ansich is nit sehr gut aber ich bin nicht zuhause und habe hier kein autoit weshalb ich kein richtiges beispiel mit gui und allem verwenden kann
ich hoffe man versteht trotzdem was ich meine danke -
- Offizieller Beitrag
[autoit]$input = ''
[/autoit][autoit][/autoit][autoit]Func _BlauClick()
[/autoit]
$input = 'DuDa'
Filewrite("text.txt" , "hallo " & $input & " das hier ist ein text")
EndFuncWäre schon besser, wenn du Code reinstellst, damit man sieht, was es überhaupt werden soll.
-
joa danke für die hilfe ich werde das noch nacholen danke bis bald