Search found 62 matches

by takayo97
08 Jan 2020, 21:21
Forum: Ask For Help
Topic: could i install both ahk 1.x and 2.x alpha on same machine ?
Replies: 1
Views: 638

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
by takayo97
06 Jan 2020, 17:45
Forum: Ask For Help
Topic: Draw a colored outline on a GUI [Solved] Topic is solved
Replies: 7
Views: 2334

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 ; ...
by takayo97
05 Jan 2020, 21:01
Forum: Ask For Help
Topic: To keep a game windowed active
Replies: 2
Views: 375

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
by takayo97
04 Jan 2020, 17:18
Forum: Ask For Help
Topic: To keep a game windowed active
Replies: 2
Views: 375

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.

Code: Select all

settimer, ontop, 500

ontop:
    WinActivate ahk_exe Diablo III64.exe


The timer is not working the script run once only
by takayo97
31 Dec 2019, 17:47
Forum: Ask For Help
Topic: How to get gui edit box value from a drap and drop ui
Replies: 2
Views: 378

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...
by takayo97
21 Dec 2019, 17:22
Forum: Ask For Help
Topic: when to initial a call of Gdip_Startup()
Replies: 2
Views: 363

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...
by takayo97
15 Dec 2019, 19:26
Forum: Ask For Help
Topic: IfMsgBox cannot accept block code ?
Replies: 1
Views: 270

IfMsgBox cannot accept block code ?

like

Code: Select all

IfMsgBox OK {
} else {
    
}
by takayo97
21 Nov 2019, 16:38
Forum: Gaming
Topic: Anti-cheat black screen
Replies: 42
Views: 10077

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...
by takayo97
21 Nov 2019, 13:08
Forum: Gaming
Topic: Anti-cheat black screen
Replies: 42
Views: 10077

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
by takayo97
21 Nov 2019, 13:07
Forum: Gaming
Topic: Anti-cheat black screen
Replies: 42
Views: 10077

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...
by takayo97
21 Nov 2019, 12:35
Forum: Gaming
Topic: Anti-cheat black screen
Replies: 42
Views: 10077

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...
by takayo97
21 Nov 2019, 12:11
Forum: Ask For Help
Topic: is there an alternative imagesearch solution on gdip lib ?
Replies: 31
Views: 4797

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
by takayo97
21 Nov 2019, 11:43
Forum: Ask For Help
Topic: is there an alternative imagesearch solution on gdip lib ?
Replies: 31
Views: 4797

Re: is there an alternative imagesearch solution on gdip lib ?


For two image search implementation, gdip and opencv, which one is better in terms of performance and memory overrhead for loading the dll lib ?
by takayo97
21 Nov 2019, 11:26
Forum: Ask For Help
Topic: is there an alternative imagesearch solution on gdip lib ?
Replies: 31
Views: 4797

Re: is there an alternative imagesearch solution on gdip lib ?

any info how to use opencv for image search ?
by takayo97
21 Nov 2019, 07:18
Forum: Ask For Help
Topic: is there an alternative imagesearch solution on gdip lib ?
Replies: 31
Views: 4797

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 ?
by takayo97
21 Nov 2019, 05:25
Forum: Ask For Help
Topic: how to create a hotkey being pressed for xx ms and do soemthing
Replies: 3
Views: 377

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
}
by takayo97
21 Nov 2019, 03:04
Forum: Ask For Help
Topic: how to create a hotkey being pressed for xx ms and do soemthing
Replies: 3
Views: 377

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
by takayo97
10 Nov 2019, 17:36
Forum: Ask For Help
Topic: how to pass paramter for external program
Replies: 1
Views: 290

how to pass paramter for external program

I like to mute/unmute for a specific application
The soundvolumeview is a utility to change application volume level or mute and unmute specific application


I ve this code
Run "F:\SoundVolumeView.exe" /Mute applicatioonname


But it didnt work

Go to advanced search