Pagina de start a forumului hellsangels.MyForum.ro


hellsangels.MyForum.ro
HellsAngels
Raspunde la subiect
autologin script
eldwin
Junior
Junior

Data inscrierii: 07/Feb/2012
Mesaje: 4
Localitate: bucuresti
Raspunde cu citat (quote)
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
;
; Where to find the latest version of this macro, including all known
; bugfixes and the newest features? http://www.tault.com/ of course
;
; Script Author: Anonymous
; Script Version: v2.2
; Script Function:
; AutoLogin for Lineage II
; Verified to work under 800x600, 1024x768, and 1280x1024 32-bit color.
;
; To effectively use this macro:
; ------------------------------
; Download and install AutoIt v3 (AutoIt v3 is an opensource BASIC-like
; scripting language designed for automating the Windows GUI.)
; It can be obtained from the official website: http://www.hiddensoft.com/autoit3/
;
; Once you have installed AutoIt v3 (not v2!!!):
; ----------------------------------------------
; Copy this script into a file named l2login.au3
; Edit the $pass variable below to reflect your Lineage II Password.
; Double-click on l2login.au3 to load it
; (You will see an AutoIt icon appear in your system tray)
; Run Lineage II
; Type Your login name into the ID box, make sure the cursor is still in the ID box.
; Press Shift-Alt-L to activate the macro.
;
; The macro will repeatedly attempt to login. Once it has successfully reashed the
; character select screen. It will automatically detect this and stop tring to login.
; To notify you of the successful login, it will play tada.wav every 2 seconds until you
; stop the macro by pressing ESC, or by unloading the macro by pressing the + key on
; your number pad.
;
; You can also stop the macro at any time before a successful login using the ESC key.
; The macro will stop at the end of the current iteration (when you are next returned to
; the login box). Using the + key on the number pad will unload the macro from memory,
; thereby stopping it instantly wherever it happens to have left off.
;
Dim $pass, $stoplogin, $res, $delay
Dim $res[3] ; 3 resolutions mapped, format of each array element: color,x,srvr1y,srvr2y...srvr5y

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; BEGIN CONFIGURATION SECTION ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

$pass = "password"
$server = 0 ; 0 = default server, 1 = server 1, 2 = server 2, etc..
$delay = 600 ; increase if dialog lag causes the macro to malfunction, decrease for higher speed

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; END CONFIGURATION SECTION ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; ------------------------------------------------------
; You should NOT need to edit anything beyond this point
; ------------------------------------------------------

$res[0] = "1449253,540,362,376,389,402,416" ; 1280 x 1024
$res[1] = "2569277,400,235,250,260,275,285" ; 1024 x 768
$res[2] = "1712938,300,150,160,175,190,200" ; 800 x 600

AutoItSetOption("MouseCoordMode",0)
AutoItSetOption("SendKeyDelay", 1)

HotKeySet("{NUMPADADD}", "TerminateMe") ; + on the Number Pad

;WinActivate("Lineage II")
WinWaitActive("Lineage II")

HotKeySet("{ESC}", "StopLogin") ; Escape key
HotKeySet("+!l", "AutoLogin") ; Shift-Alt-L

Func AutoLogin()
WinActivate("Lineage II")
WinWaitActive("Lineage II")
Local $color,$size,$chk,$ary
$size = WinGetPos("Lineage II")
If $size[2] == 1280 Then
$chk = 0
ElseIf $size[2] == 1024 Then
$chk = 1
ElseIf $size[2] == 800 Then
$chk = 2
EndIf
$ary = StringSplit($res[$chk],",")

$stoplogin = 0
While WinActive("Lineage II") AND NOT $stoplogin
Send($pass)
Send("{ENTER}")
Sleep($delay)
Send("{ENTER}")
Sleep($delay * 3)
If $server == 0 Then
Send("{ENTER}")
Else
MouseClick("left",$ary[2],$ary[$server + 2],2,1)
EndIf
Sleep(1000)
$color = PiXelGetColor($size[2] - 1,$size[3] - 1)
If $color == $ary[1] Then
SoundSetWaveVolume(100)
While NOT $stoplogin
SoundPlay(@WindowsDir & "\media\tada.wav")
Sleep(3000)
WEnd
ExitLoop
EndIf
WEnd
EndFunc

Func StopLogin()
$stoplogin = 1
HotKeySet("{ESC}")
Send("{ESC}")
HotKeySet("{ESC}", "StopLogin")
EndFunc

Func TerminateMe()
Exit 0
EndFunc

;;;; Just loop and wait for some HotKey press ;;;;
While 1
Sleep($delay)
WEnd
;;;;;;;;

; Finished!



Asta se ia copy paste si se face un fisier cu numele login.au3

Fiecare va trebui sa editeze fisierul de mai sus si sa modifice password cu parola proprie.


Se descarca de aici urmatorul soft http://www.autoitscript.com/site/autoit/downloads/ si se instaleaza.

Se da click dreapta pe fisierul login.au3 si se da run script.

Se intra in L2 , se introduce useru, se da click in zona de parola si se apasa ALT+SHIFT+L. Din momentul ala incepe sa ruleze scriptul. Cand apare sa introduceti pin-ul , apasati ESC sa se opreasca scriptul
Vezi profilul utilizatoruluiTrimite mesaj privat
iOwl
Administrator
Administrator

Data inscrierii: 04/Feb/2012
Mesaje: 8
Raspunde cu citat (quote)
wow ce tare multumim
Vezi profilul utilizatoruluiTrimite mesaj privat
autologin script
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum
Ora este GMT + 2 ore  
Pagina 1 din 1  

  
  
 Raspunde la subiect