Search found 15 matches
- 01 Jun 2022, 12:53
- Forum: Ask for Help (v1)
- Topic: How is mouse speed calculated?
- Replies: 1
- Views: 236
How is mouse speed calculated?
Let's say we set mouse speed to 15. What does that mean?
- 13 May 2022, 06:29
- Forum: Ask for Help (v1)
- Topic: Recording mouse movement
- Replies: 1
- Views: 202
Recording mouse movement
coordmode,mouse,screen coordmode,pixel,screen setbatchlines=-1 clipboard= msgbox,,,READY....,1 mousemovement=ctrl & enter:: loop 3000 { mousegetpos,x,y mousemovement=%mousemovement%`rmousemove,%x%,%y% } mousemovement=%mousemovement%`rreturn msgbox,,,END,1 clipboard=%mousemovement% Should return som...
- 14 Mar 2022, 03:38
- Forum: Ask for Help (v1)
- Topic: Does running separate scripts multithread?
- Replies: 3
- Views: 328
Does running separate scripts multithread?
I thought it would, but it's clearly not. I have 2 scripts that have a custom OCR I made with a lot of pixelgetcolors on each script. Running both at the same time, it takes 2 times longer than 1. How could I get them to run in separate threads? I saw something about AHK_L but saw that it might alre...
- 09 Feb 2022, 18:58
- Forum: Ask for Help (v1)
- Topic: Can AHK screenshot and then analyze PNG files for hex codes at certain coordinates?
- Replies: 7
- Views: 903
Re: Can AHK screenshot and then analyze PNG files for hex codes at certain coordinates?
Good stuff guys, thanks! I'll mess around with it for a bit.
- 09 Feb 2022, 15:32
- Forum: Ask for Help (v1)
- Topic: Can AHK screenshot and then analyze PNG files for hex codes at certain coordinates?
- Replies: 7
- Views: 903
Can AHK screenshot and then analyze PNG files for hex codes at certain coordinates?
First, I want to screenshot a certain area of the screen, and save that to a file. Is this possible in AHK? Then I want it to extract this kind of data:
(0,0) = #FFFFFF
(0,1) = #FFFFFF
(0,2) = #FFFFFE
(0,3) = #FFFFE1
(1,0) = #FFFFFF
(1,1) = #EEFFFF
...etc
(0,0) = #FFFFFF
(0,1) = #FFFFFF
(0,2) = #FFFFFE
(0,3) = #FFFFE1
(1,0) = #FFFFFF
(1,1) = #EEFFFF
...etc
- 18 Sep 2017, 12:37
- Forum: Ask for Help (v1)
- Topic: Getting the most common color from an area
- Replies: 3
- Views: 1145
Re: Getting the most common color from an area
Thanks for the link. I actually just found a solution, but I will try your suggestion out. This was my solution: ... allpixels=%pixel1%%pixel2%%pixel3%%pixel4%%pixel5%%pixel6%%pixel7%%pixel8%%pixel9%%pixel10% colorpixel:="FF0000" thecount := count(allpixels, colorpixel) msgbox, %thecount% return Cou...
- 18 Sep 2017, 04:18
- Forum: Ask for Help (v1)
- Topic: Getting the most common color from an area
- Replies: 3
- Views: 1145
Re: Getting the most common color from an area
Or maybe this is a start: (Assume pixel1, pixel2, etc, are the variables) pixelgetcolor pixel1 = red pixelgetcolor pixel2 = red pixelgetcolor pixel3 = green pixelgetcolor pixel4 = red pixelgetcolor pixel5 = red pixelgetcolor pixel6 = blue pixelgetcolor pixel7 = blue pixelgetcolor pixel8 = blue pixel...
- 18 Sep 2017, 04:12
- Forum: Ask for Help (v1)
- Topic: Getting the most common color from an area
- Replies: 3
- Views: 1145
Getting the most common color from an area
Hello, I am trying to search an area (in my case, a line of pixels 100x1), in order to find the most common exact color in that area. Here's an example, pretend it is 10x1 pixels: https://i.imgur.com/h4NEzwC.png Red is the most common color (0xdb5b5b, I need exact). Is there a function out there tha...
- 02 Jul 2017, 16:06
- Forum: Ask for Help (v1)
- Topic: Getting text from tooltip without mouse hover Topic is solved
- Replies: 1
- Views: 920
Getting text from tooltip without mouse hover Topic is solved
I am trying to get text from a tooltip, without hovering. I know how to do it by hovering over and activating it: ctrl & lbutton:: ControlGetText, OutputVar,,ahk_class tooltips_class32 MsgBox, %OutputVar% return But not sure if what I want is possible. Also this method requires the tooltip to show. ...
- 04 Jun 2017, 13:05
- Forum: Ask for Help
- Topic: Using multiple threads, getting "CONTINUABLE EXCEPTION ACCESS VIOLATION"
- Replies: 5
- Views: 5017
Re: Using multiple threads, getting "CONTINUABLE EXCEPTION ACCESS VIOLATION"
I have been trying, but it feels like I am nowhere close to making it work I am mostly confused at where to put the function and also the variables. I've tried to make it work from this reply you made before to me: obj:=CriticalObject() AhkThread(" ( obj:=CriticalObject(" (&obj) ") F2:: send, {F1} m...
- 04 Jun 2017, 03:27
- Forum: Ask for Help
- Topic: Using multiple threads, getting "CONTINUABLE EXCEPTION ACCESS VIOLATION"
- Replies: 5
- Views: 5017
Using multiple threads, getting "CONTINUABLE EXCEPTION ACCESS VIOLATION"
I am trying to add another thread to my script. script script script script script script script script script script script script script script script AhkThread(" ( Alias(variable1," getvar(variable1) "), Alias(variable2," getvar(variable2) ") #include function.ahk function() exitapp return )") sc...
- 25 May 2017, 16:09
- Forum: Ask for Help (v1)
- Topic: Sharing variables between two different hotkeys on different scripts (one triggering the other)
- Replies: 4
- Views: 2227
Re: Sharing variables between two different hotkeys on different scripts (one triggering the other)
Thanks! I will try them out.
- 25 May 2017, 15:32
- Forum: Ask for Help (v1)
- Topic: Sharing variables between two different hotkeys on different scripts (one triggering the other)
- Replies: 4
- Views: 2227
Sharing variables between two different hotkeys on different scripts (one triggering the other)
I have 2 scripts: (script1.ahk) F1:: variable=rainbows return (script2.ahk) F2:: send, {F1} msgbox, %variable% Easy to see how this code fails but the logic of what I want to do is there. I've tried #include, post/send message (which really confused me), workaround with clipboard works, but not if I...
- 03 May 2017, 21:00
- Forum: Ask for Help (v1)
- Topic: Trying to fade specific windows when inactive
- Replies: 2
- Views: 740
Re: Trying to fade specific windows when inactive
That did the trick, thanks for the help and explanation!
- 03 May 2017, 16:49
- Forum: Ask for Help (v1)
- Topic: Trying to fade specific windows when inactive
- Replies: 2
- Views: 740
Trying to fade specific windows when inactive
#Persistent Loop, 10000 { IfWinActive, Notepad WinSet, Transparent, 255, ahk_exe Notepad.exe } return #Persistent Loop, 10000 { IfWinNotActive, Notepad WinSet, Transparent, 50, ahk_exe Notepad.exe } return I don't have much experience with loop or persistent. Looking to have specific windows become...