Brauch kleine Hilfe...

04/22/2010 19:09 FrEakY.#1
Hey, hab hier folgendes Script und ich möchte, dass es wenn ich die Entf Taste drück anfängt zu spammen, leider habe ich keine Ahnung, wie ich das machen soll....

Script:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Webbrowser by FrEakY."325117192124)
$Input1 GUICtrlCreateInput("Hier den Link eingeben"16828921)
$Button1 GUICtrlCreateButton("Go"32487349$WS_GROUP)
$Button2 GUICtrlCreateButton("E*Pvpers"120487349$WS_GROUP)
$Button3 GUICtrlCreateButton("Spamm"208488149$WS_GROUP)
$Pic1 GUICtrlCreatePic("C:\Users\TheAdmin\Desktop\Crack\AS-RENDERS_547.jpg"00324116BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) 
GUICtrlSetState(-1,$GUI_disable
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
HotKeySet("{delete}","Start")
HotKeySet("{end}","Stop")
Global 
$Start
Global $Stop
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
    
Case $Button1 
        gogo
()
    Case 
$Button2
        los
()
    Case 
$Button3
        spamm
()
        
        Case 
$GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd


Func gogo
() 
    
ShellExecute(GUICtrlRead($Input1)) 
EndFunc    

Func los
()
    
ShellExecute("http://www.elitepvpers.com")
    Exit
EndFunc

Func spamm
()
    
MsgBox(0"Hinweis!""Drücke Entf zum Starten" & @CRLF "Drücke Ende zum Beenden")
While 
1
Send
(GUICtrlRead($Input1))
Send("{ENTER}")
Sleep(5000)
WEnd    
EndFunc    

Func Start
() 
Schonmal Danke im Vorraus
04/22/2010 19:15 arisha#2
An den Anfang:

HotKeySet("{F2}", "ToggleStop")
Global $Stop
While 1
$nMsg = GUIGetMsg()
Switch $nMsg

Case $Button1
spamm()

Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

Wo es passieren soll:

Func ToggleStop()

$Stop = NOT $Stop
MsgBox(0, "Information", "Das Programm beendet sich jetzt")
Exit
EndFunc

so hat es bei mir geklappt...:D

Einfach für F2 , entf einfügen(Denk ich mal :D)
Und die anderen knöpfe deinen anpassen
04/22/2010 19:18 FrEakY.#3
Das is nen Ausschnitt aus einem meiner Scripte ... :rolleyes:
04/22/2010 20:14 mipez#4
Was soll er denn spammen? Bisschen mehr Infos bitte^^
04/22/2010 21:22 FrEakY.#5
aus der inputbox .....
04/23/2010 06:34 mipez#6
Variante 1:

PHP Code:
Func Start()
read1 GuiCtrlRead(Input1) ;liest die Anzahlwie oft gespammt werden soll
read2 
GuiCtrlRead(Input2) ;liest den Inhalt der Spam-Naricht

For $i 1 To $read1
Send
("{ENTER}")
Send($read2)
Send("{ENTER}")
Sleep(100)
Next
MsgBox
(0,"Fertig!",$read1 " mal " $read2 " gespammt!") ;zeigt an wie oft etwas gespammt wurde

EndFunc 
Variante 2:

PHP Code:
Func Start()
read1 GuiCtrlRead(Input1) ;liest den Inhalt der Spam-Naricht

While 1
Send
("{ENTER}"
Send($read1)
Send("{ENTER}"
Sleep(100)
WEnd

EndFunc 
04/23/2010 12:37 FrEakY.#7
Danke für die Hilfe :D