- Joined
- May 14, 2007
- Messages
- 1,886
- Reaction score
- 2
- Points
- 38
VillageIdiot and I just spent a good amount of time figuring out how to view/use task time remaining in macros. Here is how you do it.
To get a read-out of how much time the task has left:
1 is the task number(usually it's going to be 1 as you can only have one active task at a time). 3 is the column.
--------------------------------------------------------------
Now, to be able to use that to say /if (Time left is less than blah), you have to separate out the HH:MM:SS
To get the hours you would do.:
The second 1 there represents the HH. So if you wanted the MM or SS, you would change it to 2 or 3 respectively.
In the end if you want to say, /if (less than 1 hour 30 minutes remaining it would look like:
To get a read-out of how much time the task has left:
Code:
${Window[TaskWnd].Child[TASK_TaskList].List[1,3]}
1 is the task number(usually it's going to be 1 as you can only have one active task at a time). 3 is the column.
--------------------------------------------------------------
Now, to be able to use that to say /if (Time left is less than blah), you have to separate out the HH:MM:SS
To get the hours you would do.:
Code:
${Window[TaskWnd].Child[TASK_TaskList].List[1,3].Token[1,:]}
The second 1 there represents the HH. So if you wanted the MM or SS, you would change it to 2 or 3 respectively.
In the end if you want to say, /if (less than 1 hour 30 minutes remaining it would look like:
Code:
/if (${Window[TaskWnd].Child[TASK_TaskList].List[1,3].Token[1,:]} <= 01 && ${Window[TaskWnd].Child[TASK_TaskList].List[1,3].Token[2,:]} <= 30) /shityourpants
Last edited: