Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OT - Help with Tasking Window
#6
I gotta say, I LOVE this kind of challenges.

EXPLANATION HOW ITS DONE

Since SendKey enter wouldn't start task, i had to use Mouse Click,
But to do so, I had do know position of Do Task button.

So I had to find fixed position of that button, on ANY TIBIA WINDOW SIZE,
Had to collect some data of button position in different size of windows
distance from center of screen to button
Code:
W ~41   AVG = 213
851-638 = 213
748-540 = 208
1465-1248 = 217
515-301 = 214

H  ~19   AVG =122
829-719 = 110
829-704 = 125
645-518 = 127
444-320 = 124

Knowing that I could make commands sequence to calculate position of button on any window size

Code:
tW:=Tibia.WindowWidth()
tH:=Tibia.WindowHeight()
VarDiv(tW, 2)
VarAdd(tW, 213)
VarDiv(tH, 2)
VarAdd(tH, 122)

rest was easy Wink
Reply


Messages In This Thread
OT - Help with Tasking Window - by jphoare1 - 03-16-2017, 08:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)