|
You last visited: Today at 12:23
Advertisement
Brauche Hilfe bitte!(AutoIt)
Discussion on Brauche Hilfe bitte!(AutoIt) within the AutoIt forum part of the Coders Den category.
07/15/2011, 08:12
|
#1
|
elite*gold: 0
Join Date: Jun 2011
Posts: 49
Received Thanks: 17
|
Brauche Hilfe bitte!(AutoIt)
Hallo,
Ich will mit AutoIt ein Programm erstellen, doch ich bekomm es nicht hin.
Was er tun soll:
Bei der GUI hab ich Radioboxen:F,4,C,1,2,3.
Und wenn der User F und 3 ankreuzt soll er f Space 3 schreiben(aber nur wenn der User F drückt).
Und wenn der User 4 und 2 ankreuzt soll er 4 Space 2 schreiben(aber nur wenn der User 4 drückt).
Alles auf einmal.
Starten, stoppen und Schließen hab ich schon gemacht.
Bisheriges Script:
PHP Code:
Global $Paused #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("[S4League]RC Bot", 413, 261, 192, 124) $Radio1 = GUICtrlCreateRadio("F", 328, 192, 25, 17) $Radio2 = GUICtrlCreateRadio("4", 328, 216, 25, 17) $Radio3 = GUICtrlCreateRadio("C", 328, 240, 25, 17) $Group1 = GUICtrlCreateGroup("Sets", 312, 176, 73, 81) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("Start", 32, 176, 75, 25, $WS_GROUP) $Button2 = GUICtrlCreateButton("Pause", 128, 176, 75, 25, $WS_GROUP) $Button3 = GUICtrlCreateButton("Pause Ende", 224, 176, 75, 25, $WS_GROUP) $Button4 = GUICtrlCreateButton("Exit", 128, 208, 75, 25, $WS_GROUP) $Group2 = GUICtrlCreateGroup("Weapinslot", 312, 64, 73, 97) $Radio4 = GUICtrlCreateRadio("1", 320, 88, 25, 17) $Radio5 = GUICtrlCreateRadio("2", 320, 112, 25, 17) $Radio6 = GUICtrlCreateRadio("3", 320, 136, 25, 17) $Pic1 = GUICtrlCreatePic("C:\Users\kagan\Desktop\33368750s4-pour-blog-jpg.jpg", 0, 0, 412, 260, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button4 Exit Case $Button1 ToolTip ("Jetzt müsste es funktionieren",0,0) Case $Button2 $Paused = NOT $Paused Case $Button3 $Paused = NOT $Paused EndSwitch WEnd
|
|
|
07/15/2011, 14:25
|
#2
|
elite*gold: 0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
|
Mit If-Abfragen kannst du das machen.
|
|
|
07/15/2011, 15:45
|
#3
|
elite*gold: 0
Join Date: Jun 2011
Posts: 49
Received Thanks: 17
|
Quote:
Originally Posted by xKraizy
Mit If-Abfragen kannst du das machen.
|
Kannst du es mal bitte verbessern xD und zurück schreiben.
|
|
|
07/15/2011, 15:49
|
#4
|
elite*gold: 0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
|
Was verbessern? Ich sehe keine falschen If-Abfragen bzw. gar keine..
|
|
|
07/15/2011, 20:51
|
#5
|
elite*gold: 0
Join Date: Jun 2011
Posts: 49
Received Thanks: 17
|
Quote:
Originally Posted by xKraizy
Mit If-Abfragen kannst du das machen.
|
Kannst du mir dazu ein Beispiel geben? xD
Also:
If...
EndIf
|
|
|
07/16/2011, 19:21
|
#6
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
Wie wärs mit...
Code:
if guictrlread($Radio1) = 1 then
Send("blabla was auch immer xD")
endif?!
|
|
|
07/17/2011, 20:16
|
#7
|
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
|
#moved
|
|
|
07/18/2011, 03:11
|
#8
|
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
|
|
|
|
07/18/2011, 17:57
|
#9
|
elite*gold: 59
Join Date: Jun 2010
Posts: 1,945
Received Thanks: 424
|
Code:
Global $Paused
#include <Misc.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("[S4League]RC Bot", 413, 261, 192, 124)
$Radio1 = GUICtrlCreateRadio("F", 328, 192, 25, 17)
$Radio2 = GUICtrlCreateRadio("4", 328, 216, 25, 17)
$Radio3 = GUICtrlCreateRadio("C", 328, 240, 25, 17)
$Group1 = GUICtrlCreateGroup("Sets", 312, 176, 73, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Start", 32, 176, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Pause", 128, 176, 75, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Pause Ende", 224, 176, 75, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Exit", 128, 208, 75, 25, $WS_GROUP)
$Group2 = GUICtrlCreateGroup("Weapinslot", 312, 64, 73, 97)
$Radio4 = GUICtrlCreateRadio("1", 320, 88, 25, 17)
$Radio5 = GUICtrlCreateRadio("2", 320, 112, 25, 17)
$Radio6 = GUICtrlCreateRadio("3", 320, 136, 25, 17)
$Pic1 = GUICtrlCreatePic("C:\Users\kagan\Desktop\33368750s4-pour-blog-jpg.jpg", 0, 0, 412, 260, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button4
Exit
Case $Button1
;ToolTip ("Jetzt müsste es funktionieren",0,0)
$Radio1read = GuiCtrlRead ($Radio1)
$Radio2read = GuiCtrlRead ($Radio2)
$Radio3read = GuiCtrlRead ($Radio3)
$Radio4read = GuiCtrlRead ($Radio4)
$Radio5read = GuiCtrlRead ($Radio5)
$Radio6read = GuiCtrlRead ($Radio6)
$dll = DllOpen("user32.dll")
While 1
If $Radio1read And $Radio6read = 1 And _IsPressed("46", $dll) Then
Send (" 3")
Sleep (1000)
ElseIf $Radio5read And $Radio2read = 1 And _IsPressed("64", $dll) Then
Send (" 2")
Sleep(1000)
EndIf
WEnd
Case $Button2
$Paused = NOT $Paused
Case $Button3
$Paused = NOT $Paused
EndSwitch
WEnd
So könnte es ungefähr aussehen..
|
|
|
 |
Similar Threads
|
Server Problem bitte helft Leute bitte brauche eure hilfe sauu dringen
07/18/2011 - Metin2 Private Server - 20 Replies
Hi leute wenn man seinen server ya on bringt (ned das erste mal das ich ihn on bring) dann kommt am ende ya immer das operation timed out 7 mal aber jez steht da Operation reciefet 1000 mal der server startet so einfach ned was kann ich da maachen
|
Brauche Hilfe bei AutoIT
12/12/2010 - AutoIt - 4 Replies
Hey, ich möchte einen kleinen Switch Bot für Metin2 schreiben.
Eigentlich komm ich auch gut voran..
Wie kann ich dem Bot sagen, dass er zumebsipiel wie hier
http://img161.imagevenue.com/loc511/th_64203_Vms_ 122_511lo.jpg
merken soll, dass die Waffe 14 Dss hat? Mit PixelGetColor hab ichs schon versucht aber der ließt ja dann immer nur einen Pixel aus und nicht mehrere zusammen...
|
Brauche Hilfe (AutoIT)
04/07/2009 - AutoIt - 4 Replies
Hallo Leute ich bekomme den skript einfach nicht hin. Ich gebe meine Daten ein aund er schreibt 79 79 79 79 immer nur. Antatt meinen Login Daten woran kann das liegen..?..
kann mir pls jmd. den Bot richtig machen..?..
Hier der Skript:
------------------------------------------------- ----------------------
HotKeySet ( "{Numpad1}" , "start")
HotKeySet ( "{Numpad2}" , "ende")
#include <GUIConstants.au3>
|
All times are GMT +1. The time now is 12:24.
|
|