<https://www.autoitscript.com/forum/topic/29792-great-just-what-i-need/#comment-213162>
<http://schema.org/text>
"I got online and played your fishing game.  I needed to click and hold click down inorder to manipulate the fishing rod.  So, MouseClickDrag is what you would need.  As far as the specifics for the script, try and write it and post your problems after you have made a complete attempt.  You know the basic structure should be:\n \n1. Pixelsearch inside the two red lines, possibly even do a pre-pixel search looking for the red lines to show up, indicating you have hooked something.  The pixelsearch will have a shade variation because of the slight color changes in the bobber. \n2.  Once you have the coodinates for the bobber you will know where it is in relation to the two red lines it can not cross.  Have it MouseClickDrag in a loop until the bobber's X position is back in the center.  So, your script should be MouseClickDragging back and forth quite often while you are reeling it in. \n \nAs far as you having trouble pixelsearching the window, I suggest you go back to some basics and try and polish your skills a little.  With your pixelcoord mode properly set, it should be relative to the active window... so setting up the search coordinates should be easy.  We arent going to write this for you from scratch.  Get at least a partially working script and then post your questions/errors in the forums.  Good luck, I look forward to trying out what you make. "
<https://www.autoitscript.com/forum/topic/29792-great-just-what-i-need/>