Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12
  1. #1
    Join Date
    Aug 2003
    Posts
    29

    Peekaboo! Changing Screen resolution

    Is there a possibility to be able to change the desktop screen resolution from what ever it is to 800x600. or what ever I like it to be. Must be done through autoplay 5

    Thanks !!

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Here's a link to a tool that will do the job for you.

    ResMaster

  3. #3
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Pay attention to the red text on the page. If you search the forums you will find similar comments about changing a users screen for them and how it might be frowned upon.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  4. #4
    Join Date
    Apr 2004
    Location
    Bavaria (Germany)
    Posts
    91
    The description of the ResChanger.dll Worm mentioned, sounds good. But the example provided with that download is only for MS4 and can't be opened with v5.

    Can someone please give me a MS5 example to see, how it works?

    Thank you in advance!
    Schmidl

  5. #5
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Brett,
    Couldyou please explain how to use this DLL?
    I checked on your site and see the parameters but don't understand how to use them in AMS (ver 5.0, of course).
    Ideal would be:
    get resolution on startup
    change resolution (after getting user approval)
    ghange back resolution on shutdown.

    Thanks
    Yossi

  6. #6
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Try This
    Attached Files
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

  7. #7
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Thanks Jim,
    I got stuck using the functions with double parentheses instead of their name only...and I KNOW how to use function, I just copied and pasted from Brett's site...Shame on me...
    Thanks again
    Yossi

  8. #8
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by yosik
    I just copied and pasted from Brett's site...Shame on me...
    That one gets me all the time.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  9. #9
    Join Date
    Apr 2005
    Location
    Guayaquil - Ecuador
    Posts
    1

    But how do i get just one!!

    Hi Everyone..
    I'm new here, well.. I was checking what you have posted but i just want to change from any display resolution to 1024x768... What should i do or what should i change from the ResChanger that Jim upload..??? i hope you can help me...

    Thanks,
    Xavier Arroyo

  10. #10
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by JimS
    Try This
    Hi Jim,

    Have you succesfully implemented it in a project?

    I've got a small proportion of users who run 800x600 and I want to temporarily set mode 1024,768,24,75. I am using this code in Project/Actions/OnStartup -
    Code:
    ResChanged=false
    display = System.GetDisplayInfo();
    if display.Width<1024 then
    result = Dialog.Message("Screen Resolution Incompatible", "Your screen resolution must be set to 1024 x 768 or better before you can view this handbook.\r\n\r\nTo change your resolution click OK.\r\n\r\nWhen you exit from the handbook, your screen resolution will be reset to it\'s current value.\r\n\r\nClick Cancel if you do not wish to proceed.", MB_OKCANCEL, MB_ICONSTOP, MB_DEFBUTTON1);
    if result == IDOK then
    StartDisplayMode = DLL.CallFunction("AutoPlay\\Docs\\ResMaster.dll", "GetCurrentDisplayMode", "", DLL_RETURN_TYPE_STRING, DLL_CALL_CDECL);
    TempMode="1024,768,24,75"
    result = DLL.CallFunction("AutoPlay\\Docs\\ResMaster.dll", "SetDisplayMode", TempMode, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    ResChanged=true
    end
    if result == IDCANCEL then
    Application.Exit()
    end
    end
    and this code in the Project/Actions/OnShutdown -
    Code:
    if ResChanged==true then
    result = DLL.CallFunction("AutoPlay\\Docs\\ResMaster.dll", "SetDisplayMode", StartDisplayMode, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
    end
    It almost works. The screen resolutions change as required BUT the project window appears as an 800x600 block in the upper right corner of the screen which has been changed to 1024x768. The return to 800x600 works.

    Any thoughts?

    I should add - I'm using kiosk mode.
    Last edited by longedge; 04-14-2005 at 04:35 AM.

  11. #11
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    My best guess is that you need to exit and restart your executable. Use File.Run to restart your program (don’t wait for return), then Application.Exit(0); to exit. When your project restarts at the correct resolution, I think it will be OK.

    My biggest concern is that everybody’s computer monitor will support the settings you chose. 1024x768x24@75Hz may work fine on your monitor, but may be too fast for some cheaper (older) monitor/graphics cards.

    My suggestion is that you make a list of possible settings:
    1024,768,24,75
    1024,768,24,70
    1024,768,24,65
    1024,768,24,60
    1024,768,16 ,75
    1024,768,16 ,70
    1024,768,16 ,65
    1024,768,16,60

    Then search through your string StartDisplayMode to find the first one that exists, and use it for TempMode

    result = String.Find(StartDisplayMode, "1024,768,24,75", 1, false);



    .
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

  12. #12
    Join Date
    Aug 2003
    Posts
    2,427
    Quote Originally Posted by JimS
    My biggest concern is that everybody’s computer monitor will support the settings you chose. 1024x768x24@75Hz may work fine on your monitor, but may be too fast for some cheaper (older) monitor/graphics cards.
    Thanks Jim, I'll try your suggestion. I'm lucky in that I have a 'closed audience' and I know that 75Hz is the lowest common denominator and will work OK. Unfortunately I can't enforce a common permanent setting of 1024x768 - now that would be easy

Posting Permissions

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