Search found 63 matches
- 24 Nov 2023, 20:57
- Forum: Ask for Help (v1)
- Topic: Sending and receiving udp packets??
- Replies: 2
- Views: 1914
Re: Sending and receiving udp packets??
Sorry I took so long to reply. But I was not here at the time. I would say it is possible. I managed to change light colors and modes already. But with forced IPs by MAC address (router config) This example should turn lights on and off pressing "/" key on number pad if numLock is active and set it...
- 08 Jan 2020, 21:21
- Forum: Ask for Help (v1)
- Topic: could i install both ahk 1.x and 2.x alpha on same machine ?
- Replies: 1
- Views: 738
could i install both ahk 1.x and 2.x alpha on same machine ?
when executing an ahk, i can choose which version to interpret my ahk script
- 07 Jan 2020, 18:02
- Forum: Ask for Help (v1)
- Topic: Draw a colored outline on a GUI [Solved] Topic is solved
- Replies: 8
- Views: 5993
Re: Draw a colored outline on a GUI [Solved] Topic is solved
I'll take a look. Thanks.
- 06 Jan 2020, 17:45
- Forum: Ask for Help (v1)
- Topic: Draw a colored outline on a GUI [Solved] Topic is solved
- Replies: 8
- Views: 5993
Re: Draw a colored outline on a GUI Topic is solved
... or this (a modernized version of an old function)? #NoEnv Gui, Margin, 10, 10 GuiAddBorder("Red", 4, "xm ym w400 h200") Gui, Add, Text, xp yp wp hp Center +0x0200 BackgroundTrans, Border Example ; 0x0200 centers single-line text vertically Gui, Show, , Border Example Return GuiClose: ExitApp ; ...
- 05 Jan 2020, 21:01
- Forum: Ask for Help (v1)
- Topic: To keep a game windowed active
- Replies: 2
- Views: 543
Re: To keep a game windowed active
My lcd monitor is 19:10 which it's resolution is 1920x1200
I'm playing games in windows bordless mode, which is a small portion of desktop will shown at the top.
Sometimes it will miss click the desktop and lost the game window focus
I'm playing games in windows bordless mode, which is a small portion of desktop will shown at the top.
Sometimes it will miss click the desktop and lost the game window focus
- 04 Jan 2020, 17:18
- Forum: Ask for Help (v1)
- Topic: To keep a game windowed active
- Replies: 2
- Views: 543
To keep a game windowed active
I want to keep a running game windowed on active, to prevent my mouse clicked on the desktop accidentally.
The timer is not working the script run once only
Code: Select all
settimer, ontop, 500
ontop:
WinActivate ahk_exe Diablo III64.exe
The timer is not working the script run once only
- 31 Dec 2019, 23:16
- Forum: Ask for Help (v1)
- Topic: How to get gui edit box value from a drap and drop ui
- Replies: 2
- Views: 523
- 31 Dec 2019, 17:47
- Forum: Ask for Help (v1)
- Topic: How to get gui edit box value from a drap and drop ui
- Replies: 2
- Views: 523
How to get gui edit box value from a drap and drop ui
Here is a sample code of demonstrate drag and drop edit box ui. The code I was found somewhere in the forum Gui, Add, Edit, x5 y108 w358 h24 vMyEdit, Gui, Add, Button, x68 y137 w54 h24 , OK Gui, Add, Button, x247 y137 w54 h24 , Cancel Gui, Add, Text, x5 y5 w358 h98 , What is your file name? ; Genera...
- 21 Dec 2019, 17:22
- Forum: Ask for Help (v1)
- Topic: when to initial a call of Gdip_Startup()
- Replies: 2
- Views: 1087
when to initial a call of Gdip_Startup()
when using gdip ahk lib, Gdip_Startup() must to initial first before access to all gdip's function My script has different function to use gdip's function. Should i call Gdip_Startup() when ahk script loaded, or calling this function inside of each of custom fucntion where to use gdip's function ? S...
- 15 Dec 2019, 19:26
- Forum: Ask for Help (v1)
- Topic: IfMsgBox cannot accept block code ?
- Replies: 1
- Views: 358
IfMsgBox cannot accept block code ?
like
Code: Select all
IfMsgBox OK {
} else {
}
- 21 Nov 2019, 16:38
- Forum: Gaming Help (v1)
- Topic: Anti-cheat black screen
- Replies: 42
- Views: 15605
Re: Anti-cheat black screen
am I correct ? If everything good, use the variable pBitmap for gdip_imagesearch SetWorkingDir %A_ScriptDir%ss #Include gdip_all_v1.79.ahk gdipToken := Gdip_Startup() file := "file.png" ; can be: png, bmp, jpg, tiff, gif ;captureHwnd := 0x917ea captureHwnd := WinExist("ahk_exe Diablo III64.exe") !F5...
- 21 Nov 2019, 13:08
- Forum: Gaming Help (v1)
- Topic: Anti-cheat black screen
- Replies: 42
- Views: 15605
Re: Anti-cheat black screen
I have one more question. Instead of save to file, how to return to a variable (the capture bitmap stored in memory instead)
So that I can pass to gdip_imagesearch or opencv for searching
So that I can pass to gdip_imagesearch or opencv for searching
- 21 Nov 2019, 13:07
- Forum: Gaming Help (v1)
- Topic: Anti-cheat black screen
- Replies: 42
- Views: 15605
Re: Anti-cheat black screen
After studying the example code of https://www.autohotkey.com/boards/viewtopic.php?f=76&t=68428 from malcev I copied a few lines of code Here is modification of above code which support capture by region file := "file.png" ; can be: png, bmp, jpg, tiff, gif ;captureHwnd := 0x917ea captureHwnd := Win...
- 21 Nov 2019, 12:35
- Forum: Gaming Help (v1)
- Topic: Anti-cheat black screen
- Replies: 42
- Views: 15605
Re: Anti-cheat black screen
Just tried to hack SetWindowDisplayAffinity with non-documented DwmpDxGetWindowSharedSurface function. It will not work with hardware-accelerated windows. file := "file.bmp" ; can be: png, bmp, jpg, tiff, gif captureHwnd := 0x917ea setbatchlines -1 formatGuid := WIC_GUID(GUID, "GUID_WICPixelFormat3...
- 21 Nov 2019, 12:11
- Forum: Ask for Help (v1)
- Topic: is there an alternative imagesearch solution on gdip lib ?
- Replies: 31
- Views: 7857
Re: is there an alternative imagesearch solution on gdip lib ?
From @malcev sample code of using directx to screen capture the screen/desktop
The actual saving the screen to file is SavePixelsToFile32bppPBGRA() function, before this function executed, what is the loop 100 { } for ?
Why to loop 100 times before save a screenshot
The actual saving the screen to file is SavePixelsToFile32bppPBGRA() function, before this function executed, what is the loop 100 { } for ?
Why to loop 100 times before save a screenshot
- 21 Nov 2019, 11:43
- Forum: Ask for Help (v1)
- Topic: is there an alternative imagesearch solution on gdip lib ?
- Replies: 31
- Views: 7857
Re: is there an alternative imagesearch solution on gdip lib ?
malcev wrote: ↑21 Nov 2019, 11:32https://www.autohotkey.com/boards/viewtopic.php?f=76&p=299604#p299604
For two image search implementation, gdip and opencv, which one is better in terms of performance and memory overrhead for loading the dll lib ?
- 21 Nov 2019, 11:26
- Forum: Ask for Help (v1)
- Topic: is there an alternative imagesearch solution on gdip lib ?
- Replies: 31
- Views: 7857
Re: is there an alternative imagesearch solution on gdip lib ?
any info how to use opencv for image search ?
- 21 Nov 2019, 07:18
- Forum: Ask for Help (v1)
- Topic: is there an alternative imagesearch solution on gdip lib ?
- Replies: 31
- Views: 7857
Re: is there an alternative imagesearch solution on gdip lib ?
Even though capture screen by using directx api, for image search for a given image, i ve to use gdip_imagesearch to do the job?
direct x has no such thing, right ?
direct x has no such thing, right ?
- 21 Nov 2019, 05:25
- Forum: Ask for Help (v1)
- Topic: how to create a hotkey being pressed for xx ms and do soemthing
- Replies: 3
- Views: 539
Re: how to create a hotkey being pressed for xx ms and do soemthing
i tried to send char a repeatly while holding down left button, but it didnt work
Code: Select all
~*LButton::
While, GetKeyState("LButton","P")
{
send a
}
- 21 Nov 2019, 03:04
- Forum: Ask for Help (v1)
- Topic: how to create a hotkey being pressed for xx ms and do soemthing
- Replies: 3
- Views: 539
how to create a hotkey being pressed for xx ms and do soemthing
I want to create a hotkey
left mouse button hold down for xx ms and do a loop for doing something, exit the loop from releasing the button. If press and hold the button again, the loop start and so for
left mouse button hold down for xx ms and do a loop for doing something, exit the loop from releasing the button. If press and hold the button again, the loop start and so for