Jump to content

Backnor

Active Members
  • Posts

    27
  • Joined

  • Last visited

Backnor's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. open up autoit info tool and find the x and y cord (top left of the box u want to search) then the x and y of the bottom right of the box u want to search. first x and y cords use them in pixel search(x, y, now the second set use in the next set of cords for pixel search followed by the hex# for the color u are trying to find. Last thing is the color variation u want to use (it will find the hex color plus or minus, thus called shade variation) use $color = PixelSearch(x, y, x1, y1, 0x000000, 5) While 1 $color = PixelSearch(x, y, x1, y1, 0x000000, 5) If IsArray($pixel) = 1 Then; If Pixel has been found MouseClick('left', $pixel[0], $pixel[1], 1, 0); Click on the pixel EndIf WEnd hope this helps a little
  2. What game are you trying to use this code in?
  3. LOL a little more reading and I got it thanks guys.... when I find it myself I remember it soo much better.... ControlSend("Age of Conan", "", "", "{D Down}")
  4. One real fast and easy question did I do this control send correct or do I need to read more? Ok easy enough I want to send the Send("{D Down}") I have not tried this yet but am I doing this correctly? ControlSend("Age of Conan", "", "[Edit1]", "{D Down}") and if this is correct do I need to do something like this for pixelgetcolor?
  5. I am currently reading the help file for this very answer. Good luck for the answer, I have been writing a script for conan for the past four days and would love to be able to surf a web page while my script runs but I am also lost. Wish I could help ya but I will be watching your post for any help.
  6. I am still learning myself but try this $randomdelay = Random(100, 1000) Func attack() Do $atk = PixelGetColor(171, 148, 2) If $atk = 0xFFFFFF Then MouseClick("left", 585, 234, 1, $randomdelay) If $atk <> 0xFFFFFF Then MouseClick("left", 260, 276, 1, $randomdelay) EndIf EndIf Until $atk = 0xFFFFFF EndFunc ;==>attack
  7. Thanks ChrisL Plus Rep
  8. Sorry to bother you guys again but this is what I ended up with and it seems to work except the F3 function, oh and I had to put a loop in there so it would keep running. any ideas? WinWait("Age of Conan", "") If Not WinActive("Age of Conan", "") Then WinActivate("Age of Conan", "") WinWaitActive("Age of Conan", "") While 1 HotKeySet("{F1}", "combo4") HotKeySet("{F2}", "combo5") HotKeySet("^{F3}", "combo6") HotKeySet("{F6}", "combo9") HotKeySet("{F7}", "combo0") WEnd Func combo4() HotKeySet("{F1}") Send("{4}") Sleep(1000) Send("{1}") HotKeySet("{F1}", "combo4") EndFunc;==>combo4 Func combo5() HotKeySet("{F2}") Send("{5}") Sleep(1000) Send("{1}") HotKeySet("{F2}", "combo5") EndFunc ;==>combo5 Func combo6() HotKeySet("{F3}") Send("{6}") Sleep(1000) Send("{1}") Sleep(1000) Send("{2}") HotKeySet("^{F3}", "combo6") EndFunc ;==>combo6 Func combo9() HotKeySet("{F6}") Send("{9}") Sleep(1000) Send("{3}") HotKeySet("{F6}", "combo9") EndFunc ;==>combo9 Func combo0() HotKeySet("{F7}") Send("{0}") HotKeySet("{F7}", "combo0") EndFunc ;==>combo0
  9. thank you very much changing it now.
  10. I may be way off on this script I have not tried it yet but all I am looking for is if I am doing this correctly and if not where to get the correct way to set up hotkeys. Looking to be able to hit the number 4 and it does func 4 I only need it to do the funk once. this is only to automate the keys to hit after hitting the first key, I will not be afk so no need for any loops HotKeySet("{4}", "combo4") HotKeySet("{5}", "combo5") HotKeySet("^{6}", "combo6") HotKeySet("{9}", "combo9") HotKeySet("{0}", "combo0") Func combo4() Send("{4}") Sleep(1000) Send("{1}") EndFunc ;==>combo4 Func combo5() Send("{5}") Sleep(1000) Send("{1}") EndFunc ;==>combo5 Func combo6() Send("{6}") Sleep(1000) Send("{1}") Sleep(1000) Send("{2}") EndFunc ;==>combo6 Func combo9() Send("{9}") Sleep(1000) Send("{3}") EndFunc ;==>combo9 Func combo0() Send("{0}") EndFunc ;==>combo0
  11. UUUG now I really hate u becouse I feel stupid...... Sorry You mean to tell me you can see what I am thinking???? Sorry I did not word what I was thinking. I want know the code is differant I wrote one last night half asleep and then one today, I want the same result. The top one calls $Skill1 - $Skill0 and they in turn call the func 1 - 0, top one (I think if I wrote it correctly) looks at X,Y and if it see's the color it calls the function. Bottom one is just the functions with a pixelcheck built in I was hoping to get an answer to what would be the cleanest and mabie the fastest way to accomplish calling function 1 - 0 and checking before each function to see if he Bad Guy was still alive. The way I had it last night all the fight functions would run to the end before it would check for "bad guy" Ok headed home thanks for making me look like an ass.... I needed it
  12. I do not want any of your time at all there is no reason to be an ass. I was asking a question and sorry if my skills are not as good as yours. So plz if you have nothing good to say don't say anything at all, I am sorry you are having a bad day becouse I posted on the help forum. I thought I wanted some input from others but if its a problem for an oppinion then forget it. Did I ask for code???? no do I want code????? no Sorry to others that are will to say "hey I would use......" or "dude u need to work on it becouse neather way will work" elitest turds make me upset.
  13. Hey guys I am setting up a little bot and was wondering what will work better I am at work and I do not have the game in front of me so.... Would it be better to use Func Fight() $nbg = PixelGetColor($bg_x, $bg_y) <> $bg_Color If @error Then skill4() $nbg = PixelGetColor($bg_x, $gg_y) <> $bg_Color If @error Then skill5() $nbg = PixelGetColor($bg_x, $bg_y) <> $bg_Color If @error Then skill6() $nbg = PixelGetColor($bg_x, $bg_y) <> $bg_Color If @error Then skill7() $nbg = PixelGetColor($bg_x, $bg_y) <> $bg_Color If @error Then skill8() $nbg = PixelGetColor($bg_x, $bg_y) <> $bg_Color If @error Then skill9() $nbg = PixelGetColor($bg_x, $bg_y) <> $bg_Color If @error Then skill0() EndIf EndIf EndIf EndIf EndIf EndIf EndIf $nbg = Not $nbg While $nbg Sleep(100) ToolTip('No Bad Guy To Pull', 100, 100) WEnd ToolTip("") EndFunc ;==>Pause Or Func skill4() $SKL4 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{4}") Sleep($b) Send("{3}") Sleep($b) Send("{1}") EndIf EndFunc ;==>skill4 Func skill5() $SKL5 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{5}") Sleep($b) Send("{3}") Sleep($b) Send("{1}") EndIf EndFunc ;==>skill5 Func skill6() $SKL6 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{6}") Sleep($b) Send("{1}") Sleep($b) Send("{2}") EndIf EndFunc ;==>skill6 Func skill7() $SKL7 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{7}") Sleep($b) Send("{2}") EndIf EndFunc ;==>skill7 Func skill8() $SKL8 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{8}") Sleep($b) Send("{2}") EndIf EndFunc ;==>skill8 Func skill9() $SKL9 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{9}") Sleep($b) Send("{3}") EndIf EndFunc ;==>skill9 Func skill0() $SKL0 = PixelGetColor($bg_x, $bg_y) = $bg_Color If Not @error Then Send("{0}") Sleep($b) Send("{1}") Sleep($b) Send("{3}") EndIf EndFunc ;==>skill0 Func Pause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('TestMacro is currently paused.', 100, 100) WEnd ToolTip("") EndFunc ;==>Pause now when useing the first example I will remove the first and second line, just leaving the function that will hit keys Hope to get an answer on this one, Thanks in advance
  14. Is there any way to have your mouse hover of an area (area like 400X400) and throw a flag if the mouse pointer changes? This may not be possible but it sure would make my life a little easer. If this can be done plz point me in the right direction to learn how to script this, not asking for code but the source to learn. like Mousemove (400,460,800,860) If mousestate =1 then $Cond1 If @error then $cond2 lol I may be way off here but I do not think autoit supports this without reading mem Thanks all
×
×
  • Create New...