Search found 8 matches

by zKade
25 Dec 2020, 05:43
Forum: Ask for Help (v1)
Topic: Making GDI+ imagesearch return x & y separately?
Replies: 1
Views: 185

Re: Making GDI+ imagesearch return x & y separately?

upon further research it was tic's imagesearch library that does that.
https://autohotkey.com/board/topic/71100-gdip-imagesearch/
solved
by zKade
25 Dec 2020, 05:39
Forum: Ask for Help (v1)
Topic: Making GDI+ imagesearch return x & y separately?
Replies: 1
Views: 185

Making GDI+ imagesearch return x & y separately?

Using MasterFocus' GDI imagesearch library https://github.com/MasterFocus/AutoHotkey/blob/master/Functions/Gdip_ImageSearch/Gdip_ImageSearch.ahk If I run an imagesearch it returns the found coordinates in a list, I want to try to make them separate as I am not trying to search for multiples of the s...
by zKade
21 Dec 2020, 11:44
Forum: Ask for Help (v1)
Topic: Hotkeys interrupting eachother?
Replies: 3
Views: 143

Re: Hotkeys interrupting eachother?

mikeyww wrote:
21 Dec 2020, 11:41

Code: Select all

F2::MsgBox, Oh!
F3::
Suspend, On
SoundBeep, 1500, 20
Loop, 10 {
 Send %A_Index%
 Sleep, 200
}
Suspend, Off
SoundBeep, 1000, 20
Return
I appreciate the quick response, is there any way to queue the second function so it still runs just queued to run after the last one?
by zKade
21 Dec 2020, 11:37
Forum: Ask for Help (v1)
Topic: Hotkeys interrupting eachother?
Replies: 3
Views: 143

Hotkeys interrupting eachother?

How do I stop hotkey A from interrupting hotkey B?
I have two hotkeys, if the function from one is running and I start the other hotkey the other hotkey will just run in the middle of the first hotkey. How to prevent this?
by zKade
19 Dec 2020, 07:38
Forum: Ask for Help (v1)
Topic: Interrupt function
Replies: 2
Views: 212

Re: Interrupt function

Sleep will sleep for as long as you tell it to, you could make a loop that sleeps for 10ms each loop. For 700ms make it loop 70 times, each time it loops check if the value hasn't changed, if it has, break the loop with more or less loops. z:: global distance := 70 return x:: global distance := 50 r...
by zKade
28 Nov 2020, 22:12
Forum: Ask for Help (v1)
Topic: Imagesearching multiple targets (please help!)
Replies: 3
Views: 866

Imagesearching multiple targets (please help!)

I am trying to use imagesearch to find the same image multiple times quickly. For example I have a box that could have the same image appear 30 times in different positions I want to index the positions of every single instance My initial thought is to do some math when the imagesearch returns the f...
by zKade
27 Nov 2020, 19:07
Forum: Ask for Help (v1)
Topic: Setting GUI position to mouse postion Topic is solved
Replies: 2
Views: 235

Re: Setting GUI position to mouse postion Topic is solved

mikeyww wrote:
27 Nov 2020, 18:51

Code: Select all

CoordMode, Mouse
Gui, Add, Button, Default, OK

F3::
SoundBeep, 1500, 20
MouseGetPos, xpos, ypos
Gui, Show, x%xpos% y%ypos%
Return

GuiClose:
GuiEscape:
SoundBeep, 1000, 20
Gui, Hide
Return
exactly what I needed, thank you!
by zKade
27 Nov 2020, 18:35
Forum: Ask for Help (v1)
Topic: Setting GUI position to mouse postion Topic is solved
Replies: 2
Views: 235

Setting GUI position to mouse postion Topic is solved

hParent := WinExist("ahk_exe chrome.exe") Gui, Margin, 0, 0 Gui, Add, Button,, Home Gui, +AlwaysOnTop -Caption HWNDhChild +Border +E0x08000000 DllCall("SetParent", Ptr, hChild, Ptr, hParent) Gui, Show, x450 y1 NoActivate Return ButtonHome: Gui, +OwnDialogs ; no taskbar button for this MsgBox send,{...

Go to advanced search