I'll reconsider my last message about using PIXEL() and may provide you with more advice. SetDefaultMouseSpeed, 0 SetBatchLines, -1 ListLines. During this time the mouse can be moved like normal which will not stop the clicking. Pressing the F8 key again will stop clicking. The below script will continue to click once the F8 key is pressed. So I'll just assume that you want to use the more difficult PIXEL() function for now. To progress faster I want my AutoHotkey script to click repeatedly until turned off. Of course, since I can't see your screen, I can't give very good advice on how to use the Find Image action to get the job done. In fact, recently, I've been able to replace many of my Find Image actions using the more powerful Monterey OCR capabilities. I'll support you whichever way you want to go, but I've done this hundreds (nay, thousands) of times and I know from experience how powerful the Find Image action is. For detailed information, you can reach from discord or private msg. A more reliable method is to use the KM action Find Image. I saw many slow colorbots on Youtube, the project I made took a total of 2 hours and it works better than most.I injected an undetected overlay and imgui into it. Pixels are hard to deal with and for various reasons may not reliably work. I.e., I don't think you should be looking at pixels at all. In other words, I think you should try a different approach. But from your description I think your approach has complexity that you really don't need. Įvery day I write macros using KM that does similar things to what you are doing. MsgBox The color at the current cursor position is %color% x= %MouseX% y= %MouseY%. The other two work just as I describe it above. First one is checking the mouse location (x, y) and colour ID. I will appreciate it if someone could help me/give me some tips how to make it work on Keyboard Maestro.īelow the AutoHotkey scripts for your reference. However if the specific colour is keep being on the screen, the macro needs to keep pressing the key but with small pauses (0.5 sec for example). I am new into Keyboard Maestro, so far I was using AutoHotkey to execute few simple scripts in 2D game called 'Tibia' on Windows.īasically what I need is a macro which will watch pixel location on the screen while the game is on, and then if the pixel get specific colour it will press the key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |