Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Erster Script Problem

Discussion on Erster Script Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 4
Received Thanks: 0
Erster Script Problem

Hi leutzz,
habe gestern angefangen mich mit AutoIt zu beschäftigen, und ich hänge gerade bei meinem ersten script. kann mir einer helfen, und mir vll. erklären wie ich das auskommentierte mit dem anderen code verbinde das beides gleichzeitig läuft?

die 2 teile (auskommentierte und nicht auskommentierte) "kommen zwar miteinander aus" aber der kommentar funktioniert nicht.

Code:
Do

;~ $coord = PixelSearch( 0, 117, 840, 707, 0xf9f9eb)
;~ If Not @error Then
;~     MouseMove( $coord[0], $coord[1])
;~     MouseClick("left")
;~ EndIf

$xkoord = Random(680, 780, 1)
$ykoord = Random(607, 697, 1)

MouseMove( $xkoord, $ykoord)
MouseClick("left")
Sleep( 15000 )


Until 0xFFFFFF = 0x000000
als notlösung habe ich beides in 2 scripts gespeichert und lass beide laufen.
funktioniert zwar, aber würde dennoch gerne wissen, obs möglich wäre alles unter einen hut zubekommen.

lg
shiro
Shironiba is offline  
Old 04/29/2009, 19:44   #2
 
elite*gold: 0
Join Date: Jun 2008
Posts: 350
Received Thanks: 67
Erklär mir mal was du mit deinem script tun willst... wenn du willst das deine Maus auf den punkt klickt wäre sowas vieleicht hilfreich

PHP Code:
Do

 
$coord PixelSearch01178407070xf9f9eb)
If 
Not @error Then
     MouseMove
$coord[0], $coord[1])
     
MouseClick("left")
EndIf

$xkoord Random(6807801)
$ykoord Random(6076971)

MouseMove$xkoord$ykoord)
MouseClick("left")
Sleep15000 )


Until 0xFFFFFF 0x000000 
also du musst einfach die Semikolons dafür weg machen...
bunney is offline  
Old 04/30/2009, 09:56   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 4
Received Thanks: 0
das soll ein darkorbit-boxensammler-script werden.

der klickt auf der minimap auf einen zufälligen punkt
und fliegt solange wie das sleep eingestellt ist.
danach sucht er einen neuen punkt auf der minimap usw.

dazwischen soll er aber anhalten und die boxen sammeln.

ich hab das comment ja selber gemacht, von dem her bringt
mir das entfernen der semikolons nichts. Denn es funktioniert
nicht beides gleichzeitig bei mir.

wenn ich den code auf 2 scripts aufteile und beide laufen lasse,
dann funktionierts. aber ich wills funktionsfähig in EINEM haben.

LG
Shiro
Shironiba is offline  
Old 04/30/2009, 11:35   #4
 
elite*gold: 0
Join Date: Jun 2008
Posts: 350
Received Thanks: 67
while 1


$coord = PixelSearch( 0, 117, 840, 707, 0xf9f9eb)
If Not @error Then
MouseMove( $coord[0], $coord[1])
MouseClick("left")
EndIf

$xkoord = Random(680, 780, 1)
$ykoord = Random(607, 697, 1)

MouseMove( $xkoord, $ykoord)
MouseClick("left")
Sleep( 15000 )

wend
bunney is offline  
Old 04/30/2009, 16:42   #5
 
elite*gold: 0
Join Date: Mar 2008
Posts: 4
Received Thanks: 0
danke werd ich heute abend testen,
ist das ne unendlich-schleife?
Shironiba is offline  
Old 04/30/2009, 17:36   #6
 
muse-'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
*** wegen
Quote:
while 1
muse- is offline  
Old 04/30/2009, 18:29   #7
 
elite*gold: 0
Join Date: Mar 2008
Posts: 4
Received Thanks: 0
es funktioniert zwar soweit, das er die koordinaten anfliegt, aber er sammelt
absolut nichts, das gleiche problem hatte ich bei meiner Do...Until-Variante auch.

