Jump to content

run dialog box


RBCC

Recommended Posts


Here is what my code looks like for The Run Box

1003 DIALOGEX 0, 0, 230, 126
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_NOIDLEMSG | DS_CONTEXTHELP | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_STATICEDGE
CAPTION " RUN WHAT APP OR ITEM?"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS SHELL DLG", 1, FALSE, 0
{
CONTROL 27, -1, STATIC, SS_ICON | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 183, 104, 18, 18
CONTROL 28, -1, STATIC, SS_ICON | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 23, 104, 18, 18
CONTROL 31, -1, STATIC, SS_ICON | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 100, 104, 18, 18
CONTROL "", 12298, COMBOBOX, CBS_SIMPLE | CBS_DISABLENOSCROLL | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_VSCROLL | WS_TABSTOP, 7, 11, 214, 85
CONTROL 14350, -1, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP, 0, 0, 200, 118 , 0x00000100
CONTROL "Run in separate &memory space", 12306, BUTTON, BS_AUTOCHECKBOX | WS_CHILD | WS_DISABLED | WS_TABSTOP, 36, 51, 183, 0
CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, 183, 103, 19, 19
CONTROL "NO", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, 23, 103, 19, 19
CONTROL "&SEEK", 12288, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, 100, 103, 19, 19
}

What it looks like

RunBox.PNG

Edited by gunsmokingman
Link to comment
Share on other sites

This is the line for the bitmap

CONTROL 14350, -1, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP, 0, 0, 200, 118 , 0x00000100

You will have to add a bitmap in the Bitmap folder of resource hacker, this CONTROL 14350 is the bitmap name in the bitmap folder.

Link to comment
Share on other sites

  • 3 months later...

it would most likely have to be an avi , ive never tried adding an avi or animated gif so i cant be certain. Just try softpedia.com and see if you can find an animated gif to avi converter, im sure someone has made a freeware one or theres a trial basis shareware version

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...

AVI's on the dialog boxes - It works

Well, you guys asked, and now you've recieved. AVI files can be placed on the dialog boxes, all major ones focused on. Run box, Open/Save, Shutdown, Logoff, etc... I didn't take a screenshot as there's really no point, you can't see the animation, but here's how you do it:

First, load up your file with the dialog of your choice, and get that dialog up and ready for hacking.

Second, right click on the dialog and select "Insert new Control"

For the new control, you'll want to select the last one to the right, on the second row, the "SysAnimate32" control, then, leave it as is, and hit enter.

Now, take this line:

CONTROL "#151", 12287, "SysAnimate32", ACS_TRANSPARENT | ACS_AUTOPLAY | WS_CHILD | WS_VISIBLE, 71, 154, 60, 60

Adding the new control made a line similiar to that one above. Make sure that your new line looks like that one up there. The # sign MUST be in front of the number of your AVI file. I tested this on the run box, and used AVI #151 out of shell32, same one you find on the find dialog box. If you make your own AVI file, add it in to the file using the Add a new Resource command under the ACTION menu, then, change #151 to #whatever you call it, #10 or # 200, whatever you want.

Now, the autoplay function needs to be there because you want see the animation without it. It will only animate when performing an action like opening a file from the run box, but that's so fast you just won't see it. So, make sure it's there.

Also, the ID number, which in the line above is 12287, should be changed to match the series of ID #'s on your dialog box of choice. If you see 3 id #'s let's say, 100, 101, and 102, then your's should be in that same pattern, so, #103 or 104, etc... Try to keep them close together.

The numbers at the end are useless to you at the moment. Those are the adjustments, representing the top, bottom, left and right side positions of the AVI file. After you insert the AVI, you must drag it to whatever position you want, and those numbers will change automaticlaly. So, remember, use my line above as an example of what WILL work, but adjust it to fit your own AVI's needs.

I foud this tut on virtualplastic.net

cro-man

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...