Closed maul-esel closed 12 years ago
The same should be done for /en/images/Escaping-1.png
.
Source:
MsgBox 1, 2, 3
Do not change this code (no escaping!).
Here's the first one: http://www.pasteall.org/pic/show.php?id=20205
And here's the second one: http://www.pasteall.org/pic/show.php?id=20206
Thanks!
New screenshot to localize: /en/images/msgbox-3.png
Code:
MsgBox 33, Continue?, Do you wish to delete all files in "%A_ProgramFiles%"?
Thanks
Here you are:
Thanks again!
New one: en/images/structures-1.png
Code:
; (theoretically) any AutoHotkey version.
; As of 25.11.11, this does not work for IronAHK.
; ============= config =============
IronAHK := false ; set to true if you're using IronAHK.
; ==================================
; ensure AutoHotkey classic / IronAHK compatibility:
ptr_size := A_PtrSize ? A_PtrSize : 4
ptr := A_PtrSize ? "UPtr" : "UInt"
; define flags:
MB_ABORTRETRYIGNORE := 0x00000002
MB_USERICON := 0x00000080
; set the button we will use + indicate we will provide a custom icon:
flags := MB_ABORTRETRYIGNORE | MB_USERICON
; set the text that will be shown:
text := "This box is produced with a DllCall() to the MessageBoxIndirect function, "
. "passing a MSGBOXPARAMS structure.`n`n"
. "This allows you to set a custom icon and more."
; set the title that will be used:
caption := "ahkbook example"
; get a handle to the running AutoHotkey.exe: we will use an icon from inside it
hModule := DllCall("GetModuleHandle")
; choose the icon id to use (IronAHK has a different one):
icon := IronAHK ? 32512 : 159
; calculate struct size:
struct_size := 4*3 + ptr_size*7
; cbSize, dwStyle and dwLanguageId are 4 bytes, others depend on system pointer size
VarSetCapacity(params, struct_size, 0) ; initialize structure
; filling in structure members we need:
; "The structure size, in bytes."
NumPut(struct_size, params, 00+0*ptr_size, "UInt")
; "A handle to the module that contains the icon resource identified by the lpszIcon member... "
NumPut(hModule, params, 04+1*ptr_size, ptr)
; "A null-terminated string that contains the message to be displayed."
NumPut(&text, params, 04+2*ptr_size, ptr)
; "A null-terminated string that contains the message box title."
NumPut(&caption, params, 04+3*ptr_size, ptr)
; "The contents and behavior of the dialog box."
NumPut(flags, params, 04+4*ptr_size, "UInt")
; "Identifies an icon resource."
NumPut(icon, params, 08+4*ptr_size, "UPtr")
; call the function and pass a pointer to the structure:
DllCall("MessageBoxIndirect", ptr, ¶ms)
Thanks in advance maul.esel
Here it is:
Thanks!
Could anyone running an english OS please make a new screenshot and replace the file in
/en/images/Hello-World-2.png
? If you have a better idea for the text, feel free to change it (but also change it in the post).Source:
Thanks