der autopilot verhindert anscheinend den sammler.

wer noch weitere hilfreiche ideen hat woran es liegen könnte, bzw. wie man das problem
löst, bitte raus damit.

Das ist der Sammler
Code:
$coord = PixelSearch( 0, 117, 840, 707, 0xf9f9eb)
If Not @error Then
MouseMove( $coord[0], $coord[1])
MouseClick("left")
EndIf
und das der Autopilot
Code:
$xkoord = Random(680, 780, 1)
$ykoord = Random(607, 697, 1)
$sleep = Random(5000, 13000,1)

MouseMove( $xkoord, $ykoord)
MouseClick("left")
Sleep( $sleep )
hab den autopilot bissl angepasst, damits nicht nach bot ausschaut ^^

wie gesagt, beide in extra scripts und gleichzeitig laufen lassen funktioniert.
Shironiba is offline  
Old 12/17/2009, 16:21   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 2
Received Thanks: 0
also ich kapier des net wo füg ich den diese "codes" damit der script funktioniert?
greenghostno1 is offline  
Old 12/18/2009, 13:22   #9

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
#moved AutoIt.
Adroxxx is offline  
Old 12/18/2009, 14:42   #10
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
Wenn ich das richtig verstanden hab funktioniert das nich, weil der sich die ganze Zeit bewegt

Ich denke dein Bot prüft erst ob es was zum aufheben gibt, wenn der schonwieder die Position gewechselt hat :P

Probier mal die beiden Funktionsabläufe in der Rheinfolge zu vertauschen
(kann auch vollkommener Dreck sein, aber isn Versuch wert )
.nAno is offline  
Reply


Similar Threads Similar Threads
Problem VB 10 Patcher Script Problem
09/20/2010 - .NET Languages - 8 Replies
Hayho liebe Com. ich habe mal wieder einen ganz netten Patcher gescriptet, für einen metin2 P Server, da es nicht mein erster is, hab ich echt kp was da vorliegt, Hier der Script an sich: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles...
[HOW-TO]Hp-Script+Admin-script (weekly-updatet) problem!
06/21/2010 - Metin2 Private Server - 11 Replies
hallo leute ich hab ein problem und zwar bei dem hp script von masterboss kommt der fehler : http://img541.imageshack.us/img541/8140/24955249. png und wenn ich dann die datei öffne und in die zeile gehe kommt: while($row = mysql_fetch_array($ergebnis)) kann mir jmd helfen?
Erster Reg script
11/17/2009 - Metin2 Private Server - 13 Replies
Hallo ich bin ricki31191 und wollte hier mal mein 1 Reg script vorstellen Sag mit bitte was ihr davon haltet aber vergesst net das ist mein erster Demo PS: ich bin erst 16
l2w script problem
05/01/2009 - Lineage 2 - 1 Replies
Before Gracia Final I've used to run restock/rebuff/return script (the one which can be found here, with some not important modifications), but recently (when new oog/ig came out, I think with old ig everything was working) it stopped working, becouse when script comes to this place: NPCSEL(Valentina) NPCDLG(Valentina) DLGSEL(Teleport) DLGSEL(Outlaw Forest - 5200 Adena ) dialog with npc closes (and ofcourse it stops working). Any (helpful) ideas?
Problem Script
02/05/2009 - Cabal Online - 4 Replies
Ok i have a problem, i use a the script bot from camp. My problem is i can run the script on my pc starting it up from cabal without a bypass and run the script/bot this is with GG running as well. But when i try the same thing on my laptop it doesn't work i need to have a bypass up and because the bypass makes you d/c(i think its the programme am using) i can't seem to run the script/bot. Anyone got any ideas of how to make it work on my laptop with having to bypass it. The bot does work...



All times are GMT +1. The time now is 02:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.