Hello guys,
Since I wanna train my fishing/strenght etc but keep getting disconnected im trying to make a auto-reconnect script but already running into problems...
Using AutoIt here's my script:
Logon()
Func Logon()
; Retrieve the following file. This can be found in the include folder which is in the installation path of AutoIt.
Local $sWow64 = ""
If @AutoItX64 Then $sWow64 = "\Wow6432Node"
Local $sFile = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE" & $sWow64 & "\AutoIt v3\AutoIt", "InstallDir") & "\include\Black Desert Online"
; Execute the launcher shortcut
Local $iPID = ShellExecute($sFile)
If WinExists("Black Desert Online Launcher") Then
$hWnd = WinGetHandle("Black Desert Online Launcher")
Sleep(10000)
Send("TestTest");Enter password
Sleep(2000)
MouseMove(1158, 647, 10); Muis naar Login
Sleep(1000)
ControlClick($hWnd, "", "", $MOUSE_CLICK_LEFT, 1, 1158, 647); Klik Login
Sleep(1000)
ControlClick($hWnd, "", "", $MOUSE_CLICK_RIGHT, 1, 1158, 647); Klik Login
Sleep(1000)
ControlClick($hWnd, "", "", $MOUSE_CLICK_LEFT, 1, 1158, 647); Klik Login
Sleep(1000)
EndIf
EndFunc
The launchers opens fine but its not sending the password and mouse clicks are working randomly... Anyone can help me with this?
Thanks alot!