Search found 487 matches
- 11 Sep 2023, 13:05
- Forum: Ask for Help (v1)
- Topic: Detecting when a Gui menu bar is open Topic is solved
- Replies: 11
- Views: 732
Detecting when a Gui menu bar is open Topic is solved
In my script, I need to capture the Enter key when the control Edit1 has the focus (in order to maintain an undo list). The script below succeeds in detecting that situation. But it has the side effect of disabling the Enter key in the menu bar. The user can open the "File" menu with Alt+F, select a...
- 03 Sep 2023, 08:26
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
- 01 Sep 2023, 16:07
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
Re: Converting binary to bitmap for WinClip.SetBitMap
Sorry for taking so long to follow up. I had a nice summer :-) Finally, I decided to use GDIP library instead of WinClip to transfer the image to the Clipboard. I had issue with an older version of GDIP. Make sure you use the latest GDIP library found on marius-sucan repository (see URL in code). Th...
- 20 Jul 2023, 15:52
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
Re: Converting binary to bitmap for WinClip.SetBitMap
Thanks you for the additional info and code @Hellbent and @just me .
I'll have more time to look at it when I'm back for vacation in a few weeks. Be sure I'll follow up when I'm back.
Thanks,
Jean
I'll have more time to look at it when I'm back for vacation in a few weeks. Be sure I'll follow up when I'm back.
Thanks,
Jean
- 20 Jul 2023, 08:23
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
Re: Converting binary to bitmap for WinClip.SetBitMap
Hi just me , It is part of a class: SetBitmap( bitmap ) { if ( DIBSize := this._BITMAPtoDIB( bitmap, DIB ) ) { clipSize := this._fromclipboard( clipData ) if ( clipSize := this._setBitmap( DIB, DIBSize, clipData, clipSize ) ) return this._toclipboard( clipData, clipSize ) } return 0 } You will proba...
- 20 Jul 2023, 07:26
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
Re: Converting binary to bitmap for WinClip.SetBitMap
Hi Hellbent, Thank you for your help. I remember having seen your work on graphics and icons with Joe Glines. Impressive! I looked at your code (not with all details because today I have to prepare for vacations) and it worked well to create a bitmap from a base64 string in the clipboard. But my goa...
- 19 Jul 2023, 19:05
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
Re: Converting binary to bitmap for WinClip.SetBitMap
Just to show that the Base64 function works, I've updated the code to add a few lines to save the binary to a PNG file.
It is the transfer of the bitmap from BinImgToBITMAP(intBytes, HBITMAP, oBin) to WinClip.SetBitmap(HBITMAP) that is not working.
It is the transfer of the bitmap from BinImgToBITMAP(intBytes, HBITMAP, oBin) to WinClip.SetBitmap(HBITMAP) that is not working.
- 19 Jul 2023, 13:50
- Forum: Ask for Help (v1)
- Topic: Converting binary to bitmap for WinClip.SetBitMap
- Replies: 10
- Views: 1414
Converting binary to bitmap for WinClip.SetBitMap
I'm trying to load a base64 string containing a image to the Clipboard. I know the Base64Dec() works. But I need to "prepare" the binary data returned by this function to a bitmap object in order to pass it to WinClip.SetBitmap(). I tried the BinImgToBITMAP() function found on this forum but it did ...
- 18 Jul 2023, 17:17
- Forum: Ask for Help (v1)
- Topic: About Clipoard bitmap formats CF_BITMAP and CF_DIB using WinClip
- Replies: 4
- Views: 454
Re: About Clipoard bitmap formats CF_BITMAP and CF_DIB using WinClip
Hi @JnLlnd, Synthesized Clipboard Formats might give the answer. Based on info about Synthesized Clipboard Formats, can I safely assume that the function set by OnClipboardChange returns 2 for all bitmap formats (2 CF_BITMAP, 8 CF_DIB or 17 CF_DIBV5) and 1 for all text formats (1 CF_TEXT , 13 CF_UN...
- 17 Jul 2023, 08:04
- Forum: Ask for Help (v1)
- Topic: About Clipoard bitmap formats CF_BITMAP and CF_DIB using WinClip
- Replies: 4
- Views: 454
Re: About Clipoard bitmap formats CF_BITMAP and CF_DIB using WinClip
Thank you @just me. There is so much to learn :-)
- 16 Jul 2023, 17:34
- Forum: Ask for Help (v1)
- Topic: About Clipoard bitmap formats CF_BITMAP and CF_DIB using WinClip
- Replies: 4
- Views: 454
About Clipoard bitmap formats CF_BITMAP and CF_DIB using WinClip
I'm a bit confused with the CF_BITMAP and CF_DIB clipboard formats . After copying an image to the clipboard (for example, using PrintScreen), the WinClip.GetFormats() function returns only one format: #8 CF_DIB. However, the WinClip.HasFormat() function reports that the Clipboard contains BOTH the ...
- 20 Mar 2023, 17:30
- Forum: Scripts and Functions (v1)
- Topic: [Library] Edit v3.0 - Update and Manage any Edit Control
- Replies: 71
- Views: 36433
Re: [Library] Edit v2.0 - Update and Manage any Edit Control
@ahk7: Ah... I forgot these additional functions. It was fun to code but I could have save these few hours for something else... Thanks.
- 20 Mar 2023, 16:45
- Forum: Scripts and Functions (v1)
- Topic: [Library] Edit v3.0 - Update and Manage any Edit Control
- Replies: 71
- Views: 36433
Re: [Library] Edit v2.0 - Update and Manage any Edit Control
Here is a piece of code to move a line up or down using the Edit library commands. If you have suggestion to improve it, you are welcome. #SingleInstance Force #requires AutoHotkey v1.1 #Include %A_ScriptDir%\Lib\Edit.ahk ; from jballi (https://www.autohotkey.com/boards/viewtopic.php?f=6&t=5063) Gui...
- 09 Mar 2023, 09:59
- Forum: Ask for Help (v1)
- Topic: How to avoid Error: Can't open clipboard for reading
- Replies: 2
- Views: 740
Re: How to avoid Error: Can't open clipboard for reading
Thank you Rohwedder. This is the solution I was looking for.
- 08 Mar 2023, 19:15
- Forum: Ask for Help (v1)
- Topic: How to avoid Error: Can't open clipboard for reading
- Replies: 2
- Views: 740
How to avoid Error: Can't open clipboard for reading
Hi, In an AHK script I develop, reading the Clipboard sometimes produces the error "Can't open clipboard for reading". I'd like to prevent this error message. I've looked at these Windows functions but I'm not knowledgeable enough to see how to use them in order to trap this error before it displays...
- 24 Feb 2023, 22:33
- Forum: Ask for Help (v1)
- Topic: RegExMatch to search from the end of haystack
- Replies: 5
- Views: 454
Re: RegExMatch to search from the end of haystack
Thank you Mike. I've found this explanation for .*\K on RegEx101 . matches any character * matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy) \K resets the starting point of the reported match. Any previously consumed characters are...
- 24 Feb 2023, 20:42
- Forum: Ask for Help (v1)
- Topic: RegExMatch to search from the end of haystack
- Replies: 5
- Views: 454
Re: RegExMatch to search from the end of haystack
Back to your explanation, I get it now. I was thinking the last parameter of RegExMatch() was like the last parameter of InStr(): If StartingPos is 0 or negative, the search is conducted in reverse (right-to-left) beginning at that offset from the end. https://www.autohotkey.com/docs/v1/lib/InStr.ht...
- 24 Feb 2023, 20:17
- Forum: Ask for Help (v1)
- Topic: RegExMatch to search from the end of haystack
- Replies: 5
- Views: 454
Re: RegExMatch to search from the end of haystack
> Characters to the left of the starting position are ignored in the search.
OK. But let me ask my question differently. How do I get the position of the last occurrence of "s.t" in "asas s1t xvxvxcv s2t sfsfg s3t xvxcvv"?
OK. But let me ask my question differently. How do I get the position of the last occurrence of "s.t" in "asas s1t xvxvxcv s2t sfsfg s3t xvxcvv"?
- 24 Feb 2023, 18:31
- Forum: Ask for Help (v1)
- Topic: RegExMatch to search from the end of haystack
- Replies: 5
- Views: 454
RegExMatch to search from the end of haystack
According to the RegExMatch doc , shouldn't the function return the position of "s3t"? In my tests, it returns 0 (not found)... #SingleInstance Force #requires AutoHotkey v1.1 strHaystack := "asas s1t xvxvxcv s2t sfsfg s3t xvxcvv" strNeedle := "s.t" intFound := RegExMatch(strHaystack, strNeedle, str...
- 09 Feb 2023, 08:24
- Forum: Scripts and Functions (v1)
- Topic: [Library] Edit v3.0 - Update and Manage any Edit Control
- Replies: 71
- Views: 36433
Re: [Library] Edit v2.0 - Update and Manage any Edit Control
I understand. I have the same challenges with my apps. I won't all convert them but I think there will be mid-term benefits to convert Quick Clipboard Editor to v2, especially the future development described here by Lexikos . But there is no ruwh. Regarding your development environment it depends w...