Register for your free account! | Forgot your password?

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

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

Advertisement



AutoIT Problem

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 15
Received Thanks: 0
Unhappy AutoIT Problem

Hallo,
Ich bin seit etwa 1-2 tagen dabei AutoIT zu lernen.
Ich habe auch schon ein Paar kleine Progs geschreiben.
Dann habe ich das Tool VGE entdeckt damit hab ich mir
ein Fenster für einen Bot erstellt:
Quote:
GuiCreate("Test",222,93,333,213)
$button1=GuiCtrlCreateButton("Starten",28,25,77,39 )
GuiSetState()

While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
Wend




Func button1()
EndFunc
So ich hab das mit den variablen nicht so gut verstanden
bei diesem AutoIT Tut.
Deshalb wollte ich wissen wie man es so programiert
das es beim start klicken mit den MauseMoves oder clicks
beginnt......????

Danke schonmal...
Galaxy94 is offline  
Old 05/03/2010, 12:09   #2


 
Cholik's Avatar
 
elite*gold: 4
Join Date: Aug 2008
Posts: 6,783
Received Thanks: 4,992
#moved
Cholik is offline  
Old 05/03/2010, 15:32   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
...sieht bissl verwirrend aus... benutz lieber koda (im anhang)^^
Sonst läuft das ganze so ab:

Variable = eine bestimmte ID (zumindest hab ich mir das so eingeprägt).
Diese wird mit $ begonnen und man kann eigene definieren.

z.B.
PHP Code:
$toolv1 GUICreate("Neues Prog",200,100
$toolv1 = meine Variable
GuiCreate = die Funktion, man kann auch Zahlen oder Strings benutzen.

z.B.
PHP Code:
$zahl 10 
oder
PHP Code:
$string "Hallo Welt" 
Man kann z.B. AutoIt mehrere Variablen addieren lassen
PHP Code:
$zahl 10
$zahl2 
30*6
$summe 
$zahl $zahl2 
Oder z.B. Funktionen ineinander verschachteln
PHP Code:
$blubb "Hallo Welt"
MsgBox(0,"Muahaha",$blubb ", ich bins^^"
Attached Files
File Type: zip koda_1.7.0.1.zip (1.12 MB, 6 views)
mipez is offline  
Thanks
1 User
Old 05/03/2010, 21:16   #4
 
elite*gold: 0
Join Date: Feb 2010
Posts: 15
Received Thanks: 0
ok,
ich haffe es hilft mir
und ein dickes danke ^^xD
Galaxy94 is offline  
Old 05/04/2010, 20:38   #5


 
Al Kappaccino's Avatar
 
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
Naja wenn es schon um Variablen geht, testet doch mal das hier
PHP Code:
;~ 1+1=
;~ Glaubst du nicht
$ergebnis StringSplit("1+1=5"""
Msgbox(0"Ergebnis""1+1= " $ergebnis[0]) 
Edit: Zu deinem Mousmove^^Hier mal ein Beispiel script mit kommentaren

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"15467192124)
$Button1 GUICtrlCreateButton("Button1"8813749$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE ;Wenn das Kreuz (oben rechtsgedrückt wird
            
Exit;Beende
        
Case $Button1 ;Wenn $Button1 gedrückt wird
;Klicke mit Linker Maustaste auf der Koordinate x 500,y 500,2mal mit der Geschwindigkeit,
    
MouseClick("LEFT",                              500,  500,2                            ,600)

    EndSwitch
WEnd 
Al Kappaccino is offline  
Reply




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


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