Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#469467 06/30/15 01:59 AM
Joined: Jul 2001
Posts: 2,403
Lord Honey Bear
**
OP Offline
Lord Honey Bear
**
Joined: Jul 2001
Posts: 2,403
Ok, so after a lot of over thinking, over writing and trying to accommodate everyone's system while also making it easy to use, I came up with a surprisingly short and easy script.

One drawback is that you have to use it while ARK is in windowed mode. Doesn't matter what your resolution is. If you play in full screen, you will have to log in a not full server and change it to windowed mode. (Unless you know of another way to do it)

Instructions:

0) Download Autoit, copy/paste the script below into a blank script and save it.

1) Get your ARK game screen to windowed mode.

2) Add only the server you want to your favorites list, making sure that server is the only server to select.

3) Start the script. (You can honestly start the script when ever)

4) After the script has started, hover your mouse over the green part of the "Join" button to the right of the white join lettering and PRESS F1 (this records the coordinates of the button to later get the color and mouse destination to click). If you hover to the left of the join button lettering, it tries to toggle the check button for don't show full servers (and odds are the server you are trying to get into is full).

5) Do the previous step for the "Refresh" button and PRESS F2 (this records the coordinates and later the color of the refresh button).

6) Take your mouse anywhere else other than over the Join or Refresh buttons and PRESS F3. This initializes the script and sends it into action. (This grabs the colors from the join and refresh buttons and starts trying to join the server. If I grabbed the colors before while hovering over the buttons, it would have grabbed an illuminated color. Thats why you cant be hovering over the buttons when you push F3 to initialize the script)

7) Wait till you know you have succesfully logged in and PRESS F4 to terminate the script.

This script is as easy as PRESS F1, PRESS F2, PRESS F3, PRESS F4 when you get the hang of it. Let me know of any bugs or problems you guys have with it. Keep this to LoD proper unless you want a bunch of competition getting into the server.

Code:
#include <GDIPlus.au3>
#include <ScreenCapture.au3>
#include <WinAPI.au3>
#include <array.au3>
#include <Timers.au3>
#include <Misc.au3>

opt("sendkeydowndelay", 200)
opt("Mouseclickdowndelay", 50)

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{F1}", "RecordClickJoin")
HotKeySet("{F2}", "RecordClickRefresh")
HotKeySet("{F3}", "RecordClickInit")
HotKeySet("{F4}", "Terminate")

Global $Paused, $coords[2]

While 1
ToolTip("Waiting for coordinate inputs.")
Sleep(1e9)
WEnd

Func RecordClickJoin()
Local $aPos = MouseGetPos()
ToolTip("Mouse (x,y) = ("& $aPos[0] & "," & $aPos[1]&") and color 0x"&hex(PixelGetColor($aPos[0],$aPos[1]),6))
Global $ClickJoinPos_x = $aPos[0]
Global $ClickJoinPos_y = $aPos[1]
EndFunc

Func RecordClickRefresh()
Local $aPos = MouseGetPos()
ToolTip("Mouse (x,y) = ("& $aPos[0] & "," & $aPos[1]&") and color 0x"&hex(PixelGetColor($aPos[0],$aPos[1]),6))
Global $ClickRefreshPos_x = $aPos[0]
Global $ClickRefreshPos_y = $aPos[1]
EndFunc

Func RecordClickInit()
Local $iColor = PixelGetColor($ClickJoinPos_x,$ClickJoinPos_y)
Global $ClickJoinPos_color = $iColor
Local $iColor = PixelGetColor($ClickRefreshPos_x,$ClickRefreshPos_y)
Global $ClickRefreshPos_color = $iColor
LoggingIn()
EndFunc

Func LoggingIn()
While 1
$JoinColor = PixelSearch($ClickJoinPos_x,$ClickJoinPos_y,$ClickJoinPos_x,$ClickJoinPos_y,$ClickJoinPos_color, 20)
$RefreshColor = PixelSearch($ClickRefreshPos_x,$ClickRefreshPos_y,$ClickRefreshPos_x,$ClickRefreshPos_y,$ClickRefreshPos_color, 20)
If IsArray($JoinColor) Then
ToolTip("Join button illuminated!")
MouseClick("left",$ClickJoinPos_x,$ClickJoinPos_y)
ElseIf IsArray($RefreshColor) And Not IsArray($JoinColor) Then
ToolTip("Refresh button illuminated!")
MouseClick("left",$ClickRefreshPos_x,$ClickRefreshPos_y)
EndIf
Sleep(500)
WEnd
EndFunc

Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(250)
ToolTip('"Paused"', 800, 500)
WEnd
ToolTip("Active", 800, 500)
EndFunc ;==>TogglePause

Func Terminate()
Exit 0
EndFunc ;==>Terminate


Khan
Lord of Wrong
Joined: Oct 2012
Posts: 723
Adept
**
Offline
Adept
**
Joined: Oct 2012
Posts: 723
Wow Khan, you are a lot better at AutoIt all of a sudden.


Click to reveal..
Joined: Oct 2004
Posts: 1,610
Lord of Transvestite PKs
***
Offline
Lord of Transvestite PKs
***
Joined: Oct 2004
Posts: 1,610
Style and grammar skills are surging as well. Extraordinary.

Last edited by [LoD]Ari; 06/30/15 06:00 AM.

P.S. - Don't hate me because I'm beautiful.
Joined: Apr 2013
Posts: 2,125
[
Albion GM
***
Offline
Albion GM
***
[
Joined: Apr 2013
Posts: 2,125
Must've been Olive, now that she's got a lot of spare time in her life.

Joined: Sep 2009
Posts: 3,743
Adept
**
Offline
Adept
**
Joined: Sep 2009
Posts: 3,743
lol, is Khan sleep walking again??

Joined: Sep 2009
Posts: 3,743
Adept
**
Offline
Adept
**
Joined: Sep 2009
Posts: 3,743
We should prob get this off the public boards?

Joined: Apr 2013
Posts: 2,125
[
Albion GM
***
Offline
Albion GM
***
[
Joined: Apr 2013
Posts: 2,125
Originally Posted By: [LoD
Aye Winwell]We should prob get this off the public boards?

Why? Khan obviously doesn't care that his intellectual property is out in the open for everyone to use.

Joined: Sep 2009
Posts: 3,743
Adept
**
Offline
Adept
**
Joined: Sep 2009
Posts: 3,743
I just want to hear the story behind how it got here lol

Joined: Aug 2012
Posts: 4,240
Adept
***
Offline
Adept
***
Joined: Aug 2012
Posts: 4,240
I'm guessing one of his friends without forum access needed it



Joined: Sep 2009
Posts: 3,743
Adept
**
Offline
Adept
**
Joined: Sep 2009
Posts: 3,743
I <3 [code][/code]

Page 1 of 2 1 2

Link Copied to Clipboard
Who's Online Now
0 members (), 34 guests, and 3 robots.
Key: Admin, Global Mod, Mod
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027)
Responsive Width:

PHP: 7.4.33 Page Time: 0.013s Queries: 35 (0.005s) Memory: 12.3279 MB (Peak: 18.7677 MB) Data Comp: Off Server Time: 2025-12-16 20:01:07 UTC
Valid HTML 5 and Valid CSS