Search found 86 matches

by valuex
08 Mar 2024, 08:41
Forum: Other Utilities & Resources
Topic: Atom feed urls for http://ahkscript.org
Replies: 5
Views: 3675

Re: Atom feed urls for http://ahkscript.org

You get to change the url from ahkscript.org to autohotkey.com.
For example, the feed of V2 ASK for Help is:
feed/forum/82
by valuex
09 Feb 2024, 21:07
Forum: Ask for Help (v2)
Topic: How to send DDE(Dynamic Data Exchange) information?
Replies: 2
Views: 93

How to send DDE(Dynamic Data Exchange) information?

SumatraPDF is a light and fast PDF viewer. One can control SumatraPDF with DDE commands. https://www.sumatrapdfreader.org/docs/DDE-Commands. I would like to use Autohotkey to control SumatraPDF. And I found this DDE lib. https://raw.githubusercontent.com/Ixiko/AHK-libs-and-classes-collection/master/...
by valuex
04 Feb 2024, 08:15
Forum: Scripts and Functions (v2)
Topic: SQLite Library for AHK v2
Replies: 5
Views: 1248

Re: SQLite Library for AHK v2

:bravo: :bravo: :bravo:
Does it support the fts5 extension, like https://github.com/wangfenjin/simple?
by valuex
03 Feb 2024, 21:10
Forum: Scripts and Functions (v2)
Topic: TC_VBA_Interposer: forward Total Commander (TC) WM_COPYDATA to TC
Replies: 0
Views: 376

TC_VBA_Interposer: forward Total Commander (TC) WM_COPYDATA to TC

post in TC forum https://www.ghisler.ch/board/viewtopic.php?t=80955 Background I want to send WM_COPYDATA from excel VBA to TC. And have tried the direct way, viewtopic.php?t=80948, but it does NOT work. So here is an indirect way, that is to send WM_COPYDATA to ahk, and then ahk will forward the WM...
by valuex
14 Jan 2024, 10:54
Forum: Ask for Help (v2)
Topic: How to output ico file from blob data type of sqlite database? Topic is solved
Replies: 10
Views: 525

Re: How to output ico file from blob data type of sqlite database? Topic is solved

I would like to share the whole function to directly output ico file from Sqlite blob data here. Credit goes to: @just me: https://www.autohotkey.com/boards/viewtopic.php?t=124212&p=552266#p552266 @fade2gray: https://www.autohotkey.com/boards/viewtopic.php?style=17&t=93750&p=550636#p550523 PngBlob2I...
by valuex
14 Jan 2024, 10:48
Forum: Ask for Help (v2)
Topic: How to output ico file from blob data type of sqlite database? Topic is solved
Replies: 10
Views: 525

Re: How to output ico file from blob data type of sqlite database? Topic is solved

I get it.

Code: Select all

HR := DllCall("Gdiplus.dll\GdipCreateBitmapFromStream", "Ptr", Stream, "PtrP", Bitmap, "UInt")
should be changed into

Code: Select all

HR := DllCall("Gdiplus.dll\GdipCreateBitmapFromStream", "Ptr", Stream, "PtrP",[u] &Bitmap[/u], "UInt")
Then it works.
by valuex
14 Jan 2024, 10:39
Forum: Ask for Help (v2)
Topic: How to output ico file from blob data type of sqlite database? Topic is solved
Replies: 10
Views: 525

Re: How to output ico file from blob data type of sqlite database? Topic is solved

