

Takes ImageName, X Offset Limit, Y Offset Limitįinds ImageName, locates center of ImageName, and clicks with the X and Y offset distance from the center of the image. IfEqual,a,Random,% r := b = 1 ? Rnd(0,0xFFFFFFFF) : b %Īnd here's the function I wrote to click varying locations on an image instead of the exact same location each time: /* ImageClick() Rnd(50, 100) - Random integer between 50 and 100 (typical use) Rnd("", 12345) - New random seed (set explicitly) Rnd("") - New random seed (selected randomly) Rnd(6) - A random integer between 1 and 6 (die roll) Rnd() - A random float between 0.0 and 1.0 (many uses) Here's the random function I use for putting some variation in my times: FROM: If both my crew members are on a mission then there's nothing to find so nothing will be happening. The above mining icon is only available if he is NOT on a current mission so just scanning for that will surfice. In fairness i dont need to know when they finish as long as i periodically click where the accept button is located. With this part, i can stick the loop condition on that and remove the sleep parts for timings. else if ErrorLevel = 0 MouseClick, left, minex + 10, miney + 10, 1 png if ErrorLevel = 2 MsgBox Could not conduct the search. find the crew skill i want and click it to open the mission window ImageSearch, minex, miney, 0, 0, A_ScreenWidth, A_ScreenHeight, * 100 mining. (at the moment the trigger for all intent purposes is the timer has run out on the last mission so he is back!) I can't time 2 things at the same time which doing actions on them both and not interferring. With the main loop Mission Picker, i need to not kick this loop off until something is triggered. ImageSearch, metalx, metaly, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 metals.png routine to pick the correct mission and sleep depending on the level of the mission found Write the tier to a file so i can check what it did and restars the whole loop to pick a new mission click the various possisions the "complete" message popup box can be, image detect didnt work on this because its different colours, blends with the background.

MouseClick, left, underworldx+50, underworldy+50, 2

#SWTOR HOW TO SET UP HOTKEYS WINDOWS#
Failing everything close and reopen all the windows (that opens at the highest level) and pick the first mission whatever it is mission picker, if it cant find the one i want in level 1, check the level 2's, if it cant, check level 3's. MouseClick, left, underworldx+200, underworldy+10, 1 MageSearch, underworldx, underworldy, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 underworld.png ImageSearch, minex, miney, 0, 0, A_ScreenWidth, A_ScreenHeight, *100 mining.png find the crew skill i want and click it to open the mission window just sleep while i switch to the program and open up the crew skills window with n key Or can AHK be set to execute commands only if the other AHK script is currently "sleeping" etc so i can just run 2 versions ?Īny suggestions as to commands i could use would be highly appreciated. But innevitably the timers clashed and it broke of course.ĭoes anyone have any idea how i can make it into 1 script, but it'll have to keep track of 2 timers and if they expire at the same time then do 1 and then do the other rather than trying to do both at the same time. Now i have 2 crewmen and i want them both to be busy at the same time.Īt first i just ran 2 instances of the script setting them off slightly appart. However here's the problem and i can't work out how to "fix it"ġ created this script with just 1 crewman. Each level takes longer than the one before it so the sleep is determined by the level (tier in my script) and the script just sleeps for the duration my guys if off on his "jollies" I want to do level 1 missions, then 2 if there are no 1's, then 3 then 4 then failing that just do the first mission of the highest one.
#SWTOR HOW TO SET UP HOTKEYS CODE#
Ok i have this code that sends my crewman to do crew skills.
