Register for your free account! | Forgot your password?

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

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

Advertisement



problem :(

Discussion on problem :( within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 9
The Black Market: 156/0/0
Join Date: Apr 2009
Posts: 10,163
Received Thanks: 3,804
problem :(

Hi

Ich bin grade an einem Bot dran.

Ich will, dass die Maus bei einem Input by 1 - 10 die gewünschte Anzahl (z.B. 3)
mal die gleichen Mausbewegegungen macht. Aber es sind 2 Bedingungen, die dafür erfüllt sein Müssen:

Eine Zahl im Input von 1-10 UND der klick auf "Start".

Also z.b.

If $input1=1 then
MouseMove (***, ***)
MouseDown ("left")
MouseMove (***, ***)
MouseUp ("left")
MouseMove (***, ***)
MouseClick ("left")

If $input1=2 then
MouseMove (***, ***)
MouseDown ("left")
MouseMove (***, ***)
MouseUp ("left")
MouseMove (***, ***)
MouseClick ("left")
MouseMove (***, ***)
MouseDown ("left")
MouseMove (***, ***)
MouseUp ("left")
MouseMove (***, ***)
MouseClick ("left")

Usw. Aber ich weiß nicht, wie ich es mit dem Start-Button verbinden soll.

While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then
winwaitactive ("METIN2")
If $input1= 1 Then
MouseMove (cxx, ***)
MouseDown ("left")
MouseMove (***, ***)
MouseUp ("left")
MouseMove (***, ***)
MouseClick ("left")
Wend

So geht es auch nicht.

BITTE HELFT mir.

mfG
AllesVergeben is offline  
Old 06/19/2009, 21:20   #2
 
elite*gold: 0
Join Date: May 2008
Posts: 489
Received Thanks: 210
Spitzen Titel.
schlurmann is offline  
Old 06/19/2009, 22:01   #3
 
Gianotti's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 1,455
Received Thanks: 140
nimm doch ne for schleife?
Gianotti is offline  
Old 07/03/2009, 08:01   #4
 
SCORNI's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 970
Received Thanks: 227
Bitte benutze beim nähsten mal den code oder php-tag. damit kann man sich viel besser zurecht finden.
SCORNI is offline  
Old 07/04/2009, 10:30   #5
 
elite*gold: 99
Join Date: Oct 2008
Posts: 2,708
Received Thanks: 1,726
Ich würde das foolgendermaßen machen:

PHP Code:
Switch $nMsg
Case $buttonstart
    
If GUICtrlRead($input1) <= 10 And GUICtrlRead($input1) >= 1 Then
         
[Befehle]
    EndIf
EndSwitch 
Den Switch kannst du natürlich weiterführen und für andere Buttons benutzen.

mfg
Frezee is offline  
Reply


Similar Threads Similar Threads
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server. Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut. Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen. Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung Hab n Screenshot im Anhang Aber ich hab ja auch ne Lösung für n anderes Problem. Gestern hatte ich beim...
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +2. The time now is 13:19.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.