Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; There are a few requirements for this script to work flawlessly:
- ; - The Tera client's resolution has to be 1024×768, 4:3 aspect ratio
- ; - UI Scale at 90
- ; - The client has to be right in the top left corner
- ; - If you are using several clients to gather, make sure you summon them to a gathering node so that they are in one spot and not spread out. This is necessary to avoid getting pulled away with mystic motes.
- ; - If you are using several clients to gather, make sure that at least one client is always fully visible.
- ; - The colour code "0x281405" down below is my own colour code, which may vary if you use SweetFX or not.
- CoordMode, Pixel
- Node = Good
- Skip = No
- Loop
- {
- WinGet,tera,list,ahk_class LaunchUnrealUWindowsClient
- Loop, %tera%
- {
- if (Skip == "No")
- {
- WinGetTitle,teratitle, % "ahk_id " tera%A_Index%
- if (teratitle = "TERA")
- {
- Skip = Yes
- Sleep 50
- PixelGetColor, color, 530, 625, slow
- ; The colour value is in below. Please adjust for yourself.
- if (color <> 0x281405)
- {
- Node = Bad
- }
- }
- }
- }
- Skip = No
- if (Node == "Good")
- {
- Loop, %tera%
- {
- WinGetTitle,teratitle, % "ahk_id " tera%A_Index%
- if (teratitle = "TERA")
- {
- ControlSend,,{f}, % "ahk_id " tera%A_Index%
- }
- }
- Sleep 6000
- }
- Node = Good
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement