Hay Leute!
habe mal wieder ein problem.
Unzwar will ich ein script in meine regi einbauen damit ein captcha einblendet
Momentan schauts so aus
Meine frage nun hat jemand eventl ein anderes script?
habe mal wieder ein problem.
Unzwar will ich ein script in meine regi einbauen damit ein captcha einblendet
Momentan schauts so aus
Aber das funzt leider nicht nur als einzelnes programmQuote:
#include <GuiConstantsEx.au3>
#include <GDIPlus.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $hGUI, $hWnd, $hGraphic, $input, $button, $array, $msg, $text
Local $array = StringSplit ("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", "")
Local $string = ""
For $i = 1 to 5
$string &= $array[Random (1, UBound ($array))]
Next
; Create GUI
$hGUI = GUICreate("GDI+", 400, 300)
$hWnd = WinGetHandle("GDI+")
GUISetState()
; Draw a string
_GDIPlus_Startup ()
$hGraphic = _GDIPlus_GraphicsCreateFromHWND ($hWnd)
_GDIPlus_GraphicsDrawString ($hGraphic, $string, 0, 0)
$input = GUICtrlCreateInput ("", 80, 0, 50)
$button = GUICtrlCreateButton ("Bestätigen", 240, 140, 30)
; Loop until user exits
While 1
$msg = GUIGetMsg ()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $button
$text = GUICtrlRead ($input)
If $text = $string Then
MsgBox (0, "Erfolgreich!", "Sie haben den Captcha richtig eingegeben.")
Else
MsgBox (0, "Fehler", "Versuchen Sie es später nocheinmal!")
EndIf
ExitLoop
EndSelect
WEnd
; Clean up resources
_GDIPlus_GraphicsDispose ($hGraphic)
_GDIPlus_Shutdown ()
EndFunc ;==>_Main
Meine frage nun hat jemand eventl ein anderes script?