I think it has something to do with the function Blob2hBitmap(Blob_Buffer) . The two variables Bitmap and HBitMap is 0. Gdip_CreateHBitmapFomData(DataPtr, DataSize) { Local Bitmap := 0, HBitMap := 0 If (Bitmap := Gdip_CreateBitmapFromData(DataPtr, DataSize)) { HBitMap := Gdip_CreateHBITMAPFromBitmap...
by valuex
14 Jan 2024, 10:17
Forum: Ask for Help (v2)
Topic: How to output ico file from blob data type of sqlite database? Topic is solved
Replies: 10
Views: 525

Re: How to output ico file from blob data type of sqlite database? Topic is solved

Code: Select all

            DllCall("GetObject", "Ptr", hbmMask, "Int", szDIBSECTION, "Ptr", mskDIBSECTION)
            DllCall("GetObject", "Ptr", hbmColor, "Int", szDIBSECTION, "Ptr", clrDIBSECTION)
both mskDIBSECTION.Size and clrDIBSECTION.Size is 104.

As for clrBits, it is 0.
by valuex
14 Jan 2024, 05:38
Forum: Ask for Help (v2)
Topic: RegExMatch Match.Count is 0, not as expected Topic is solved
Replies: 4
Views: 256

Re: RegExMatch Match.Count is 0, not as expected Topic is solved

Oh, I get it. The NeedleRegE shall be enclosed with parentheses like: (reg_pattern).
Thans for your reply.
by valuex
14 Jan 2024, 05:07
Forum: Ask for Help (v2)
Topic: RegExMatch Match.Count is 0, not as expected Topic is solved
Replies: 4
Views: 256

RegExMatch Match.Count is 0, not as expected Topic is solved

I am trying to get the last occurance position of a char in a string as below. But it's wired that the ObjMatch.Count is always 0. Any idea to fix it? Thanks. msgbox Str_LastCharPos("1.2.33.",".") Str_LastCharPos(InputStr,InChar) { if(InStr("\.*?+[{|()^$",InChar)) InChar:="\" . InChar ; Escape some ...
by valuex
14 Jan 2024, 01:25
Forum: Forum Issues
Topic: Will the forum support uploading images from clipboard?
Replies: 1
Views: 304

Will the forum support uploading images from clipboard?

Right now there are two ways to share picture in the forum. 1. Insert image: you get to upload the image to some image host service before insert the image url link. 2. Insert image as attachment: first you've to save the snapshot to local disk and uploading as attachement and then using the [attach...
by valuex
14 Jan 2024, 01:15
Forum: Ask for Help (v2)
Topic: UIA can't identify the control under mouse correctly.
Replies: 3
Views: 214

Re: UIA can't identify the control under mouse correctly.

I revised the previous post. Thanks for your reply.
by valuex
13 Jan 2024, 22:50
Forum: Ask for Help (v2)
Topic: UIA can't identify the control under mouse correctly.
Replies: 3
Views: 214

UIA can't identify the control under mouse correctly.

I am using UIA to get the under-mouse control information in Chrome's download page. It is expected to get the file name under mouse. But the output is not always right, as you can see below. Thanks for any help on fixing this problem. #Include .\Lib\UIA.ahk F1:: { CoordMode "Mouse", "Screen" MouseG...
by valuex
13 Jan 2024, 21:51
Forum: Ask for Help (v2)
Topic: How to output ico file from blob data type of sqlite database? Topic is solved
Replies: 10
Views: 525

Re: How to output ico file from blob data type of sqlite database? Topic is solved

I've tried to use ; Stream.Release() ObjRelease(Stream) [Mod edit: Replaced url tags with code tags.] It will solve the previous problem. However, a new error comes out, saying: File.RawWrite(clrBits + 0, clrDataSize) ;Error: Parameter #1 of File.Prototype.RawWrite is invalid. And if I ignore this e...
by valuex
13 Jan 2024, 05:52
Forum: Ask for Help (v2)
Topic: How to output ico file from blob data type of sqlite database? Topic is solved
Replies: 10
Views: 525

How to output ico file from blob data type of sqlite database? Topic is solved

I am trying to read Chrome's bookmark icon files. Bookmark icons are stored in an SQLite database named Favicons under user profile directory. %LocalAppData%\Google\Chrome\User Data\Profile 1\ The icon images are stored (in png format , BLOB data type ) in the "image_data" field in "favicon_bitmaps"...
by valuex
11 Jan 2024, 09:51
Forum: Scripts and Functions (v2)
Topic: Indexing Chrome bookmarks by Listary
Replies: 0
Views: 729

Indexing Chrome bookmarks by Listary

https://discussion.listary.com/t/autohotkey-indexing-chrome-bookmarks-by-listary/8916 # Demostration ![image|570x173](upload://opquQfKCxOj3m14oQ2SS03hZ1Dj.png) # AHK script 1. main script: https://github.com/valuex/AutohotkeyScripts/blob/main/Chrome_CreateShortcut.ahk 2. lib file: https://github.com...
by valuex
08 Jan 2024, 11:08
Forum: Scripts and Functions (v2)
Topic: SendMessage to Totoal Commander [AHK V2]
Replies: 5
Views: 569

Re: SendMessage to Totoal Commander [AHK V2]

occupied for future 2 :D
by valuex
08 Jan 2024, 11:07
Forum: Scripts and Functions (v2)
Topic: SendMessage to Totoal Commander [AHK V2]
Replies: 5
Views: 569

Re: SendMessage to Totoal Commander [AHK V2]

occupied for future 1 :D
by valuex
08 Jan 2024, 11:05
Forum: Scripts and Functions (v2)
Topic: SendMessage to Totoal Commander [AHK V2]
Replies: 5
Views: 569

Re: SendMessage to Totoal Commander [AHK V2]

4. Get the response from TC by Receive Receive_WM_COPYDATA AcSide:=TC_GetActiveSide() MsgBox AcSide TC_GetActiveSide() { ;https://wincmd.ru/forum/viewtopic.php?p=110848&sid=0dfde01723b39e508e96d62c00a7a9b5 If WinExist("ahk_class TTOTAL_CMD") ;&& WinActive("ahk_class TTOTAL_CMD") { OnMessage(0x4a, T...

Go to advanced search