Post by Dark27 » 01 Aug 2021, 10:33
w0z wrote: ↑01 Aug 2021, 09:33
Ejemplo usando la clase creada por
just me
Puedes descargar de los enlaces en el siguiente Topic.
https://www.autohotkey.com/boards/viewtopic.php?t=1103
Necesitaras ubicar los archivos descargados
Class_ImageButton.ahk y
UseGDIP.ahk en la misma ubicacion o carpeta de tu script.
o simplemente copiar el contenido de las clases en tu archivo asi ya no tendras que utilizar el
#Include Class_ImageButton.ahk ,
#Include UseGDIP.ahk
Code: Select all
SetBatchLines, -1
#SingleInstance, force
;------------------------------------------------------- Class ImageButton by just me
; https://www.autohotkey.com/boards/viewtopic.php?t=1103
#Include Class_ImageButton.ahk
; for v1.5 add UseGDIP.ahk or Include them into Class_ImageButton.ahk
#Include UseGDIP.ahk
Gui, Add, Button, x10 y50 gBvol hWndhBtn23, Volver
IBBtnStyles := [ [0, 0x80C6E6C6, , , 0, , 0x805CB85C, 1] ; normal
, [0, 0x8091CF91, , , 0, , 0x805CB85C, 1] ; hover
, [0, 0x805CB85C, , , 0, , 0x805CB85C, 1] ; pressed
, [0, 0x80F0F0F0, , , 0, , 0x805CB85C, 1] ]
ImageButton.Create(hBtn23, IBBtnStyles*)
Gui, Show, x300 y300 h470 w750, Selección
Return
Bvol:
MsgBox "Funciona
Return
El ejemplo es de
jNizM https://www.autohotkey.com/boards/viewtopic.php?p=409253#p409253
Buffff, me has dado media vida, te lo agradezco mucho, voy a investigarlo y ver si lo puedo ir incluyendo, muchas gracias por responder y la ayuda prestada.
[quote=w0z post_id=413125 time=1627828400 user_id=59581]
Ejemplo usando la clase creada por [c]just me[/c]
Puedes descargar de los enlaces en el siguiente Topic.
[url]https://www.autohotkey.com/boards/viewtopic.php?t=1103[/url]
Necesitaras ubicar los archivos descargados [c]Class_ImageButton.ahk[/c] y [c]UseGDIP.ahk[/c] en la misma ubicacion o carpeta de tu script.
o simplemente copiar el contenido de las clases en tu archivo asi ya no tendras que utilizar el [c]#Include Class_ImageButton.ahk[/c] ,[c]#Include UseGDIP.ahk[/c]
[code]SetBatchLines, -1
#SingleInstance, force
;------------------------------------------------------- Class ImageButton by just me
; https://www.autohotkey.com/boards/viewtopic.php?t=1103
#Include Class_ImageButton.ahk
; for v1.5 add UseGDIP.ahk or Include them into Class_ImageButton.ahk
#Include UseGDIP.ahk
Gui, Add, Button, x10 y50 gBvol hWndhBtn23, Volver
IBBtnStyles := [ [0, 0x80C6E6C6, , , 0, , 0x805CB85C, 1] ; normal
, [0, 0x8091CF91, , , 0, , 0x805CB85C, 1] ; hover
, [0, 0x805CB85C, , , 0, , 0x805CB85C, 1] ; pressed
, [0, 0x80F0F0F0, , , 0, , 0x805CB85C, 1] ]
ImageButton.Create(hBtn23, IBBtnStyles*)
Gui, Show, x300 y300 h470 w750, Selección
Return
Bvol:
MsgBox "Funciona
Return[/code]
El ejemplo es de [c]jNizM [/c] [url]https://www.autohotkey.com/boards/viewtopic.php?p=409253#p409253[/url]
[/quote]
Buffff, me has dado media vida, te lo agradezco mucho, voy a investigarlo y ver si lo puedo ir incluyendo, muchas gracias por responder y la ayuda prestada.