|
You last visited: Today at 04:37
Advertisement
AutoIT Problem
Discussion on AutoIT Problem within the AutoIt forum part of the Coders Den category.
03/25/2010, 14:49
|
#1
|
elite*gold: 1
Join Date: Dec 2009
Posts: 108
Received Thanks: 12
|
AutoIT Problem
undzwar wollt ich nur einen sehr einfachen "Bot" erstellen der mir accounts in einem MMORPG erstellt und dann löscht....
generell brauch ich nur:
sleep(x)
mouseclick(blabla)
-II-
wenn ich den dann starte nur auf dem desktop dann bewegt sich die maus
aber wenn ich das spiel nu starte und dann den bot dann bewegt sich die maus nicht bzw geht an den rand des fensters
kann mir wer helfen?
------------------------------------------------------------------------------------------
English:
AutoIt problem
undzwar I want a very simple "bot" to create the accounts I created in a MMORPG and then deletes it ....
I generally only need:
sleep (x)
mouseclick (blah)
II
if I then start only on the desktop then move the mouse
but if I play nu start and then the bot will not move the mouse or go to the edge of the window
Who can help me?
|
|
|
03/25/2010, 14:55
|
#2
|
elite*gold: 320
Join Date: Oct 2009
Posts: 697
Received Thanks: 1,643
|
Script?
Sonst kann ich dir vllt empfehlen die Coordmodes auf Client zu stellen.
|
|
|
03/27/2010, 14:12
|
#3
|
elite*gold: 30
Join Date: Apr 2009
Posts: 1,381
Received Thanks: 274
|
Vllt mit Adimstrator ausführen oder am Anfang eines Skript
einfügen
Womit hast du den die Koodrs gefunden mit Autoit Window Info?
Wenn ja oben auf Options und Coord Mode dann Window
|
|
|
03/27/2010, 14:37
|
#4
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
oder halt vlt. mal mit ControlClick versuchen
|
|
|
09/15/2010, 12:34
|
#5
|
elite*gold: 0
Join Date: Aug 2010
Posts: 13
Received Thanks: 0
|
problem
hi ich hab n problem bin anfänger also bitte nich zu kompliziert antworten 
des script is noch nich ganz fertig aba er sagt imma bei case $button1 bzw. 2 is igw was mit switch falsch...
PHP Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.6.1
Author: Claudio Schmidt
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <GUIConstants.au3>
Opt("GUIDataSeparatorChar", "")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Gamerbot by ichbinstark", 553, 342, 256, 280)
$Input1 = GUICtrlCreateInput("", 19, 66, 440, 21)
$Label1 = GUICtrlCreateLabel("Welches Spiel wollen Sie öffnen?", 21, 26, 206, 22)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0x0000FF)
$GO = GUICtrlCreateButton("GO", 204, 146, 126, 91, 0)
GUICtrlSetFont(-1, 20, 800, 0, "Trebuchet MS")
GUICtrlSetColor(-1, 0xFF0000)
$Button1 = GUICtrlCreateButton("Tastenkonfigurationen", 181, 307, 177, 24, 0)
$Button2 = GUICtrlCreateButton("....", 460, 62, 32, 27, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
WEnd
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GO
If $Input1 = "" Then
MsgBox (16, "Error", "Error:Du muss schon ein spiel auswählen" )
Else
Run ( $pfad )
Case $Button1
#include <GUIConstants.au3>
Opt("GUIDataSeparatorChar", "")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Tastenkonfigurationen", 586, 559, 387, 239)
$Checkbox12 = GUICtrlCreateCheckbox("Kombination 12", 20, 361, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
GUICtrlSetTip(-1, "")
$Checkbox13 = GUICtrlCreateCheckbox("Kombination 13", 20, 390, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox14 = GUICtrlCreateCheckbox("Kombination 14", 20, 420, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox1 = GUICtrlCreateCheckbox("Kombination 1", 20, 30, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox2 = GUICtrlCreateCheckbox("Kombination 2", 20, 60, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox3 = GUICtrlCreateCheckbox("Kombination 3", 20, 90, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox4 = GUICtrlCreateCheckbox("Kombination 4", 20, 120, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox5 = GUICtrlCreateCheckbox("Kombination 5", 20, 150, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox6 = GUICtrlCreateCheckbox("Kombination 6", 20, 180, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox8 = GUICtrlCreateCheckbox("Kombination 8", 20, 240, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox9 = GUICtrlCreateCheckbox("Kombination 9", 20, 270, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox10 = GUICtrlCreateCheckbox("Kombination 10", 20, 300, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox11 = GUICtrlCreateCheckbox("Kombination 11", 20, 330, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox7 = GUICtrlCreateCheckbox("Kombination 7", 20, 210, 119, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox15 = GUICtrlCreateCheckbox("Kombination 15", 20, 450, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox16 = GUICtrlCreateCheckbox("Kombination 16", 20, 480, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$Checkbox17 = GUICtrlCreateCheckbox("Kombination 17", 20, 510, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
GUICtrlCreateInput("", 150, 30, 165, 20)
$Icon1 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 30, 32, 32)
GUICtrlSetState(-1, $GUI_DISABLE)
$Icon2 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 60, 32, 32)
GUICtrlSetState(-1, $GUI_DISABLE)
$inputconfig1a = GUICtrlCreateInput("", 150, 30, 165, 21)
$inputconfig1b = GUICtrlCreateInput("", 360, 30, 165, 21)
$inputconfig2b = GUICtrlCreateInput("", 360, 60, 165, 21)
$inputconfig2a = GUICtrlCreateInput("", 150, 60, 165, 21)
$inputconfig8a = GUICtrlCreateInput("", 150, 240, 165, 21)
$inputconfig4b = GUICtrlCreateInput("", 360, 120, 165, 21)
$inputconfig3a = GUICtrlCreateInput("", 150, 90, 165, 21)
$inputconfig3b = GUICtrlCreateInput("", 360, 90, 165, 21)
$inputconfig4a = GUICtrlCreateInput("", 150, 120, 165, 21)
$inputconfig5a = GUICtrlCreateInput("", 150, 150, 165, 21)
$inputconfig6a = GUICtrlCreateInput("", 150, 180, 165, 21)
$inputconfig7a = GUICtrlCreateInput("", 150, 210, 165, 21)
$inputconfig5b = GUICtrlCreateInput("", 360, 150, 165, 21)
$inputconfig7b = GUICtrlCreateInput("", 360, 210, 165, 21)
$inputconfig6b = GUICtrlCreateInput("", 360, 180, 165, 21)
$inputconfig8b = GUICtrlCreateInput("", 360, 240, 165, 21)
$Icon3 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 90, 32, 32)
$Icon4 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 300, 32, 32)
$Icon5 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 270, 32, 32)
$Icon6 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 210, 32, 32)
$Icon7 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 240, 32, 32)
$Icon8 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 180, 32, 32)
$Icon9 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 150, 32, 32)
$Icon10 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 120, 32, 32)
$inputconfig9a = GUICtrlCreateInput("", 150, 270, 165, 21)
$inputconfig13a = GUICtrlCreateInput("", 150, 390, 165, 21)
$inputconfig10a = GUICtrlCreateInput("", 150, 300, 165, 21)
$inputconfig11a = GUICtrlCreateInput("", 150, 330, 165, 21)
$inputconfig12a = GUICtrlCreateInput("", 150, 360, 165, 21)
$inputconfig13b = GUICtrlCreateInput("", 360, 390, 165, 21)
$inputconfig12b = GUICtrlCreateInput("", 360, 360, 165, 21)
$inputconfig11b = GUICtrlCreateInput("", 360, 330, 165, 21)
$inputconfig10b = GUICtrlCreateInput("", 360, 300, 165, 21)
$inputconfig9b = GUICtrlCreateInput("", 360, 270, 165, 21)
$Icon11 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 321, 329, 32, 32)
$Icon12 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 480, 32, 32)
$Icon13 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 450, 32, 32)
$Icon14 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 420, 32, 32)
$Icon15 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 390, 32, 32)
$Icon16 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 360, 32, 32)
$Icon17 = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, 510, 32, 32)
$inputconfig15a = GUICtrlCreateInput("", 150, 450, 165, 21)
$inputconfig16a = GUICtrlCreateInput("", 150, 480, 165, 21)
$inputconfig17a = GUICtrlCreateInput("", 150, 510, 165, 21)
$inputconfig17b = GUICtrlCreateInput("", 360, 510, 165, 21)
$inputconfig16b = GUICtrlCreateInput("", 360, 480, 165, 21)
$inputconfig15b = GUICtrlCreateInput("", 360, 450, 165, 21)
$inputconfig14b = GUICtrlCreateInput("", 360, 420, 165, 21)
$inputconfig14a = GUICtrlCreateInput("", 150, 420, 165, 21)
$Label1 = GUICtrlCreateLabel("An/Aus", 39, 3, 53, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Tastenkombination", 168, 2, 136, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Wirkung", 417, 2, 60, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
Case $Checkbox2
Case $Checkbox3
Case $Checkbox4
Case $Checkbox5
Case $Checkbox6
Case $Checkbox7
Case $Checkbox8
Case $Checkbox9
Case $Checkbox10
Case $Checkbox11
Case $Checkbox12
Case $Checkbox13
Case $Checkbox14
Case $Checkbox15
Case $Checkbox16
Case $Checkbox17
EndSwitch
WEnd
EndSwitch
WEnd
case $Button2
if GUICtrlRead($Input1) <> "" Then
if FileExists(GUICtrlRead($Input1)) Then
Else
MsgBox(16,"Datei existiert nicht!", "Der Pfad der Datei stimmt nicht, oder die datei existiert nicht!")
EndIf
Else
$pfad = FileOpenDialog("Spiel auswählen!", @ScriptDir & "\", "Spiele (*.exe;*.bat)", 1)
GUICtrlSetData($Input1, $pfad)
EndIf
EndSwitch
WEnd
sieht vllt lang aus is aba eig ganz einfach also bitte um hilfe!!
thx schomal im vorraus
|
|
|
09/15/2010, 14:07
|
#6
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
du hast es geschafft so unübersichtlich zu arbeiten, das nichteinmal mehr du der das selbst erstellt hat da nichtmehr durchsiehst.
wenn du 1000000 controls erstellst, die alle gleichmäßig angeordnet sind, macht man as immer in einer schleife.
Code:
#include <GUIConstants.au3>
$gui = GUICreate("Gamerbot by ichbinstark", 553, 342, 256, 280)
$Input1 = GUICtrlCreateInput("", 19, 66, 440, 21)
$Label1 = GUICtrlCreateLabel("Welches Spiel wollen Sie öffnen?", 21, 26, 206, 22)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0x0000FF)
$go = GUICtrlCreateButton("GO", 204, 146, 126, 91, 0)
GUICtrlSetFont(-1, 20, 800, 0, "Trebuchet MS")
GUICtrlSetColor(-1, 0xFF0000)
$Button1 = GUICtrlCreateButton("Tastenkonfigurationen", 181, 307, 177, 24, 0)
$Button2 = GUICtrlCreateButton("....", 460, 62, 32, 27, 0)
GUISetState(@SW_SHOW)
While WinExists($gui)
$msg = GUIGetMsg(1)
Switch $msg[0]
Case -3
GUIDelete($msg[1])
Case $go
If GUICtrlRead($Input1) = "" Then
MsgBox (16, "Error", "Error:Du muss schon ein spiel auswählen" )
Else
Run ( $pfad )
EndIf
Case $Button1
Dim $checkbox[17], $inputa[17], $inputb[17], $icon[17]
GUICreate("Tastenkonfigurationen", 586, 559, 387, 239)
For $i=0 To 16
$checkbox[$i] = GUICtrlCreateCheckbox("Kombination "&$i+1, 20, ($i+1)*30, 119, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKHCENTER+$GUI_DOCKHEIGHT)
GUICtrlSetTip(-1, "")
$inputa[$i] = GUICtrlCreateInput("", 150, ($i+1)*30, 165, 21)
$inputb[$i] = GUICtrlCreateInput("", 360, ($i+1)*30, 165, 21)
$icon[$i] = GUICtrlCreateIcon("C:\WINDOWS\explorer.exe", -13, 320, ($i+1)*30, 32, 32)
Next
$Label1 = GUICtrlCreateLabel("An/Aus", 39, 3, 53, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Tastenkombination", 168, 2, 136, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Wirkung", 417, 2, 60, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
Case $Button2
If GUICtrlRead($Input1) <> "" Then
if FileExists(GUICtrlRead($Input1)) Then
Else
MsgBox(16,"Datei existiert nicht!", "Der Pfad der Datei stimmt nicht, oder die datei existiert nicht!")
EndIf
Else
$pfad = FileOpenDialog("Spiel auswählen!", @ScriptDir & "\", "Spiele (*.exe;*.bat)", 1)
GUICtrlSetData($Input1, $pfad)
EndIf
EndSwitch
WEnd
ich hab das ganze mal bisschen zusammen gefasst.
denke mal so sollte auch alles übersichtlich sein.
die 2te endlosschleife, die da man aus der ersten ja nie raus kommt, sowieso nie erreicht werden kann, habe ich mal entfernt
|
|
|
All times are GMT +1. The time now is 04:37.
|
|