das sieht gut aus
nur schade, das ich gar nicht weiss, was ich damit alles anstellen kann
da ich schon wieder was simples suche
wie kann ich es umsetzen, das man nur 1-9 eingeben kann und nicht > 10?
das sieht gut aus
nur schade, das ich gar nicht weiss, was ich damit alles anstellen kann
da ich schon wieder was simples suche
wie kann ich es umsetzen, das man nur 1-9 eingeben kann und nicht > 10?
man bin ich blind
[autoit]$ES_NUMBER
[/autoit]das ist genau das was ich gesucht habe!!!
"Float Zahlen" brauche ich hier nicht.
Vielen Dank!!! :] :]
PS: das kommt davon, wenn ich mit meinen sehr schlechten englich, die englische hilfe durchsuche (nichts find) :weinen:
hätte ich in die deutsche hilfe geschaut, wäre ich vileicht füntig geworden :baby:
Danke
hallo, ich komme gerade nicht darauf.
ich möchte, das man in einen "GUICtrlCreateInput" nur zahlen eingeben kann.
danke schon im vorfeld
Greenhorn, unter XP oder Vista?
unter Vista geht das nicht so einfach
wenn ich den button2 drücke, soll der code wo unter den button2 kommt funktionieren.
zb:
das das programm sich schliesst "exit" oder das die schleife des button1 beentet wird "exitloop" oder der gleichen.
ja das ist ja die lösung die ich davor angesprochen habe.
da ich nach jeden kleinen schriet eine func pause aufrufe, kann ich diese prüfung hier schön rein packen
nur meine beiden schnipsel gehen nicht
ich muss doch so den "Button2" prüfen, oder?
hehe, ich hätte eine möglichkeit
der stop button hat die ID 70.
aber ich kann ihn nicht auslesen, oder habe ich da einen denkfehler?
[autoit]; bs1
If GUICtrlRead($Button2) = 70 Then Exit
;bs2
If $Button2 = 70 Then Exit
ytwinky, bischen kürzer
aber wärend der pause geht der exit button auch nicht.
@Tam0r, es ist keine richtig beabsichtigte pasue.
ich lade mal einen kleinen teile des echten codes
aber nicht schimpfen, ich weis selbst, das ich das irgend wie sehr komisch erstellt habe
#include <GUIConstants.au3>
$Simulator = GUICreate("Fahrweg Simulator", 715, 553, 448, 372)
[/autoit] [autoit][/autoit] [autoit]$Pic30 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\blau.jpg", 195, 266, 35, 20, BitOR($SS_NOTIFY, $WS_GROUP))
[/autoit] [autoit][/autoit] [autoit]$Pic20 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 619, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic19 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 559, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic18 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 589, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic17 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 529, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic16 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 499, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic15 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 469, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic14 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 439, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic13 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 409, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic12 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 379, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic11 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 349, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic10 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 319, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic9 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 289, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic8 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 259, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic7 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 229, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic6 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 199, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic5 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 169, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic4 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 139, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic3 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 109, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic2 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 79, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic1 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\grün.jpg", 49, 365, 28, 76, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic29 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 627, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic28 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 597, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic27 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 387, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic26 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 357, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic25 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 267, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic24 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 147, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic23 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 117, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic22 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 87, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Pic21 = GUICtrlCreatePic("D:\Ablage\Programme\AutoIt\scripte\Galvano-Anlage\rot.jpg", 57, 358, 12, 68, BitOR($SS_NOTIFY, $WS_GROUP))
$Label1 = GUICtrlCreateLabel("1", 626, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("2", 596, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("3", 566, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("4", 536, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label5 = GUICtrlCreateLabel("5", 506, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label6 = GUICtrlCreateLabel("6", 476, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label7 = GUICtrlCreateLabel("7", 445, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label8 = GUICtrlCreateLabel("8", 415, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label9 = GUICtrlCreateLabel("9", 385, 445, 15, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label10 = GUICtrlCreateLabel("10", 351, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label11 = GUICtrlCreateLabel("11", 321, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label12 = GUICtrlCreateLabel("12", 290, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label13 = GUICtrlCreateLabel("13", 260, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label14 = GUICtrlCreateLabel("14", 230, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label15 = GUICtrlCreateLabel("15", 200, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label16 = GUICtrlCreateLabel("16", 170, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label17 = GUICtrlCreateLabel("17", 140, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label18 = GUICtrlCreateLabel("18", 109, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label19 = GUICtrlCreateLabel("19", 79, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$Label20 = GUICtrlCreateLabel("20", 50, 445, 26, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
$GroupBox1 = GUICtrlCreateGroup("", 36, 17, 249, 185)
[/autoit] [autoit][/autoit] [autoit]$Label21 = GUICtrlCreateLabel("Produkt Name:", 92, 41, 142, 28)
GUICtrlSetFont(-1, 13, 800, 4, "MS Sans Serif")
$Label22 = GUICtrlCreateLabel("Version: 1.0", 125, 95, 60, 17)
[/autoit] [autoit][/autoit] [autoit]$Label23 = GUICtrlCreateLabel("Copyright: Michael Schmitt", 92, 137, 129, 17)
[/autoit] [autoit][/autoit] [autoit]$Label24 = GUICtrlCreateLabel("Comments: Alte Gestell-Anlage", 84, 161, 148, 17)
[/autoit] [autoit][/autoit] [autoit]$Label25 = GUICtrlCreateLabel("Anlagen Simulator", 115, 75, 89, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Automatik", 519, 63, 137, 113, $BS_CENTER)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group1 = GUICtrlCreateGroup("Farbe", 351, 71, 121, 97)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("Gestell - Anlage", 25, 237, 649, 265)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label26 = GUICtrlCreateLabel("Grundstellung", 280, 504, 150, 28)
GUICtrlSetFont(-1, 13, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x008000)
$Radio1 = GUICtrlCreateRadio("Gelb", 375, 98, 57, 17)
GUICtrlSetState($Radio1, $GUI_CHECKED)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
$Radio2 = GUICtrlCreateRadio("Schwarz", 375, 126, 89, 17)
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Start", 550, 87, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Stop", 550, 133, 75, 25, 0)
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$fpos = 266
$fpos1 = 615
$fpos1_5 = 600
$fpos2 = 585
$fpos2_5 = 570
$fpos3 = 555
$fpos3_5 = 540
$fpos4 = 525
$fpos4_5 = 510
$fpos5 = 495
$fpos5_5 = 480
$fpos6 = 465
$fpos6_5 = 450
$fpos7 = 435
$fpos7_5 = 420
$fpos8 = 405
$fpos8_5 = 390
$fpos9 = 375
$fpos9_5 = 360
$fpos10 = 345
$fpos10_5 = 330
$fpos11 = 315
$fpos11_5 = 300
$fpos12 = 285
$fpos12_5 = 270
$fpos13 = 255
$fpos13_5 = 240
$fpos14 = 225
$fpos14_5 = 210
$fpos15 = 195
$fpos15_5 = 180
$fpos16 = 165
$fpos16_5 = 150
$fpos17 = 135
$fpos17_5 = 120
$fpos18 = 105
$fpos18_5 = 90
$fpos19 = 75
$fpos19_5 = 60
$fpos20 = 45
$wtpos_o = 287
$wtpos_om = 310
$wtpos_um = 335
$wtpos_u = 358
$ko = -12 ; Träger - 12 !!
[/autoit] [autoit][/autoit] [autoit]$Pic00 = $Pic24
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1
_17()
_18()
_19()
WEnd
Case $Button2
_grund()
EndSwitch
WEnd
Func _17()
$Pic24 = $Pic00
_l15_17()
ControlSetText("", "", $Label26, "Zinkbad")
_h17()
_v17_16()
ControlSetText("", "", $Label26, "Spüle")
_s16_24()
_h16_24()
_v16_15()
_s15()
_l15_1()
ControlSetText("", "", $Label26, "Be-Endlade")
_h1()
_v1_11()
ControlSetText("", "", $Label26, "HCL 2%")
_s11()
_l11_2()
ControlSetText("", "", $Label26, "Trockner")
_h2()
_v2_1()
ControlSetText("", "", $Label26, "Be-Endlade")
_s1()
_l1_11()
ControlSetText("", "", $Label26, "HCL 2%")
_h11()
_v11_12()
ControlSetText("", "", $Label26, "Spüle")
_s12()
_h12()
_v12_16()
_s16_29()
_h16_29()
_v16_17()
ControlSetText("", "", $Label26, "Zinkbad")
_s17()
_l17_15()
ControlSetText("", "", $Label26, "Spüle")
_h15()
_v15_14()
_s14()
_l14_9()
_h9()
If GUICtrlRead($Radio1) = 1 Then _gelb() ; Gelb Chromatieren
If GUICtrlRead($Radio2) = 1 Then _schw() ; Schwarz Chromatieren
ControlSetText("", "", $Label26, "Spüle")
_s6()
_h6()
_v6_5()
_s5()
_h5()
_v5_2()
ControlSetText("", "", $Label26, "Trockner")
_s2()
_l2_14()
ControlSetText("", "", $Label26, "Spüle")
_h14()
_v14_9()
_s9()
_l9_15()
ControlSetText("", "", $Label26, "Grundstellung")
Sleep(2000) ; Grundstellung
_grund()
EndFunc ;==>_17
Func _18()
$Pic24 = $Pic23
_l15_18()
ControlSetText("", "", $Label26, "Zinkbad")
_h18()
_v18_16()
ControlSetText("", "", $Label26, "Spüle")
_s16_24()
_h16_24()
_v16_15()
_s15()
_l15_1()
ControlSetText("", "", $Label26, "Be-Endlade")
_h1()
_v1_11()
ControlSetText("", "", $Label26, "HCL 2%")
_s11()
_l11_2()
ControlSetText("", "", $Label26, "Trockner")
_h2()
_v2_1()
ControlSetText("", "", $Label26, "Be-Endlade")
_s1()
_l1_11()
ControlSetText("", "", $Label26, "HCL 2%")
_h11()
_v11_12()
ControlSetText("", "", $Label26, "Spüle")
_s12()
_h12()
_v12_16()
_s16_29()
_h16_29()
_v16_18()
ControlSetText("", "", $Label26, "Zinkbad")
_s18()
_l18_15()
ControlSetText("", "", $Label26, "Spüle")
_h15()
_v15_14()
_s14()
_l14_9()
_h9()
If GUICtrlRead($Radio1) = 1 Then _gelb() ; Gelb Chromatieren
If GUICtrlRead($Radio2) = 1 Then _schw() ; Schwarz Chromatieren
ControlSetText("", "", $Label26, "Spüle")
_s6()
_h6()
_v6_5()
_s5()
_h5()
_v5_2()
ControlSetText("", "", $Label26, "Trockner")
_s2()
_l2_14()
ControlSetText("", "", $Label26, "Spüle")
_h14()
_v14_9()
_s9()
_l9_15()
ControlSetText("", "", $Label26, "Grundstellung")
Sleep(2000) ; Grundstellung
_grund()
EndFunc ;==>_18
Func _19()
$Pic24 = $Pic22
_l15_19()
ControlSetText("", "", $Label26, "Zinkbad")
_h19()
_v19_16()
ControlSetText("", "", $Label26, "Spüle")
_s16_24()
_h16_24()
_v16_15()
_s15()
_l15_1()
ControlSetText("", "", $Label26, "Be-Endlade")
_h1()
_v1_11()
ControlSetText("", "", $Label26, "HCL 2%")
_s11()
_l11_2()
ControlSetText("", "", $Label26, "Trockner")
_h2()
_v2_1()
ControlSetText("", "", $Label26, "Be-Endlade")
_s1()
_l1_11()
ControlSetText("", "", $Label26, "HCL 2%")
_h11()
_v11_12()
ControlSetText("", "", $Label26, "Spüle")
_s12()
_h12()
_v12_16()
_s16_29()
_h16_29()
_v16_19()
ControlSetText("", "", $Label26, "Zinkbad")
_s19()
_l19_15()
ControlSetText("", "", $Label26, "Spüle")
_h15()
_v15_14()
_s14()
_l14_9()
_h9()
If GUICtrlRead($Radio1) = 1 Then _gelb() ; Gelb Chromatieren
If GUICtrlRead($Radio2) = 1 Then _schw() ; Schwarz Chromatieren
ControlSetText("", "", $Label26, "Spüle")
_s6()
_h6()
_v6_5()
_s5()
_h5()
_v5_2()
ControlSetText("", "", $Label26, "Trockner")
_s2()
_l2_14()
ControlSetText("", "", $Label26, "Spüle")
_h14()
_v14_9()
_s9()
_l9_15()
ControlSetText("", "", $Label26, "Grundstellung")
Sleep(2000) ; Grundstellung
_grund()
EndFunc ;==>_19
Func _schw()
_v9_7()
ControlSetText("", "", $Label26, "Schwarz-Chr.")
_s7()
Sleep(2000) ; Chromatieren
_h7()
_v7_6()
EndFunc ;==>_schw
Func _gelb()
_v9_8()
ControlSetText("", "", $Label26, "Gelb-Chr.")
_s8()
Sleep(2000) ; Chromatieren
_h8()
_v8_6()
EndFunc ;==>_gelb
Func _grund()
GUICtrlSetPos($Pic30, 195, 266)
GUICtrlSetPos($Pic29, 627, 358)
GUICtrlSetPos($Pic28, 597, 358)
GUICtrlSetPos($Pic27, 387, 358)
GUICtrlSetPos($Pic26, 357, 358)
GUICtrlSetPos($Pic25, 267, 358)
GUICtrlSetPos($Pic24, 147, 358)
GUICtrlSetPos($Pic23, 117, 358)
GUICtrlSetPos($Pic22, 87, 358)
GUICtrlSetPos($Pic21, 57, 358)
EndFunc ;==>_grund
Func _h1()
_500()
GUICtrlSetPos($Pic29, $fpos1 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos1 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos1 - $ko, $wtpos_o)
EndFunc ;==>_h1
Func _h2()
_500()
GUICtrlSetPos($Pic28, $fpos2 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic28, $fpos2 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic28, $fpos2 - $ko, $wtpos_o)
EndFunc ;==>_h2
Func _h5()
_500()
GUICtrlSetPos($Pic27, $fpos5 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos5 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos5 - $ko, $wtpos_o)
EndFunc ;==>_h5
Func _h6()
_500()
GUICtrlSetPos($Pic27, $fpos6 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos6 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos6 - $ko, $wtpos_o)
EndFunc ;==>_h6
Func _h7()
_500()
GUICtrlSetPos($Pic27, $fpos7 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos7 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos7 - $ko, $wtpos_o)
EndFunc ;==>_h7
Func _h8()
_500()
GUICtrlSetPos($Pic27, $fpos8 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos8 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos8 - $ko, $wtpos_o)
EndFunc ;==>_h8
Func _h9()
_500()
GUICtrlSetPos($Pic27, $fpos9 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos9 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos9 - $ko, $wtpos_o)
EndFunc ;==>_h9
Func _h11()
_500()
GUICtrlSetPos($Pic29, $fpos11 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos11 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos11 - $ko, $wtpos_o)
EndFunc ;==>_h11
Func _h12()
_500()
GUICtrlSetPos($Pic29, $fpos12 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos12 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos12 - $ko, $wtpos_o)
EndFunc ;==>_h12
Func _h14()
_500()
GUICtrlSetPos($Pic24, $fpos14 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos14 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos14 - $ko, $wtpos_o)
EndFunc ;==>_h14
Func _h15()
_500()
GUICtrlSetPos($Pic24, $fpos15 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos15 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos15 - $ko, $wtpos_o)
EndFunc ;==>_h15
Func _h16_24()
_500()
GUICtrlSetPos($Pic24, $fpos16 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos16 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos16 - $ko, $wtpos_o)
EndFunc ;==>_h16_24
Func _h16_29()
_500()
GUICtrlSetPos($Pic29, $fpos16 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos16 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos16 - $ko, $wtpos_o)
EndFunc ;==>_h16_29
Func _h17()
_500()
GUICtrlSetPos($Pic24, $fpos17 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos17 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos17 - $ko, $wtpos_o)
EndFunc ;==>_h17
Func _h18()
_500()
GUICtrlSetPos($Pic24, $fpos18 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos18 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos18 - $ko, $wtpos_o)
EndFunc ;==>_h18
Func _h19()
_500()
GUICtrlSetPos($Pic24, $fpos19 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos19 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos19 - $ko, $wtpos_o)
EndFunc ;==>_h19
Func _s1()
_500()
GUICtrlSetPos($Pic28, $fpos1 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic28, $fpos1 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic28, $fpos1 - $ko, $wtpos_u)
EndFunc ;==>_s1
Func _s2()
_500()
GUICtrlSetPos($Pic27, $fpos2 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos2 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos2 - $ko, $wtpos_u)
EndFunc ;==>_s2
Func _s5()
_500()
GUICtrlSetPos($Pic27, $fpos5 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos5 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos5 - $ko, $wtpos_u)
EndFunc ;==>_s5
Func _s6()
_500()
GUICtrlSetPos($Pic27, $fpos6 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos6 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos6 - $ko, $wtpos_u)
EndFunc ;==>_s6
Func _s7()
_500()
GUICtrlSetPos($Pic27, $fpos7 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos7 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos7 - $ko, $wtpos_u)
EndFunc ;==>_s7
Func _s8()
_500()
GUICtrlSetPos($Pic27, $fpos8 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic27, $fpos8 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic27, $fpos8 - $ko, $wtpos_u)
EndFunc ;==>_s8
Func _s9()
_500()
GUICtrlSetPos($Pic24, $fpos9 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos9 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos9 - $ko, $wtpos_u)
EndFunc ;==>_s9
Func _s11()
_500()
GUICtrlSetPos($Pic29, $fpos11 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos11 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos11 - $ko, $wtpos_u)
EndFunc ;==>_s11
Func _s12()
_500()
GUICtrlSetPos($Pic29, $fpos12 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos12 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos12 - $ko, $wtpos_u)
EndFunc ;==>_s12
Func _s14()
_500()
GUICtrlSetPos($Pic24, $fpos14 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos14 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos14 - $ko, $wtpos_u)
EndFunc ;==>_s14
Func _s15()
_500()
GUICtrlSetPos($Pic24, $fpos15 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos15 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos15 - $ko, $wtpos_u)
EndFunc ;==>_s15
Func _s16_29()
_500()
GUICtrlSetPos($Pic29, $fpos16 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos16 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos16 - $ko, $wtpos_u)
EndFunc ;==>_s16_29
Func _s16_24()
_500()
GUICtrlSetPos($Pic24, $fpos16 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic24, $fpos16 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic24, $fpos16 - $ko, $wtpos_u)
EndFunc ;==>_s16_24
Func _s17()
_500()
GUICtrlSetPos($Pic29, $fpos17 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos17 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos17 - $ko, $wtpos_u)
EndFunc ;==>_s17
Func _s18()
_500()
GUICtrlSetPos($Pic29, $fpos18 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos18 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos18 - $ko, $wtpos_u)
EndFunc ;==>_s18
Func _s19()
_500()
GUICtrlSetPos($Pic29, $fpos19 - $ko, $wtpos_om)
_500()
GUICtrlSetPos($Pic29, $fpos19 - $ko, $wtpos_um)
_500()
GUICtrlSetPos($Pic29, $fpos19 - $ko, $wtpos_u)
EndFunc ;==>_s19
Func _l1_11()
_250()
GUICtrlSetPos($Pic30, $fpos1_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos2, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos2_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos3, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos3_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos4, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos4_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos5_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos6, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos6_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos7, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos7_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos8, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos8_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos9, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos9_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos10, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos10_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos11, $fpos)
EndFunc ;==>_l1_11
Func _l9_15()
_250()
GUICtrlSetPos($Pic30, $fpos9_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos10, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos10_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos11, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos11_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos12, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos12_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos13, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos13_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos14, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos14_5, $fpos)
_250()
GUICtrlSetPos($Pic30, $fpos15, $fpos)
EndFunc ;==>_l9_15
hehe männer, echt super eure hilfe!
nur leider geht das alles nicht
zu eurer entschultigung ist zu sagen, das ich einen kleinen rechtschreib fehler in meinem ersten code hatte
das sleep ist nicht 10 sondern einfach unentlich:
noch mal das BS:
ich habe mal 10sec. eingegeben.
in dieser zeit suche ich eine lösung um das script zu unterbrechen.
wie gesagt, der hotkey geht:
wie kann ich den stop bzw. exit button immer aktiv halten.
und da noch mal das script:
[autoit]HotKeySet("{ESC}", "Terminate")
[/autoit][autoit][/autoit][autoit]Func Terminate()
Exit
EndFunc
#include <GUIConstants.au3>
$Gui = GUICreate("Test", 146, 133, 704, 397)
$Button1 = GUICtrlCreateButton("Sleep", 32, 40, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Exit", 32, 72, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1
Sleep(10000)
WEnd
Case $Button2
Exit
EndSwitch
WEnd
edit: der kürzeste durchlauf der schleife ist 91sec.
hallo, ich erstelle mir gerade ein GUI.
jetzt habe ich da ein kleines problemchen
ich erkläre es mal en diesen kleinen BS:
[autoit]#include <GUIConstants.au3>
[/autoit][autoit][/autoit][autoit][/autoit][autoit]$Gui = GUICreate("Test", 146, 133, 704, 397)
$Button1 = GUICtrlCreateButton("Sleep", 32, 40, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Exit", 32, 72, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1
Sleep(10)
WEnd
Case $Button2
Exit
EndSwitch
WEnd
wie kann ich die Sleep schleife beim klick auf "exit" beenden?
mit hotkey ist es kein problem, will es aber mit den button vom GUI haben.
ich weis auch nicht, was der "Button2" für eine rückmeldung gibt, wenn er gedrückt wird.
sonst könnte ich es ja mit "AdlibEnable" prüfen.
hallo, weis jemand für was diese 64 bit exe ist?
download auf der orginale AutoIt seite:
http://www.autoitscript.com/autoit3/files/…AutoIt3_x64.exe
hallo, ja das ist eine gute ide.
ich brauche nicht die Checkbox, sondern etwas, wo ich eine kleine simulation darstellen kann.
die Checkbox hat sich hier halt angeboden, da sie optisch recht gut passte.
aber das mit den bildchen ist eine noch bessere ide.
ich werde mir das gleich mal 2 besorgen bzw. selbst machen
hallo, kann man die grösse der "GUICtrlCreateCheckbox" auch verändern?
das kästchen soll zb: 3 mal so gross sein wie normal.
oder so:
[autoit]$result = StringLeft(@ScriptDir, 2)
[/autoit]also "$result" ist das der buchstabe + ":" = "Z:"
hier mal ein auszug
[autoit]ElseIf FileExists(@ProgramFilesDir & "\ScreenShot2\ScreenShot2.exe") Then
FileCreateShortcut(@ProgramFilesDir & "\ScreenShot2\ScreenShot2.exe", @UserProfileDir & "\Anwendungsdaten\Microsoft\Internet Explorer\Quick Launch\ScreenShot2.lnk")
hm, bei mir damals unter xp, waren sie so angeordnet wie ich sie erstellt hatte
nana, ich kan keine verschlächterung zu xp feststellen.
mein xp sowie vista laufen bei mir perfekt
die beste lösung wäre "RunAsSet"
ja "#RequireAdmin" ist auch nicht schlecht, aber da ist dann nichts mit übergeben bzw. weiter arbeiten anderer programme, da hier alles gesperrt wird!
ich brauche das für meine silent scripte unter vista.
hallo, bei einigen meiner erstellten scripte brauche ich Admin rechte.
in der hilfe steht was von:
#requireadmin
[/autoit]aber das ganze verstehe ich leider nicht so recht (englisch zu schlecht)
oder kann ich im script den Admin + Passwort hinterlegen, das es dann so als admin script gestartet wird.
danke für eure hilfe
hallo, kann mir einer sagen ob ich hier einen denkfehler habe?
oder ist ein fehler in der aktuellen version "3.2.2.0"
egal ob ich den mode ändere, es wird mir immer das gleiche ausgegeben.
[autoit]Opt("ColorMode", 1)
oder
Opt("ColorMode", 0)
zum ermitteln mache ich es so:
[autoit]Opt("ColorMode", 0)
; Opt("ColorMode", 1)
HotKeySet("{F8}", "_search")
[/autoit][autoit][/autoit][autoit]Func _search()
$pos = MouseGetPos()
$searchcolor =PixelGetColor( $pos[0] , $pos[1] )
ConsoleWrite($searchcolor)
EndFunc
While 1
Sleep(5)
WEnd