HOME | DD

Picassa243 — Perfect Run Dialogue Box in XP

Published: 2008-03-25 11:58:17 +0000 UTC; Views: 7348; Favourites: 21; Downloads: 1004
Redirect to original
Description I have uploaded a bitmap for you. Be careful to mod the shell32.dll as it is the most sensitive dll of the system. So even after modding and replacing you should open it and check it up that all the resources are working and intact or not.

CODE Code Updated!

1003 DIALOGEX 0, 0, 274, 120
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_NOIDLEMSG | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Run"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg"
{
CONTROL "", 12298, COMBOBOX, CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_TABSTOP, 41, 44, 214, 13
CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 77, 96, 56, 15
CONTROL "Cancel", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 139, 96, 56, 15
CONTROL "&Browse...", 12288, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 202, 96, 56, 15
CONTROL 4201, 0, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP, 0, 1, 269, 75
}

The script here is eay to understand. Though my upcoming book on resource hacking will explain these commnands in detail, users should know what they are copying/pasting.

You should add a bitmap control under the Bitmap category by the number 4201. This can be done by highlighting Bitmap. Then Goto Actions and Add a New Resource and then choose the bitmap I have given you. Then Add Resorce Name= 4201 and Resource Type= 1033

SCRIPT EXPLANATION:


The first line 1003 DIALOGUEX explains the dialogue Number present in any resource when you open it with resource Hacker. Integers 0,0,274,120 represent the size of the dialogue box. There are four co-ordinates for the dialogue boxes. The last two coordinates represent the width and the height respectively.

Caption represents what should be the heading of the Dialogue Box, You may even change it to your name if you want things to be fancy.

Language is here english as the resources have been taken from an English version of Windows XP.

Font size is represented by the upper and the main code. MS shell dialogue is the Microsoft Shell Dialogue and the size of the font that should be displayed within this dialogue is controlled by the MS Shell Dialogue Resource

The second part of the code is also known as the subcode. The language used in it is known as the Sub Language. Curly brackets are used to open the code and close it as well.

Control of the first line COMBOBOX represents that a combox is intended to be made and that its function is a drop down box represented by CBS_DROPDOWN the other controls include
|CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL which are Combo Box Scroll AutoHScroll and Disable NoScroll these represent that if the amount of commands typed in the Run box exceed a particular limit then a scroll bar is seen otherwise it is a disabled option. | WS_CHILD | is an integral porion in almost all controls of Resource Hacker. | WS_VISIBLE | is again meant for the Visibilty of the controls used in Resource Hacker if this parameter is not specified then the controls may be visible in resource hacker but not when the file is compiled and replaced. Therefor to make a control visible it is necessary to add a | WS_VISIBLE | parameter.

Text specified between the inverted commas after the Control will appear as the text of the control introduced. Generally scripts are easy to understand. BUTTON, BS_DEFPUSHBUTTON| represents the creation of a Push Button where |BS_AUTOCHECKBOX| would have resulted in a check box instead of a push button whereas |BS_RADIOBUTTON| would make a radio button.

As you see that I have added the Bitmap control at the end of the script. This is a trick to make the combo box overlap the bitmap and make it functional. If I would have added the bitmap control at the start of the script the combo box would have been hidden behind the bitmap. Also controls added first are prioritized from the others. As mentioned above to close a script again } bracket is used.
Related content
Comments: 31

trueaznballa07 [2008-05-22 06:06:29 +0000 UTC]

