Register for your free account! | Forgot your password?

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

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

Advertisement



[AutoIT-Frage]

Discussion on [AutoIT-Frage] within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
voiD Art's's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 693
Received Thanks: 45
[AutoIT-Frage]

Hallo, da ich noch relativ neu in AutoIT bin hab ich gleich mal meine erste Frage:
Ich habe probiert ein AFK Script für Steam zu schreiben. Leider will es nicht wirklich funktionieren...
Hier ist der Code:

while HotKeySet ==1
HotKeySet ("{right}", "afk")
Func afk ()
WInwaitactive (" - Chat")
Send ("Hallo,ich bin gerade beschäftigt!")
send ("{enter}")
sleep (100)
Send ("Ich werde sobald ich Zeit hab antworten!")
Send ("{enter}")
Sleep (100)
EndFunc
WEnd

Hoffe ihr könnt mir helfen.

MfG FlaVeR
voiD Art's is offline  
Old 03/29/2009, 22:13   #2
 
DamageBreaker's Avatar
 
elite*gold: 0
Join Date: Nov 2008
Posts: 358
Received Thanks: 43
Code:
HotKeySet ("{right}", "afk")
Func afk ()
while 1
WInwaitactive (" - Chat")
Send ("Hallo,ich bin gerade beschäftigt!")
send ("{enter}")
sleep (100)
Send ("Ich werde sobald ich Zeit hab antworten!")
Send ("{enter}")
Sleep (100)
EndFunc 
Wend

versuchs ma damit
DamageBreaker is offline  
Old 03/29/2009, 22:19   #3
 
voiD Art's's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 693
Received Thanks: 45
Funzt leider nicht ich bekomm folgenden Error:

"While" statement has no matching "Wend" statement

MfG FlaVeR
voiD Art's is offline  
Old 03/29/2009, 22:50   #4
 
DamageBreaker's Avatar
 
elite*gold: 0
Join Date: Nov 2008
Posts: 358
Received Thanks: 43
**** falschrum

Quote:
HotKeySet ("{right}", "afk")
Func afk ()
while 1
WInwaitactive (" - Chat")
Send ("Hallo,ich bin gerade beschäftigt!")
send ("{enter}")
sleep (100)
Send ("Ich werde sobald ich Zeit hab antworten!")
Send ("{enter}")
Sleep (100)
Wend
EndFunc

jetz muss es gehen^^
DamageBreaker is offline  
Old 03/29/2009, 23:59   #5
 
Normal111's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 256
Received Thanks: 553
Hi,

hier einmal wo das Ding dauernd während es im AFK-Modus ist deinen Text spamt:

PHP Code:
Global $AFK
$Chatfenstertitel 
"- Chat"
HotKeySet("{right}""ToggleAFK")

While 
1
    Sleep
(100)
WEnd

Func ToggleAFK
()
    
$AFK Not $AFK
    
While $AFK
        ToolTip
('AFK'00)
        If 
WinActive($ChatfenstertitelThen
            spam_chat
()
        Else
            
WinActivate($Chatfenstertitel)
            
WinWaitActive($Chatfenstertitel)
            
spam_chat()
        EndIf
    
WEnd
    ToolTip
("")
EndFunc   ;==>ToggleAFK

Func spam_chat
()
    
Send("Hallo,ich bin gerade beschäftigt!")
    
Send("{ENTER}")
    
Sleep(1000)
    
Send("Ich werde sobald ich Zeit hab antworten!")
    
Send("{ENTER}")
    
Sleep(1000)
EndFunc   ;==>spam_chat 
Oder als einfachere Version, wo es nur einmal bei Tastendruck den Text spamt:

PHP Code:
$Chatfenstertitel "- Chat"
HotKeySet("{right}""AFK")

While 
1
    Sleep
(100)
WEnd

Func AFK
()
    If 
WinActive($ChatfenstertitelThen
        spam_chat
()
    Else
        
WinActivate($Chatfenstertitel)
        
WinWaitActive($Chatfenstertitel)
        
spam_chat()
    EndIf
EndFunc   ;==>AFK

Func spam_chat
()
    
Send("Hallo,ich bin gerade beschäftigt!")
    
Send("{ENTER}")
    
Sleep(1000)
    
Send("Ich werde sobald ich Zeit hab antworten!")
    
Send("{ENTER}")
    
Sleep(1000)
EndFunc   ;==>spam_chat 
Als Anregung für weitere Skripts :-)
Normal111 is offline  
Reply




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


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.