Search found 54 matches
- 20 Aug 2023, 14:51
- Forum: Ask for Help (v1)
- Topic: [GDI+] How to BitBlt a pBitmap to a hBitmap?
- Replies: 4
- Views: 542
Re: [GDI+] How to BitBlt a pBitmap to a hBitmap?
Hello, what version of your GDI+?
- 18 Aug 2023, 00:25
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
Re: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
This LIB version is from May of this year, but I can't say when it was implemented:
https://github.com/marius-sucan/AHK-GDIp-Library-Compilation/blob/master/ahk-v1-1/Gdip_All.ahk
https://github.com/marius-sucan/AHK-GDIp-Library-Compilation/blob/master/ahk-v1-1/Gdip_All.ahk
- 17 Aug 2023, 21:41
- Forum: Scripts and Functions (v1)
- Topic: [GDI+] Fixed Gdip_BitmapFromHwnd function for Windows 7
- Replies: 0
- Views: 390
[GDI+] Fixed Gdip_BitmapFromHwnd function for Windows 7
I was using the Gdip_BitmapFromHwnd function but I found that it doesn't work in most cases in Windows 7 . Although there are some threads reporting the problem, I didn't find a real solution and the Gdip_BitmapFromHwnd2 function doesn't have the clientOnly option, that function I found here: https:...
- 15 Aug 2023, 19:39
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
Re: Convert Picture to 8-Bit Topic is solved
I managed to find out the problem, the documentation doesn't have examples of some functions, but reading about the PNG format I understood that there are levels of color depth. So I opened the GDI_All.ahk LIB and looked for the term " Depth " with a capital initial, and I ended up finding this func...
- 14 Aug 2023, 18:36
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
Re: Convert Picture to 8-Bit Topic is solved
I don't understand what that means. To me, downgrading an image from 32-bit to 8-bit is by definition a loss of quality. An 8-Bit image has a limit of 256 colors, but when MSPaint or GDI convert the image it reaches around 100 colors. But when I convert with IrfanView , FastStone Photo Resizer , Pa...
- 14 Aug 2023, 13:01
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
Re: Convert Picture to 8-Bit Topic is solved
Ok. I misunderstood what you wanted. This led me to believe that you didn't want it in 8 bit :D The image loses quality, as if saved by MSPaint in 8-Bit (256 colors). Sorry if I expressed myself badly, but that's what I explained here: (...) I don't understand how IrfanView manages to do it without...
- 14 Aug 2023, 01:52
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
Re: Convert Picture to 8-Bit Topic is solved
0x26200A is Format32bppArgb This is not the case, the image needs to be at 8bpp, the fact is that IrfanView or other converters can do this. The problem is not in the function used, see the previous example I posted. From what a discord channel user told me this is a limitation of the Libs used by G...
- 13 Aug 2023, 18:22
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
Re: Convert Picture to 8-Bit Topic is solved
Looks like it could be the format you are using. 0x30803 pBitmap := Gdip_CloneBitmapArea(pBitmap, 2, 2, A_ScreenWidth-2, A_ScreenHeight-2, "0x30803") (...) Yeah, I think that's it too, but I don't understand how IrfanView manages to do it without losing quality, I've searched the whole list and non...
- 12 Aug 2023, 02:21
- Forum: Gaming Help (v1)
- Topic: GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
- Replies: 14
- Views: 2001
GDI+ Convert Picture to 8-Bit (256 colors) Topic is solved
The image loses quality, as if saved by MSPaint in 8-Bit (256 colors). Basically it is not able to use all 256 colors, just a little more than 140 depending on the image. #SingleInstance Force SetWorkingDir %A_ScriptDir% #Include Gdip_All.ahk ; Check Gdip is Working if (!pToken := Gdip_Startup()) { ...
- 05 Feb 2023, 08:21
- Forum: Ajuda e Suporte Geral
- Topic: Capturar janela transparente Topic is solved
- Replies: 1
- Views: 1077
Re: Capturar janela transparente Topic is solved
Eu encontrei essa função e consegui realizar o que eu pretendia:
viewtopic.php?t=28937
viewtopic.php?t=28937
- 03 Feb 2023, 15:30
- Forum: Ask for Help (v1)
- Topic: Can I override a hotkey if running an app as administrator?
- Replies: 2
- Views: 395
Re: Can I override a hotkey if running an app as administrator?
If this APP is the Script itself:
Check other applaction run as admin:
viewtopic.php?p=40388#p40388
Code: Select all
if(A_IsAdmin <> 0)
{
Hotkey, F2 , MyLabel
}
viewtopic.php?p=40388#p40388
- 24 Jan 2023, 16:12
- Forum: Ajuda e Suporte Geral
- Topic: bom dia queridos amigos, duvida sobre cor do pixel
- Replies: 1
- Views: 1006
Re: bom dia queridos amigos, duvida sobre cor do pixel
Eu acho que esse seu código é um esboço certo? Acredito que você precise aprender sobre isso: https://www.autohotkey.com/docs/v1/lib/CoordMode.htm Isso: https://www.autohotkey.com/docs/v1/lib/MouseGetPos.htm E por fim isso: https://www.autohotkey.com/docs/v1/lib/PixelGetColor.htm Exemplo: #SingleIns...
- 24 Jan 2023, 13:11
- Forum: Ask for Help (v1)
- Topic: is exit a safe command
- Replies: 5
- Views: 418
Re: is exit a safe command
The exit command is for finishing the Script itself, probably you want to close a GUI, but in that case you should use: https://www.autohotkey.com/docs/v2/lib/Gui.htm#Destroy Now if you are running routines you need to learn how to use Loop: https://www.autohotkey.com/docs/v2/lib/Loop.htm#ExBreakCon...
- 24 Jan 2023, 09:07
- Forum: Ajuda e Suporte Geral
- Topic: Ajuda com automação de tela no Chrome
- Replies: 2
- Views: 1194
Re: Ajuda com automação de tela no Chrome
Não entendi muito bem, seria preencher um formulário em uma GUI feita com AHK para depois repassar o valor para uma página do Chrome?
- 24 Jan 2023, 08:45
- Forum: Ajuda e Suporte Geral
- Topic: Dúvida API
- Replies: 1
- Views: 1037
Re: Dúvida API
Não conheço maneira precisa de fazer isso sem um servidor privado, eu tenho um código PHP e outro ASPX pra ambas opções. Porém uma maneira prática de fazer isso é usando um servidor NTP para comparar a diferença: https://www.autohotkey.com/boards/search.php?author_id=56166&sr=posts O bom é que o car...
- 24 Jan 2023, 07:31
- Forum: Ajuda e Suporte Geral
- Topic: Criar funções especiais no botão direito do rato
- Replies: 5
- Views: 1120
Re: Criar funções especiais no botão direito do rato
Não sei se é possível sem um comando externo. Primeiro vamos analisar como funciona qualquer linha de comando padrão da maioria dos Softwares com suporte à impressoras. Em geral para imprimir páginas especificas é necessário usar virgula: 2,4,5,7,8,12,13,15,30 Mas para imprimir um intervalo é apenas...
- 23 Jan 2023, 16:32
- Forum: Ajuda e Suporte Geral
- Topic: Capturar janela transparente Topic is solved
- Replies: 1
- Views: 1077
Capturar janela transparente Topic is solved
A idéia é passar a imagem EM TEMPO REAL de uma janela oculta em tamanho dobrado e estático em uma GUI, porém como a janela oculta ainda ficará por cima o conteudo da GUI será apenas visual e não acessível. Eu tentei esse método: https://www.autohotkey.com/boards/viewtopic.php?p=439395 Mas ao que par...
- 10 Nov 2022, 10:06
- Forum: Ask for Help (v1)
- Topic: How to open IE mode in Edge browser using AUTOHOTKEY
- Replies: 1
- Views: 500
- 02 Nov 2022, 14:02
- Forum: Ask for Help (v1)
- Topic: Check if a specific process has read a file Topic is solved
- Replies: 8
- Views: 586
Re: Check if a specific process has read a file Topic is solved
It really is not feasible to have so much work for something simple.
Thank you very much for replying.
Thank you very much for replying.
- 02 Nov 2022, 08:36
- Forum: Ask for Help (v1)
- Topic: Check if a specific process has read a file Topic is solved
- Replies: 8
- Views: 586
Re: Check if a specific process has read a file Topic is solved
Thanks, it would be similar to this method, but it only loads imported libraries at executable startup:
Sorry about my English...
I need to check the files loaded while in use, if any graphics or sound resources are loaded.Sorry about my English...