Search found 1769 matches
- 08 May 2023, 12:15
- Forum: Scripts and Functions (v1)
- Topic: ActiveScript - Host VBScript and JScript in-process
- Replies: 46
- Views: 41888
Re: ActiveScript - Host VBScript and JScript in-process
Can you tell me why you would expect an Integer result at any time? I am expecting to get string without zeroes at the end as result. Interesting, that If We use ChakraCore then We get normal string after calling JsNumberToDouble. https://github.com/chakra-core/ChakraCore/wiki/JsNumberToDouble I te...
- 06 May 2023, 10:19
- Forum: Ask for Help (v1)
- Topic: win7 OS and AutoHotkeyV1, which version of Tesseract OCR can be used?
- Replies: 2
- Views: 309
Re: win7 OS and AutoHotkeyV1, which version of Tesseract OCR can be used?
I think You can use the last version of tesseract.
- 06 May 2023, 10:09
- Forum: Scripts and Functions (v1)
- Topic: Twitter authorization with internal api
- Replies: 0
- Views: 906
Twitter authorization with internal api
Code example for getting tweets via search (requires authorization). For not to login every time, after a successful login, you should save csrf_token and auth_token somewhere and use them the next time you run the script. May be it is better to save other cookies, but as I see it works with using o...
- 05 May 2023, 12:58
- Forum: Scripts and Functions (v2)
- Topic: Easy OCR
- Replies: 93
- Views: 19119
Re: Easy OCR alpha
You are welcome. I think that instead of this this.BitmapEncoderStatics := OCR.CreateClass("Windows.Graphics.Imaging.BitmapEncoder", IBitmapEncoderStatics := "{A74356A7-A4E4-4EB9-8E40-564DE7E1CCB2}") You can write this.BitmapTransform := OCR.CreateClass("Windows.Graphics.Imaging.BitmapTransform") an...
- 05 May 2023, 03:17
- Forum: Scripts and Functions (v2)
- Topic: Easy OCR
- Replies: 93
- Views: 19119
Re: Easy OCR alpha
You can try like this: ScaledWidth := 100 ScaledHeight := 100 CreateClass("Windows.Graphics.Imaging.BitmapTransform",, BitmapTransform) DllCall(NumGet(NumGet(BitmapTransform+0)+7*A_PtrSize), "ptr", BitmapTransform, "int", ScaledWidth) ; put_ScaledWidth DllCall(NumGet(NumGet(BitmapTransform+0)+9*A_Pt...
- 29 Apr 2023, 03:26
- Forum: Scripts and Functions (v1)
- Topic: Mediapipe
- Replies: 8
- Views: 1691
Re: Mediapipe
smbape updated His library and now We can run python google samples examples:
https://mediapipe-studio.webapps.google.com/home
https://github.com/smbape/node-autoit-mediapipe-com/tree/v0.4.0/examples/googlesamples/examples
Added example of text classifier in 1 post.
https://mediapipe-studio.webapps.google.com/home
https://github.com/smbape/node-autoit-mediapipe-com/tree/v0.4.0/examples/googlesamples/examples
Added example of text classifier in 1 post.
- 28 Apr 2023, 02:06
- Forum: Ask for Help (v1)
- Topic: Internet Disconnect Alert
- Replies: 11
- Views: 769
Re: Internet Disconnect Alert
You can do it without timer
viewtopic.php?f=6&t=113844
viewtopic.php?f=6&t=113844
- 26 Apr 2023, 12:04
- Forum: Ask for Help (v1)
- Topic: Gui support for webp image format Topic is solved
- Replies: 27
- Views: 7108
Re: Gui support for webp image format Topic is solved
Not all win10 versions have webp decoder. Therefore I suggest to check for error in this method CreateDecoderFromFilename and if it returns WINCODEC_ERR_COMPONENTINITIALIZEFAILURE := 0x88982f8B then need to install webp codec for example from here https://storage.googleapis.com/downloads.webmproject...
- 22 Apr 2023, 06:39
- Forum: Wish List
- Topic: AHKv2 is a masterpiece. Why does it not include built-in libraries for JSON and HTTP requests in 2023?
- Replies: 6
- Views: 1576
Re: AHKv2 is a masterpiece. Why does it not include built-in libraries for JSON and HTTP requests in 2023?
geek , can You convert floats or doubles to string on output in Your json class? Because now it shows issues: var = {"x": 0.7654321} msgbox % JSON.load(var).x ; shows 0.765432 For win10 We can use msdn api json parser: In ahk v2 it is easy to run: #include winrt.ahk if WinRT('Windows.Data.Json.Json...
- 20 Apr 2023, 16:30
- Forum: Scripts and Functions (v2)
- Topic: Snipper - Window Snipping Tool
- Replies: 125
- Views: 28610
Re: Snipper - Window Snipping Tool
I guess GDIp is sneaking a visual on to the window in a way that Windows needs to be told about with this flag. I am not sure about this. This flag is not considered to use with gdi+, it is for direct2d and direct3d, as I understand: https://learn.microsoft.com/en-us/archive/msdn-magazine/2014/june...
- 20 Apr 2023, 02:39
- Forum: Scripts and Functions (v2)
- Topic: Snipper - Window Snipping Tool
- Replies: 125
- Views: 28610
Re: Snipper - Window Snipping Tool
No.does Gdip_BitmapFromScreen("hwnd:" hwnd) work?
I tested and see that it will work if We add WS_EX_NOREDIRECTIONBITMAP style to our gui.PrintWindow with PW_RENDERFULLCONTENT flag on win11 does not work. May be microsoft changed something.
- 19 Apr 2023, 19:33
- Forum: Scripts and Functions (v2)
- Topic: Snipper - Window Snipping Tool
- Replies: 125
- Views: 28610
Re: Snipper - Window Snipping Tool
You should not call
hdc should be saved after creating.
Therefore I wrote that if it is not Your process, You need to inject and hook.
Code: Select all
hdc := GetDC(Hwnd)
Therefore I wrote that if it is not Your process, You need to inject and hook.
- 19 Apr 2023, 18:12
- Forum: Scripts and Functions (v2)
- Topic: Snipper - Window Snipping Tool
- Replies: 125
- Views: 28610
Re: Snipper - Window Snipping Tool
Algorithm can be like this:: hCaptureDC := CreateCompatibleDC(hdc) hCaptureBitmap := CreateCompatibleBitmap(hdc, width, height) SelectObject(hCaptureDC, hCaptureBitmap) BitBlt(hCaptureDC, 0, 0, width, height, hdc, 0, 0) pBitmap := Gdip_CreateBitmapFromHBITMAP(hCaptureBitmap) If it is not Your proces...
- 19 Apr 2023, 17:26
- Forum: Scripts and Functions (v2)
- Topic: Snipper - Window Snipping Tool
- Replies: 125
- Views: 28610
Re: Snipper - Window Snipping Tool
FanaticGuru, why do You want to get screenshot for Your own window with PrintWindow, but not with BitBlt?
PrintWindow with PW_RENDERFULLCONTENT flag on win11 does not work. May be microsoft changed something.
PrintWindow with PW_RENDERFULLCONTENT flag on win11 does not work. May be microsoft changed something.
- 19 Apr 2023, 12:25
- Forum: Ask for Help (v1)
- Topic: How set different screen resolution
- Replies: 17
- Views: 1339
Re: How set different screen resolution
changedisplaysettingSex
- 18 Apr 2023, 16:33
- Forum: Ask for Help (v1)
- Topic: How set different screen resolution
- Replies: 17
- Views: 1339
- 18 Apr 2023, 11:12
- Forum: Ask for Help (v1)
- Topic: Always on top not working on some windows. Topic is solved
- Replies: 7
- Views: 547
Re: Always on top not working on some windows. Topic is solved
Also You need to know about UI Access:
https://www.autohotkey.com/docs/v1/Program.htm#Installer_uiAccess
And there is 1 more possibility to set any band to any window: without ui access, but with injecting and hooking
viewtopic.php?f=6&t=93817
https://www.autohotkey.com/docs/v1/Program.htm#Installer_uiAccess
And there is 1 more possibility to set any band to any window: without ui access, but with injecting and hooking
viewtopic.php?f=6&t=93817
- 18 Apr 2023, 11:07
- Forum: Ask for Help (v1)
- Topic: How set different screen resolution
- Replies: 17
- Views: 1339
Re: How set different screen resolution
Do You ask me that I teach You how to use search on forum?
- 18 Apr 2023, 11:01
- Forum: Ask for Help (v1)
- Topic: Always on top not working on some windows. Topic is solved
- Replies: 7
- Views: 547
- 18 Apr 2023, 09:22
- Forum: Ask for Help (v1)
- Topic: Always on top not working on some windows. Topic is solved
- Replies: 7
- Views: 547
Re: Always on top not working on some windows. Topic is solved
Code: Select all
Gui, New, +HwndhGui +AlwaysOnTop
Gui, Font, s11 w700 cC0C0C0, Courier New
Gui, Color,, 000000
Gui, Add, Edit, % Format("+HwndhEdit x0 y0 w{} h{}", 600, 800)
Gui, Show,% Format("w{} h{} x{} y{} NoActivate ", 600, 800, 0,0)