Macro:autologin
Posted: June 9th, 2006, 2:38 am
Just enter your username password and the number of your server, start the macro and walk away.
Start Lineage 2 Alt-Tab out and start the macro
code:
Constants
Username = YOURUSERNAME
Password = YOURPASSWORD
ServerNumber = 1 //Bartz
LoginDelay = 500 //1/2 Seccond
StartupDelay = 10000 //10 Secconds
//Ignore These 2
x = {null}
y = {null}
End
SetActiveWindow Lineage II
delay $StartupDelay
//Select Username Dialog
compute x = ( {WindowWidth} / 2 )
compute y = ( ( {WindowHeight} / 2 ) - 40 )
MousePos $x, $y
LeftMouseDown
LeftMouseUp
delay 150
//Enter Data Into Login
keys $Username
delay 150
keys {TAB}
delay 150
keys $Password
//Login With Username and Password
WHILE 1 = 1
compute x = ( {WindowWidth} / 2 )
compute y = ( {WindowHeight} / 2 - 75 )
LoadRGB $x, $y
IF {RGBRed} < 12 AND {RGBGreen} < 25 AND {RGBBlue} < 30
keys {RETURN}
delay $LoginDelay
ELSE
BREAK
END
End
//Get Past News Window
delay 550
compute x = ( {WindowWidth} / 2 )
compute y = ( {WindowHeight} / 2 + 170 )
MousePos $x, $y
LeftMouseDown
LeftMouseUp
//Select The Server
delay 550
compute x = ( ( {WindowWidth} - 300 ) / 2 ) + 50
compute y = ( ( {WindowHeight} - 410 ) / 2 ) + 35 + ( 15 * $ServerNumber )
MousePos $x, $y
DoubleClick
Bell OK
Stop
Start Lineage 2 Alt-Tab out and start the macro
code:
Constants
Username = YOURUSERNAME
Password = YOURPASSWORD
ServerNumber = 1 //Bartz
LoginDelay = 500 //1/2 Seccond
StartupDelay = 10000 //10 Secconds
//Ignore These 2
x = {null}
y = {null}
End
SetActiveWindow Lineage II
delay $StartupDelay
//Select Username Dialog
compute x = ( {WindowWidth} / 2 )
compute y = ( ( {WindowHeight} / 2 ) - 40 )
MousePos $x, $y
LeftMouseDown
LeftMouseUp
delay 150
//Enter Data Into Login
keys $Username
delay 150
keys {TAB}
delay 150
keys $Password
//Login With Username and Password
WHILE 1 = 1
compute x = ( {WindowWidth} / 2 )
compute y = ( {WindowHeight} / 2 - 75 )
LoadRGB $x, $y
IF {RGBRed} < 12 AND {RGBGreen} < 25 AND {RGBBlue} < 30
keys {RETURN}
delay $LoginDelay
ELSE
BREAK
END
End
//Get Past News Window
delay 550
compute x = ( {WindowWidth} / 2 )
compute y = ( {WindowHeight} / 2 + 170 )
MousePos $x, $y
LeftMouseDown
LeftMouseUp
//Select The Server
delay 550
compute x = ( ( {WindowWidth} - 300 ) / 2 ) + 50
compute y = ( ( {WindowHeight} - 410 ) / 2 ) + 35 + ( 15 * $ServerNumber )
MousePos $x, $y
DoubleClick
Bell OK
Stop