Thanks bro! (:

👍: 0 ⏩: 0

trueaznballa07 [2008-05-14 22:58:40 +0000 UTC]

Wait, so I did see what you've typed up for *us* to read.

But I'm not quite knowledgeable. What exactly do I have to do to get this mod to work?

Sorries. [link]
Affection

👍: 0 ⏩: 1

Picassa243 In reply to trueaznballa07 [2008-05-17 10:14:46 +0000 UTC]

There is a deviation on D.A that explains how to do this in PT-BR. You can read that

👍: 0 ⏩: 0

Taztdar [2008-04-05 16:52:02 +0000 UTC]

Thanks

👍: 0 ⏩: 0

DigitalIXS [2008-04-02 12:00:55 +0000 UTC]

Nice

👍: 0 ⏩: 1

Picassa243 In reply to DigitalIXS [2008-04-02 13:13:48 +0000 UTC]

Thanks!

👍: 0 ⏩: 0

WindowsNET [2008-03-26 17:41:28 +0000 UTC]

Perfect!
But if I use on XP in Portuguese he will continue Portuguese or English?

👍: 0 ⏩: 0

WindowsNET [2008-03-26 17:41:22 +0000 UTC]

Perfect!
But if I use on XP in Portuguese he will continue Portuguese or English?

👍: 0 ⏩: 1

Picassa243 In reply to WindowsNET [2008-03-27 10:24:12 +0000 UTC]

You can send me portuguese. Ill try to make one.

👍: 0 ⏩: 1

WindowsNET In reply to Picassa243 [2008-03-27 16:43:02 +0000 UTC]

Which file?

👍: 0 ⏩: 1

Picassa243 In reply to WindowsNET [2008-03-27 19:30:11 +0000 UTC]

Its not a file actually just a bitmap. Im sure you can make your own translated bmp.

👍: 0 ⏩: 0

matsw007 [2008-03-26 06:16:05 +0000 UTC]

Very cool job.

👍: 0 ⏩: 0

jeremyddual [2008-03-26 02:33:25 +0000 UTC]

Flagged as Spam

👍: 0 ⏩: 1

Picassa243 In reply to jeremyddual [2008-03-26 04:17:38 +0000 UTC]

As far as I know you have been very careless with system files. Modifying .sys files without any fear of destruction. While I wrote in my comments that when you modify shell32.dll with ResHack don't just leave it there. Double check it. Always see that all resources are working and intact. This code is perfect! Don't post miseries please.

👍: 0 ⏩: 1

jeremyddual In reply to Picassa243 [2008-03-26 06:41:34 +0000 UTC]

yea right

👍: 0 ⏩: 0

maoractive [2008-03-25 17:44:15 +0000 UTC]

Awesome, I guess you worked on this one much time.... Bravo!

👍: 0 ⏩: 0

sunnymahan007 [2008-03-25 16:11:40 +0000 UTC]

good one

👍: 0 ⏩: 0

deskmundo [2008-03-25 15:22:48 +0000 UTC]

Nice work!

👍: 0 ⏩: 1

Picassa243 In reply to deskmundo [2008-03-25 15:36:52 +0000 UTC]

Thanks

👍: 0 ⏩: 0

jeremyddual [2008-03-25 13:32:55 +0000 UTC]

Nice small guide
and
if you can make the vista dialog on shell32 xp 1003 up to 32885 If you can if not it is okay

👍: 0 ⏩: 1

Picassa243 In reply to jeremyddual [2008-03-25 13:34:05 +0000 UTC]

I am writing a whole book if you read the comments... =/

👍: 0 ⏩: 1

jeremyddual In reply to Picassa243 [2008-03-25 13:48:54 +0000 UTC]

yea i read it

👍: 0 ⏩: 0

Desktop-Squared [2008-03-25 12:40:25 +0000 UTC]

Very nice. Btw, font should be Segoe UI and size 9.

👍: 0 ⏩: 1

Picassa243 In reply to Desktop-Squared [2008-03-25 13:01:19 +0000 UTC]

Nah its 8. Checked on VM Ware. Vista has a font size of 8 in the dialogue box.

👍: 0 ⏩: 1

Desktop-Squared In reply to Picassa243 [2008-03-25 13:04:54 +0000 UTC]

Maybe I'm mistaken, I checked the mui...As far as I remember, most dialogs have size 8 with font MS Shell Dlg, but a few are with Segoe UI size 9...

👍: 0 ⏩: 2

maoractive In reply to Desktop-Squared [2008-03-25 17:41:26 +0000 UTC]

Picassa234 is right. The size is 9. (btw, I'm a Vista user )...

👍: 0 ⏩: 0

fediaFedia In reply to Desktop-Squared [2008-03-25 13:44:29 +0000 UTC]

The screenshot is a BMP from vista's run dialog.

👍: 0 ⏩: 1

Desktop-Squared In reply to fediaFedia [2008-03-25 13:53:16 +0000 UTC]


But the rest of the text in the dialog would still not be in Segoe...

👍: 0 ⏩: 1

fediaFedia In reply to Desktop-Squared [2008-03-26 07:31:35 +0000 UTC]

Don't know about the type box or buttons, but everything else is same as in vista.

👍: 0 ⏩: 0

fediaFedia [2008-03-25 12:24:21 +0000 UTC]

Great work!

👍: 0 ⏩: 2

Picassa243 In reply to fediaFedia [2008-04-02 16:19:25 +0000 UTC]

And finally you started speaking the truth. My code get it. And pointless script explaination you say? Its for dumbos like you to undersatnd who just copy without using their brains and/or who want to keep their knowledge confined.

👍: 0 ⏩: 0

Picassa243 In reply to fediaFedia [2008-04-02 15:35:42 +0000 UTC]

This reply is so that you can read what I have written for you. Dont cry over spilt milk now. I have far more capability in Res Hacking than you. So cheers and again NO CREDITS.

👍: 0 ⏩: 0