AHK for OSRS Tutorial #4 - Basic Color Detection

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 96

  • @StudiosJJay
    @StudiosJJay 5 лет назад +33

    thank you for making these tutorials. Learning coding through osrs is fun.

  • @skinward5707
    @skinward5707 3 года назад +25

    Shame this series had to end I was enjoying learning how to use ahk

  • @TheAmnezium
    @TheAmnezium 4 года назад

    So far i learned many Python coding, but as a fan of OSRS for more than 14 years, I love your tutorials on notepad++, which I haven't realized before. Good job mate!

  • @nastytuesday3840
    @nastytuesday3840 4 года назад +15

    later on can you show us how to make an agility script? watching ur botting to max with ahk and ur agility script looks amazing

  • @UhWatchMe
    @UhWatchMe 4 года назад +7

    For the next episode I think it would be nice to use the ghostmouse function from AHK. (Control Click) that is just a mouse click, but doesn't use the persons cursor (client must be visible on screen!) perfect for running fletching or something.

  • @Cooter69
    @Cooter69 4 года назад +8

    My scripts are on another level now, thank you

  • @husainali1390
    @husainali1390 4 года назад +10

    When the next vid will come out buddy waiting!!! 3month

  • @Eljulitus
    @Eljulitus Год назад

    Oh, this is *soo* fantastic, man! Just what I needed right now! Thanks a superlot!

  • @UhWatchMe
    @UhWatchMe 4 года назад +4

    For debugging I would make hotkeys that snap current coordinates and colors to your clipboard for faster development though. Good video for beginners :)

  • @samstephenson7435
    @samstephenson7435 4 года назад +1

    Videos are ace helped massively got a few different ones running without bans thank you

  • @rRockworth710
    @rRockworth710 4 года назад +2

    if you are still around i would love a new discord link, great series btw

  • @FatPickle4
    @FatPickle4 4 года назад +1

    looking forward to the video on the random bezier curve!! i'm having trouble with it

  • @Micheal_OS
    @Micheal_OS 4 года назад +2

    I know this is an older video but can you explain how to make the pixel search click a random pixel i have marked? It always going and clicks the very 1st one it finds on screen

  • @amonrivka6723
    @amonrivka6723 4 года назад +2

    I've managed to write a code that attacks certain mobs using pixelsearch, however it keeps on clicking on the exact same pixel at the exact same coordinates. How does one randomize this so that it clicks within a random area within the pixel?

  • @Tainted_Fool
    @Tainted_Fool 5 лет назад +6

    I like the getColor function. Can this be used to get the X and Y position of the mouse or maybe someone to get coordinates faster? I get tired of using Windows Spy to get the coordinates. The process to get them is tedious. EX: open Windows Spy; Click on active window; Remember Coordinates; Click on notepad to write it down;

    • @honestlowlife2985
      @honestlowlife2985  5 лет назад

      Completely agree with the tedious aspect lol, you can use getColor and MouseGetPos in conjunction and have the script write the coords and color ID to a text file. Check out FileOpen() and FileAppend in the AHK docs.
      I'd write an example but I'm on mobile right now, but writing to text files can be useful in lots of ways

    • @yuenchunlong102
      @yuenchunlong102 4 года назад

      @@honestlowlife2985 Thanks for your guides! It really got me started using AHK!
      Thanks to your videos, I was able to make this for people who wants the coordinates and color in a text file.
      It will automatically open if you run the script.
      Just replace the filelocation of where you want the txt file to appear
      ;Color detection and Coordinates
      1::
      Winclose, ahk_class Notepad
      FileDelete, #filelocation
      MousegetPos, MouseX, MouseY
      PixelGetColor, e, %MouseX%, %MouseY%
      FileAppend, x=%MouseX% - y=%MouseY% & %e%, The coordination and color at current cursor position.txt,
      Run The coordination and color at current cursor position.txt
      2::reload
      3::exitapp

  • @Joombiffnaq
    @Joombiffnaq 3 года назад +1

    I'm trying to make a WC script and no matter what I do it always clicks on the exact same spot when it finds the color. How do I run it through a loop to make it choose different spots? I tried having it loop with a bracket at the beginning and the end of the script but it didn't change anything.

  • @sicegames8554
    @sicegames8554 Год назад

    Make more guides plz, i learned alot from you and you have a talent for teaching!

  • @LoonerOfficial
    @LoonerOfficial 5 лет назад +2

    Hey, i needed ahk for programing my macro keys to new numbers such as f13-24 or like a number than 9 at once for my game menus.

  • @wendel4320
    @wendel4320 4 года назад +1

    Looking forward for a full skill tutorial!

  • @Ironmeen
    @Ironmeen 4 года назад +1

    Can you make more kind of these Tutorials?

  • @yankyyyy
    @yankyyyy 4 года назад +1

    Loving these tutorials. Can you explain how do you make the notepad++ to format everything so cleanly?

  • @jochemgravendeel6086
    @jochemgravendeel6086 2 года назад

    discord link is invalid unfortunatly, keep the series going pls i learn so much from it

  • @Donnie64inPa
    @Donnie64inPa 2 года назад

    Thanks for taking the time to put up this series! I was wondering what did you click/press to run the program?

  • @calintatar
    @calintatar 5 лет назад +3

    I love the song at the end. Could you please let me know which one is it?

  • @garythacker6731
    @garythacker6731 Месяц назад

    When using Pixelsearch and clicking a Pixel it will always click the same pixel. is there a way to randomize the pixel it clicks?

  • @Smalls989
    @Smalls989 4 года назад +2

    Know any of the ocr functions to read text warnings or how many cannon balls you have for example?

  • @marquiscraft5206
    @marquiscraft5206 2 года назад

    I have tried this on my laptop. My mouse does not move after the script starts. It will only work if i move the mouse to the area where the color exists. How do i correct that?

  • @Kramtolentino
    @Kramtolentino 4 года назад +1

    is this computer programming??? coding?? i dnt know anything about computers but make more of these tutorials, it looks like it's helpful

    • @whateverppl1229
      @whateverppl1229 3 года назад +1

      well I wouldn't call it programming, It's more like boot leg moon shine.

  • @XtimelessvidzX
    @XtimelessvidzX 5 лет назад +2

    What can we look for next video?

    • @honestlowlife2985
      @honestlowlife2985  5 лет назад +11

      I'm unsure right now, I'm torn between continuing basic concepts, or transitioning to me showing how to write full-fledged scripts for various skills. These would be videos of similar length, with me writing a script from scratch for a skill (probably start with basic stuff, like fletching etc) and explaining what I'm writing and why. Up in the air right now, feel free to suggest ideas though :)

    • @XtimelessvidzX
      @XtimelessvidzX 5 лет назад +1

      @@honestlowlife2985 how about using randombeizer in your scripts?

    • @AkashSaggar
      @AkashSaggar 4 года назад +1

      @@honestlowlife2985 I think it would be a good idea for you to make a tutorial for a full skill. You've taught us the basics, and now it's time for advanced stuff. Thanks a lot!

  • @3s843a
    @3s843a 5 лет назад +2

    Very powerful tech!

  • @SkrNoobYeBoiSkinnyWiener
    @SkrNoobYeBoiSkinnyWiener 3 года назад

    i like to do this but in my inventory. detecting when there is an item in a cetain place. it starts running somewhere after it detected an item in my 28th spot in my inventory. is this possible ? like it loops unthill it detects something than walks somewhere and than goes back to the loop after it done.. ooh btw your discord link doenst work anymore

  • @robertsmith512
    @robertsmith512 4 года назад

    This series is smoking.

  • @dukeofpmps
    @dukeofpmps 3 года назад

    do you still have an active discord?

  • @Arahsaka
    @Arahsaka 4 года назад

    With using this script partially. What code would I need to write to return the cursor to the color detected.

  • @TatToTheToo
    @TatToTheToo 4 года назад

    Hey man are you still around i have a question :)

  • @yuenchunlong102
    @yuenchunlong102 4 года назад

    Is there a possibility to teach us how to write a combat script?

  • @woolldogg2329
    @woolldogg2329 4 года назад

    Can I not just copy and paste this into my notes and do it that way ?

  • @christinamansson9071
    @christinamansson9071 4 года назад

    hey @Honest lowlife discord link does not work, can i contact you on discord somehow?

  • @xxxxxxxLINKxxxxxxx
    @xxxxxxxLINKxxxxxxx 4 года назад

    not sure if you will see this comment or not. I've watched the tutorials but think i'm having problems with correctly bracketing or if then statements. I'm trying to make a simple auto miner that works better for lower level mining. checks if rock 1 is full of ore, if it is full of ore click rock. and then check if rock 1 has emptied, then only if empty begin on rock 2, then eventually the same thing to rock 3 and looping back to rock 1. After I figure out the mine 1 drop 1, figuring out how to correctly add to check if inventory is full after each rock has emptied, if full inventory then go to a dropfullinventory command for the next version of the script to be able to mine a full inventory rather than mine 1 drop 1. I am new to this but currently my script isn't correctly functioning and still just rolls through all 3 rocks in the same randomised timing and drops 1 after each click. I believe i didn't correctly tie in the loops for example if the rock is NOT empty, it needs to return the script back to loop only checking if it's empty until it becomes true.

    • @honestlowlife2985
      @honestlowlife2985  4 года назад

      Hi there! I'd love to help, but fixing issues in code is challenging on RUclips. feel free go join my discord and post your issue in the help section, I'm sure someone can help :)

    • @retardalert5395
      @retardalert5395 4 года назад

      Hey,
      in my main loop I first check for the bottom right inventory item,
      pixelsearch,xvariable,yvariable,x1,y1,x2,y2,pixelcolour,variation,fast
      If I want to autobank all of my commands will follow this if statement, if i want to autodrop i will then search for the top left section inside this search and then autoclick the location
      pixelsearch,xvariable,yvariable,x1,y1,x2,y2,pixelcolour,variation,fast
      if !errorlevel
      {
      pixelsearch,xvariable,yvariable,x1,y1,x2,y2,pixelcolour,variation,fast
      if !errorlevel
      {
      DROP ITEM SEQUENCE
      }
      }
      then you add an else statement for your first if statement for the mining portion

  • @vertex1101
    @vertex1101 4 года назад

    the invite link for discord is not working

  • @RahRahMV
    @RahRahMV 4 года назад +1

    why did you stop making vids also discord invalid

  • @blist3984
    @blist3984 3 года назад

    can you copy and post or link the script that you made? it would help tremendously! (think i spelt that right)

  • @pault9420
    @pault9420 4 года назад +1

    how do you code clicking on moving targets npc or players?

    • @NevaChanced
      @NevaChanced 4 года назад

      Just make ur mouse return to the starting position after the action u want. Then just track the player/npc with the mouse

  • @Hard_Cor3
    @Hard_Cor3 5 лет назад +1

    Hello, im using blue stacks and playing osrs like if is in a mobile, so i think they cant track my mouse move correctly? With this i can be very more accurate, i use simple macro with variable delay, and variable pixels to click so i think its very safe run like 30 min and breaks correctly? Sorry for the english... but you think with bluestacks is safe to bot? When you training like mining or fletching,cooking how many time you run the script and the breaks? Thanxs for the tutorials man!

    • @XtimelessvidzX
      @XtimelessvidzX 5 лет назад

      bluestacks isnt safe if you dont root it and change what device and imei number it is using, as you will get banned due to that

    • @honestlowlife2985
      @honestlowlife2985  5 лет назад

      I can't say for sure with bluestacks as I've never personally used it, but several people in my discord have with great results. As you said, I'd still randomize clicks and sleeps, but I'd imagine it would be at least somewhat safer since there's no actual mouse movement on mobile. Depending on the script I'm running, I do 2-4 blocks at a time, with large breaks in between, typically with some regular gameplay mixed in. Thanks for watching!

    • @Hard_Cor3
      @Hard_Cor3 5 лет назад

      @@XtimelessvidzX where did you read about this? I think this not exist, blue stack emule a android, if u go to configuration you can see he is emulation a android phone with version and model like galaxy and other versions

    • @XtimelessvidzX
      @XtimelessvidzX 5 лет назад

      It default emulates an One plus phone, I've rooted mine and changed it to my actual Note 9 with same Imei number and carrier.
      I'm assuming here that jagex would have simple information on device used, especially with mobile.

    • @Hard_Cor3
      @Hard_Cor3 5 лет назад

      @@XtimelessvidzX i can have more than 5 phones and play in all of them... jagex cant ban me because i have a lot of phones ... lol, and the bluestacks just open everytime with one phone model he not change

  • @DirtiestJoe
    @DirtiestJoe 4 года назад

    Is ahk safer than messing with the osrs client. In your experience

  • @chrispeters1020
    @chrispeters1020 3 года назад

    I feel like the program jitbit macro recorder is basically auto hot key but with a UI added to it because so far everything you’ve done I can do on that program also. I like typing the macro out on auto hot key though it makes me feel like I know how to code 🤣

  • @basic2167
    @basic2167 4 года назад

    How do I make it click randomly on that color? please help! appreciate it!

  • @yoyoei1
    @yoyoei1 3 года назад

    Heyo, love ur vids.. Help me a lot. Just one queston, isnt ahk banned? Thanks dude

    • @whateverppl1229
      @whateverppl1229 3 года назад

      correct. ahk is not allowed and you can get banned for using it.

    • @yoyoei1
      @yoyoei1 3 года назад

      @@whateverppl1229 ty 4 answer

  • @gustie3644
    @gustie3644 3 года назад

    Discord invite is invalid? :(

  • @nikolavlaovic3889
    @nikolavlaovic3889 4 года назад

    What if my color ID changes as sun goes down?
    Im trying to make it into diferent game...

    • @whateverppl1229
      @whateverppl1229 3 года назад +1

      variation, he does 1 so change it and see how high of a variation you need.
      so for instance, 3 would be the value you want to change PixelSearch, Rx, Ry, x1, y1, x2, y2, 0x000000, 3, RGB

  • @Futuristdai
    @Futuristdai 4 года назад

    bro keep up the work . go advance for us

  • @xygz_nutshot8755
    @xygz_nutshot8755 4 года назад

    Won't let me click the color I want it to detect and click on

  • @mahmad9095
    @mahmad9095 4 года назад

    how can i loop a specific function?

  • @tonypereira6495
    @tonypereira6495 4 года назад

    Would you be willing to sell custom scripts?

  • @Mr.Danny2
    @Mr.Danny2 3 года назад

    it doesnt work for me somehow

  • @TheFrostGeneration
    @TheFrostGeneration 5 лет назад +1

    Awesome ty

  • @playlist-gt5ji
    @playlist-gt5ji 5 лет назад

    is your acc still alive?

    • @honestlowlife2985
      @honestlowlife2985  5 лет назад +2

      Yep still going strong! New video will be out soon

    • @playlist-gt5ji
      @playlist-gt5ji 5 лет назад +1

      @@honestlowlife2985 alright glad to hear man, the vids about the mining script was that the actual one u used to be safe or did u add other stuff to it?

  • @wenni3292
    @wenni3292 4 года назад +1

    how do i loop this?

  • @rageon8783
    @rageon8783 10 месяцев назад

    Here to learn hacking ingame

  • @frenkie6446
    @frenkie6446 4 года назад

    STOP THOSE tutorials please, ive been doing this for years and years without ban, but your video is putting us at risk!

  • @Glories999
    @Glories999 4 года назад +1

    How would you write a script for something that moves say either thieving or attacking something