Professional Web Applications Themes

autorun and change screen to 640x480 256 - Macromedia Director Basics

I have a 640x480 projector file (mymovie.exe) Autoruning the CDROM is not important, but the user's screen resolution is. I want when the user clicks on an icon in the CDROM's root dir the following to occur: 1) User's screen resolution is reset to 640x480, 256 colors 2) The mymovie.exe projector plays. 3) When user clicks [esc] key the movie quits and the screen resolution and colors are set back to normal. How is this done? Thanks, - Chuck...

  1. #1

    Default autorun and change screen to 640x480 256

    I have a 640x480 projector file (mymovie.exe)
    Autoruning the CDROM is not important, but the user's screen resolution is.

    I want when the user clicks on an icon in the CDROM's root dir the following to occur:

    1) User's screen resolution is reset to 640x480, 256 colors
    2) The mymovie.exe projector plays.
    3) When user clicks [esc] key the movie quits and the screen resolution and colors are set back to normal.

    How is this done?

    Thanks,
    - Chuck



    Charliedhq webforumsuser@macromedia.com Guest

  2. #2

    Default Re: autorun and change screen to 640x480 256

    There are several Xtras out there to allow you to change the resolution, I
    recommend one of the following:

    Buddy API (2 functions are Free):
    [url]http://www.mods.com.au/frameset.htm[/url]

    or another is MagicRes by Meliora Software (part of MagicTools, also Free):
    [url]http://www.meliorasoft.com/xtras/magictools/index.htm[/url].

    There are several more out there but these are the two I have used in the
    past.

    Michael Hamstra




    "Charliedhq" <webforumsusermacromedia.com> wrote in message
    news:bls572$iq8$1forums.macromedia.com...
    > I have a 640x480 projector file (mymovie.exe)
    > Autoruning the CDROM is not important, but the user's screen resolution
    is.
    >
    > I want when the user clicks on an icon in the CDROM's root dir the
    following to occur:
    >
    > 1) User's screen resolution is reset to 640x480, 256 colors
    > 2) The mymovie.exe projector plays.
    > 3) When user clicks [esc] key the movie quits and the screen resolution
    and colors are set back to normal.
    >
    > How is this done?
    >
    > Thanks,
    > - Chuck
    >
    >

    Michael Hamstra Guest

  3. #3

    Default Re: autorun and change screen to 640x480 16bit

    Hi...

    One good way to get this done hazzle free is to have buddyapi and use basetDisplay() to change the settings. Store the current settings in a global variable. Use the stopmovie handler to reset the system back to normal once the exe stops running.


    Vj
    vij010 Guest

  4. #4

    Default Re: autorun and change screen to 640x480 16bit

    Hi..

    Check this code out...but before you do get buddyapi installed,othewise this will not run. This uses the basetdisplay() to set the display of the user's computer. I use buddyapi cuz it's the most simple and efficient way control a machine. If you want it send me a mail.

    --code starts here
    global bud,x,y
    on startmovie
    set test=the desktoprectlist
    set t=string(the desktoprectlist)
    set x=item 3 of t
    put x

    set y =item 4 of t
    delete the last char of y
    delete the last char of y
    put y
    -- bud=new(xtra "budapi")
    end

    on reset
    global x,y,bud
    baSetDisplay((integer( x)) ,integer( y) , 16 , "temp" , true )
    end


    on stopmovie
    global x,y,bud
    baSetDisplay(integer(x) ,integer( y) , 16 , "temp" , true )
    end

    --code ends here

    This code has to go on a moviescript. I don't know whether this is the best way to get the values out of a desktoprectlist. But as of now, this is one way i figured out and it works without any problems. if there's a better efficient way, or a new way to achieve the same....please post it.

    This code starts by assigning the current screen resolution that's in the system variable (the desktoprectlist) to a variable. This is crucial cuz we will refer to this variable when we have to reset the system back.

    So on your icon's mouse up paste this code...
    --code to change the display
    --change the values 1152,864 to your monitor's setting
    -- button behaviour
    on mouseup
    baSetDisplay( 1152 , 864 , 16 , "temp" , true )
    end

    Now since there's a stopmovie script coded in, this script will fire when you close the exe or when the exe stops. So in effect it will reinitialize the desktop to it's original setting. You can delete the reset handler as this is not necessary, unless you create a button that's labelled reset.

    Hope this helps u...

    Vj
    vij010 Guest

  5. #5

    Default Re: autorun and change screen to 640x480 256

    Thanks! I didn't realize that changing the users' screen required an xtra.

    I found a cool one that works great for me.

    AniRez2 [url]http://www.aniware.se[/url]

    Thanks again!
    - Chuck



    Charliedhq webforumsuser@macromedia.com Guest

Similar Threads

  1. change screen after login
    By realtime158 in forum Macromedia Flex General Discussion
    Replies: 8
    Last Post: April 13th, 08:08 PM
  2. Full screen playback from autorun cd
    By bobthree in forum Macromedia Flash Player
    Replies: 0
    Last Post: March 14th, 06:01 PM
  3. color change within text box - not shown on screen or info, but printed
    By Reed_C_Bowman@adobeforums.com in forum Adobe Indesign Windows
    Replies: 0
    Last Post: July 30th, 12:09 AM
  4. improper email on login screen for user, how do i change it
    By Andrew Brumwell in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 18th, 06:42 AM
  5. How to change XP Welcome screen display value?
    By stevensly in forum Windows XP/2000/ME
    Replies: 1
    Last Post: July 5th, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139