Skip to content

Instantly share code, notes, and snippets.

@RaptorX
Created October 14, 2022 14:30
Show Gist options
  • Save RaptorX/23172f6821bde0b6cd993eda16006d2d to your computer and use it in GitHub Desktop.
Save RaptorX/23172f6821bde0b6cd993eda16006d2d to your computer and use it in GitHub Desktop.
gui add, button, hwndBtnOK w32 h32, %a_space%
gui add, button, hwndBtnCancel w75, Cancel
okIcon := LoadPicture("C:\Windows\system32\shell32.dll", "w16 h16 Icon" 297, imgType)
cancelIcon := LoadPicture("C:\Windows\system32\shell32.dll", "w16 h16 Icon" 132, imgType)
SendMessage 0xf7, 1, %okIcon%,, ahk_id %BtnOK%
SendMessage 0xf7, 1, %cancelIcon%,, ahk_id %BtnCancel%
gui show
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment