Search found 9 matches
- 14 Dec 2017, 09:19
- Forum: Ask for Help (v1)
- Topic: Run PixelGetColor only in specific window Topic is solved
- Replies: 3
- Views: 1246
Re: Run PixelGetColor only in specific window Topic is solved
If WinActive, Chrome is not a command or a function call. You need either IfWinActive, Chrome (no space), or if WinActive("Chrome") (if with a function call). You also need a loop to have it continue to check. You should also make sure you are using the proper CoordMode for your coordinates. Btw, n...
- 14 Dec 2017, 09:02
- Forum: Ask for Help (v1)
- Topic: Run PixelGetColor only in specific window Topic is solved
- Replies: 3
- Views: 1246
Run PixelGetColor only in specific window Topic is solved
Hello, Im trying to setup the script that gets color and works only in specific window. What I want to do, is script running all the time, without hotkey, searching for pixelchange in certain window but I cant seem to get it right. I came up with something like this: s:: If WinActive, Chrome { Pixel...
- 30 May 2017, 03:02
- Forum: Ask for Help (v1)
- Topic: Any way to PixelGetColor from certain window?
- Replies: 1
- Views: 496
Any way to PixelGetColor from certain window?
Something like controlsend, controlclick, where the window doesn't need to be on the foreground, just not minimized.
Now my script with controlclick is working flawlessly but it depends on checking colour from the certain window and it cant run in the background because of it.
Now my script with controlclick is working flawlessly but it depends on checking colour from the certain window and it cant run in the background because of it.
- 25 May 2017, 07:18
- Forum: Ask for Help (v1)
- Topic: ControlClick not working for me
- Replies: 2
- Views: 1648
Re: ControlClick not working for me
It works! Thanks, I didnt know I had to use x/y in controlclick since it worked just fine without it in controlsend or mouseclick.
@Edit: Now I tried it with Calculator to try press 5, but it isnt working.
@Edit: Now I tried it with Calculator to try press 5, but it isnt working.
- 25 May 2017, 07:10
- Forum: Ask for Help (v1)
- Topic: ControlClick not working for me
- Replies: 2
- Views: 1648
ControlClick not working for me
Im trying to learn a simple controlclick command so later on I can automate other things but it doesnt seem to work for me. I searched the forums and found few provided scripts which lead me to write something like this: ^l:: WinActivate, Untitled - Notepad ControlClick, 980, 570, Untitled - Notepad...
- 21 Jan 2017, 16:22
- Forum: Gaming Help (v1)
- Topic: Press key on colour change
- Replies: 9
- Views: 8288
Re: Press key on colour change
Thank you very much!
- 21 Jan 2017, 16:11
- Forum: Gaming Help (v1)
- Topic: Press key on colour change
- Replies: 9
- Views: 8288
Re: Press key on colour change
Thank you, I learnt from your code things I wanted to use in my script, but written somehow different, like this: ^n:: loop { PixelGetColor, color, 980, 890, RGB if (color != 0x318ACF){ Sleep, 80 } else { Send, {k} Sleep, 80 } } return Numpad9::exitapp ^m:: loop { PixelGetColor, color, 1040, 900, RG...
- 21 Jan 2017, 13:45
- Forum: Gaming Help (v1)
- Topic: Press key on colour change
- Replies: 9
- Views: 8288
Re: Press key on colour change
hmm it works when I have for example a notepad open but when I have the game or chrome it doesnt
@edit:ok I figured it out, needed to run ahk via administrator, now, how can I connect 2 scripts together? so it check for place A color and place B?
@edit:ok I figured it out, needed to run ahk via administrator, now, how can I connect 2 scripts together? so it check for place A color and place B?
- 21 Jan 2017, 12:50
- Forum: Gaming Help (v1)
- Topic: Press key on colour change
- Replies: 9
- Views: 8288
Press key on colour change
Hi guys, I used AHK in the past but only some already written scripts, never wrote anything myself. Now I need something I cant find. Simple script that reads colours on the active window, to be specific searches for 2 different colours in 2 different spots, if colour A is active, press X, if colour...