Introduction
Hello, mIRC
scripter!
If you ever
tried to create mIRC dialogs calculating all the coordinates manually you’ve
already known what a pain it is. There exist some dialog editors for mIRC written
in different programming languages but none of them can compete with
professional tools by software giants.
Dialog
Grabber offers you an alternative way to create mIRC dialogs: design them in
your favorite application builder, compile fake executables and have DG convert
them into mIRC dialog tables.
After
having unzipped “DlgGrab.zip” you’ll find:
The source
code can only be interesting for advanced users. You may find some of the
examples useful as templates for your own dialogs.
DG doesn’t
make any changes in the Windows registry, so uninstalling is simple – just
delete everything you no longer need.
Version
5.82 is a minor update of 5.81.
1. Fixed the bug with combo and list
boxes.
Version 5.81
is final (bug-fix updates may follow). Something’s been added, something’s been
fixed and something’s been removed since 5.8:
2. More precise calculations.
3. Removed the “DBU (Windows)” scaling
mode.
4. Removed the “Generate alias” and
“Generate header” checkboxes.
5. The code has been completely
rewritten using the object-oriented approach.
6. Removed the commas at the end of
every dialog item line.
7. Added support for multi-line text.
8. Added support for menu resources.
I’ll
illustrate the process of creating mIRC dialog tables with DG assuming you use
Visual C++:
#include <windows.h>
#include "resource.h"
BOOL CALLBACK DialogFunc(HWND hWnd,UINT msg,WPARAM
wParam,LPARAM)
{
if ((msg == WM_COMMAND) && (wParam ==
MAKELONG(IDCANCEL,BN_CLICKED)))
EndDialog(hWnd,0);
return 0;
}
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
{
return
DialogBox(0,MAKEINTRESOURCE(IDD_DIALOG1),0,DialogFunc);
}
1. Dialog
Grabber calculates coordinates for icons (like “;icon id, x y w h, noborder”) but it doesn’t extract them from
the executable. You need to add the “filename” and the “index” yourself.
2. Tabs
aren’t supported because Windows tab controls are different from mIRC ones –
they don’t “contain” other controls.
3. Dialog
Grabber can only extract standard Windows dialogs. Visual Basic, Delphi and
some other RAD tools do NOT create Windows dialogs and DG won’t find anything.
However, Visual C++ can import Visual Basic forms (“Insert/Resource/Dialog
-> Import”).
It doesn’t
mean DG forces you to use Visual C++, no. There must be tons of other
(commercial and free) dialog editors for Windows.
You are
free to develop and modify the source code without any copyright restrictions.
Necroman