Search found 1769 matches

by malcev
11 Nov 2023, 06:11
Forum: Scripts and Functions (v1)
Topic: DWM Thumbnails. But with IDCompositionVisual.
Replies: 1
Views: 688

DWM Thumbnails. But with IDCompositionVisual.

An undocumented api that Windows uses to display DWM Thumbnails. https://blog.adeltax.com/dwm-thumbnails-but-with-idcompositionvisual/ On autohotkey will be something like this (when you press f11 there will be a primitive animation):: targetWindow := WinExist("ahk_class Shell_TrayWnd") if !targetWi...
by malcev
16 Oct 2023, 20:26
Forum: Scripts and Functions (v1)
Topic: Return list of Alt-Tab windows win10+
Replies: 6
Views: 752

Return list of Alt-Tab windows win10+

Thanks to teadrinker who found method in non-documented api We can get alt-tab windows more reliable. DetectHiddenWindows On arr := EnumerateAltTabWindows() for k, v in arr { WinGetClass, winClass, ahk_id %v% WinGetTitle, title, ahk_id %v% altTabWindows .= A_Index "`nTitle: " title "`nClass: " winCl...
by malcev
16 Oct 2023, 07:55
Forum: Scripts and Functions (v2)
Topic: WinGetListAlt() : Returns list of Alt+Tab windows
Replies: 10
Views: 3861

Re: WinGetListAlt() : Returns list of Alt+Tab windows

Why? At-tab does not differ monitors.
Also at-tab not always hides cloaked windows.
I am 100% sure that Your code is not right.
Also I thought about virtual displays and some other events and created topic in ahk v1.
viewtopic.php?f=6&t=122399
by malcev
14 Oct 2023, 08:50
Forum: Ask for Help (v2)
Topic: Window on top off fullscreen, can we do it like steam or overwolf Topic is solved
Replies: 1
Views: 240

Re: Window on top off fullscreen, can we do it like steam or overwolf Topic is solved

All is possible. ;) If this will not help (all code for ahk v1) https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75695 then need to inject into process and hook directx, like it does steam. https://www.autohotkey.com/boards/viewtopic.php?p=294758#p294758 Also You can read algorithm here and if ...
by malcev
14 Oct 2023, 07:59
Forum: Scripts and Functions (v2)
Topic: WinGetListAlt() : Returns list of Alt+Tab windows
Replies: 10
Views: 3861

Re: WinGetListAlt() : Returns list of Alt+Tab windows

SKAN , I think Your algorithm is not right. From my test it should be like this. Code for ahk v1, I am too lazy to convert it to ahk v2. arr := EnumerateAltTabWindows() for k, v in arr { WinGetClass, winClass, ahk_id %v% WinGetTitle, title, ahk_id %v% altTabWindows .= A_Index "`nTitle: " title "`nC...
by malcev
08 Oct 2023, 06:57
Forum: Scripts and Functions (v1)
Topic: Pin, unpin applications to taskbar with undocumented api
Replies: 0
Views: 770

Pin, unpin applications to taskbar with undocumented api

https://geelaw.blog/entries/msedge-pins https://github.com/vhanla/W1nDro1d/blob/main/TaskbarPinner.pas msgbox % GetAllPinned() pin("C:\Windows\System32\Notepad.exe") msgbox pinned unpin("C:\Windows\System32\Notepad.exe") msgbox unpinned pin(app) ; https://geelaw.blog/entries/msedge-pins https://gith...
by malcev
07 Oct 2023, 11:13
Forum: Tutorials (v2)
Topic: Detect window open and close
Replies: 10
Views: 4568

Re: Detect window open and close

One more variant - SetWindowsHookEx with WH_CBT for catching HCBT_CREATEWND. https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexw https://learn.microsoft.com/en-us/windows/win32/winmsg/cbtproc Example: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=94344&p...
by malcev
02 Oct 2023, 15:44
Forum: Ask for Help (v1)
Topic: youtube playlist changes
Replies: 9
Views: 771

Re: youtube playlist changes

Yes, the main disadvantage of not using their api that google periodically changes its checks.
If 2 years ago we needed to send "CONSENT=YES" cookie, now we need to send SOCS=... cookie, as I see.
by malcev
02 Oct 2023, 15:32
Forum: Ask for Help (v1)
Topic: youtube playlist changes
Replies: 9
Views: 771

Re: youtube playlist changes

For example if You want to develop it for other users - You will need to share Your private key (not recommended) or get approve from google for Your application.
by malcev
02 Oct 2023, 15:07
Forum: Ask for Help (v1)
Topic: youtube playlist changes
Replies: 9
Views: 771

Re: youtube playlist changes

For getting information from google services without authentication You dont need to use their api.
Just look at browser network what You send and try to repeat it with ahk.
by malcev
06 Aug 2023, 04:59
Forum: Ask for Help (v2)
Topic: Embedding files in a compiled script and using them without extracting them
Replies: 17
Views: 1310

Re: Embedding files in a compiled script and using them without extracting them

It is code for ahk v1.
And if ffmpeg is x64 then ahk should be also x64.
by malcev
04 Aug 2023, 14:28
Forum: Ask for Help (v2)
Topic: Embedding files in a compiled script and using them without extracting them
Replies: 17
Views: 1310

Re: Embedding files in a compiled script and using them without extracting them

Strange.
What is value of this code?

Code: Select all

FileRead,file,*c ffmpeg.exe
msgbox % numget(&file, 0, "Short")
by malcev
04 Aug 2023, 09:26
Forum: Ask for Help (v2)
Topic: Embedding files in a compiled script and using them without extracting them
Replies: 17
Views: 1310

Re: Embedding files in a compiled script and using them without extracting them

FileRead,file,*c ffmpeg.exe BinRun(&file,"-i yourvideoname.mp4 -an mutevideo.mp4") return Class _BinRun { static IMAGE_DOS_HEADER :=" ( WORD e_magic; // Magic number WORD e_cblp; // Bytes on last page of file WORD e_cp; // Pages in file WORD e_crlc; // Relocations WORD e_cparhdr; // Size of header ...
by malcev
04 Aug 2023, 04:53
Forum: Ask for Help (v2)
Topic: Embedding files in a compiled script and using them without extracting them
Replies: 17
Views: 1310

Re: Embedding files in a compiled script and using them without extracting them

teadrinker wrote:
03 Aug 2023, 22:06
Have you tried running it with ffmpeg?
Yes, but not with ahk v2.
by malcev
15 Jul 2023, 17:29
Forum: Scripts and Functions (v2)
Topic: Easy OCR
Replies: 78
Views: 15653

Re: Easy OCR

Krd, You can try to use tesseract and preprocess image with black&white + sharpen.
I used it for 1 project and results were quite good.
You can start from here:
viewtopic.php?f=76&t=93120

Go to advanced search