Jump to content











Photo
- - - - -

[app script] SetResolution


  • Please log in to reply
126 replies to this topic

#76 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 26 November 2008 - 09:15 PM

In some cases where video is unstable, screen is not black, but resolution cannot be adjusted without a prior CDS_RESET. Trouble is, there is no way I know of to programmatically determine when this needed at first boot (of course, when SetResolution is already running and there is a video driver change then there is), so I made the decision to initiate a CDS_RESET when SetResolution starts, that way SetResolution knows the current state of play.

Regards,
Galapo.

#77 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 November 2008 - 11:55 PM

In some cases where video is unstable, screen is not black, but resolution cannot be adjusted without a prior CDS_RESET. Trouble is, there is no way I know of to programmatically determine when this needed at first boot (of course, when SetResolution is already running and there is a video driver change then there is), so I made the decision to initiate a CDS_RESET when SetResolution starts, that way SetResolution knows the current state of play.

I would guess that it is never needed, when the resolution does not need to be adjusted, because the resolution is already the right one. :)
Windows i think, issues a reset every time the resolution is changed.
I think SetRes can work the same.

:(

#78 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 November 2008 - 12:14 AM

No, like I said the resolution may be the right one, but it may not be stable. If SetResolution has not been running, it has no way of knowing current stability, hence the need for CDS_RESET just in case. In an unstable situation, if the user were to attempt to adjust resolution with SetResolution, they would not be able to do so. The initial CDS_RESET prevents this glitch.

Regards,
Galapo.

#79 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 November 2008 - 02:49 AM

Script has been updated with version 4.7 of SetResolution.exe.

Changes:
- checks are now made before best resolution function attempts to adjust resolution so as to not adjust if not necessary
- improved adjustments made when new device driver is detected
- added ctrl+shift+B hotkey which adjusts resolution to the highest supported resolution of the active display

Regards,
Galapo.

#80 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 November 2008 - 04:17 AM

Script has been updated with version 4.8 of SetResolution.exe.

Changes:
- fixed a bug where process priority wasn't set when specified from INI file

Regards,
Galapo.

#81 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 November 2008 - 10:13 AM

Script has been updated with version 4.9 of SetResolution.exe.

Changes:
- fixed a bug where under some particular circumstances the LOG wasn't able to be opened

Regards,
Galapo.

#82 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 02 December 2008 - 12:01 AM

Script has been updated with version 5.0 of SetResolution.exe.

Changes:
- added -rebuild commandline parameter, which allows for rebuilding the icon cache
- fixed a bug where if -refresh was specified on commandline and SetResolution was already running, message would indicate such; now no message displays after desktop refresh and second instance of SetResolution closes quitely

Regards,
Galapo.

#83 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 15 January 2009 - 06:21 AM

Script has been updated with version 5.1 of SetResolution.exe.

Changes:
- now compiled with AutoIt v.3.3 resulting in a) the shell icon cache rebuild function being accomplished internally rather than by additional app (dll call in older version didn't allow for the complexity of this function); and b) correct resolutions being reported from display devices so that no "fudged" multiplier is necessary any more
- supports new version of Driver Import PE when released (tomorrow)
- fixed a bug where bestres function wrote to log numerous times after display driver update

Regards,
Galapo.

#84 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 15 January 2009 - 12:32 PM

:) :) :)

#85 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 18 March 2009 - 01:26 AM

Script has been updated with version 5.2 of SetResolution.exe.

Changes:
- Fixed virtual machine detection bug introduced in previous version due to compiling in newer AutoIt version

Regards,
Galapo.

#86 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 04 May 2010 - 07:14 AM

Script has been updated with version 5.3 of SetResolution.exe.

Changes:
- Changed to a different array sorting function so that program doesn't crash on x64 systems
- Can now specify depth to be set under native and virtual systems upon start

Regards,
Galapo.

#87 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 04 May 2010 - 09:23 AM

Script has been updated with version 5.4 of SetResolution.exe.

Changes:
- Reenabled memory consumption reduction function which was disabled for x64 tests and was forgotten to be enabled when v.5.3 was compiled and uploaded

Regards,
Galapo.

#88 Zerojinny

Zerojinny

    Newbie

  • Members
  • 22 posts

Posted 03 July 2010 - 06:33 AM

I have a problem whit DisplayProperties.Script and SetResolution.script.
In either do not have a problem when using one.
But the two are used together, the following problems occur.

Posted Image

The boot does not automatically(in registry) run Setresolution After the run manually, the problem does not occur.
In addition, this problem occurs in Vmware , but the problem does not occur in Virtualbox.

SourceCD : XP SP3 Korean
HostOS : XP SP3 Korean
Winbuilder Ver : 080
DisplayProperties.Script Ver : 18
SetResolution.script Ver : 60

#89 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 04 July 2010 - 10:43 AM

Hi Zerojinny,

I'm on holdays at the moment, so there'll be a delay until I can take a look at the issue.

What happens if you change the RunOnceEx entry in the SetResolution script from 999 to 998?

Regards,
Galapo.

#90 Zerojinny

Zerojinny

    Newbie

  • Members
  • 22 posts

Posted 04 July 2010 - 11:26 AM

Hi Zerojinny,

I'm on holdays at the moment, so there'll be a delay until I can take a look at the issue.

What happens if you change the RunOnceEx entry in the SetResolution script from 999 to 998?

Regards,
Galapo.


I tried to change RunOnceEx->RunOnce, RunOnceEx->Run and Autostart shortcut.
Interesting thing is when autostart shortcut and run, or when RunOnceEx the appearance of the icon is different.

RunOnceEx's result

Posted Image

Run or Autostart shortcut's result

Posted Image

And i change the RunOnceEx entry in the SetResolution script from 999 to 998 and i got a same result.

Regards,
Zerojinny

#91 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 05 July 2010 - 03:39 AM

Ok, thanks. What happens if you comment out the resShort.exe lines in buildmodel script?

Thanks,
Galapo.

#92 Zerojinny

Zerojinny

    Newbie

  • Members
  • 22 posts

Posted 05 July 2010 - 06:44 AM

Ok, thanks. What happens if you comment out the resShort.exe lines in buildmodel script?

Thanks,
Galapo.


I comment out the resShort.exe lines in buildmodel script but it's result was same.
And I tried to move RunOnceEx\999 --> RunOneceEx\000, it means setresolution runs before modelram,
but it's result was same.

#93 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 05 July 2010 - 09:20 AM

I'm not sure what the root cause of the issue is. But hopefully changing this line
reg_add,0x1,%reg%\Microsoft\Windows\CurrentVersion\RunOnceEx\999,SetResolution,"hiderun %ProgramEXE% -hide -%pScrollBox5% -vmdetect -registry -output"
to this
reg_add,0x1,%reg%\Microsoft\Windows\CurrentVersion\RunOnceEx\999,SetResolution,"hiderun %ProgramEXE% -hide -%pScrollBox5% -vmdetect -rebuild -registry -output"
will fix it for you.

Regards,
Galapo.

#94 Zerojinny

Zerojinny

    Newbie

  • Members
  • 22 posts

Posted 05 July 2010 - 01:07 PM

Thanks Galapo,

reg_add,0x1,%reg%\Microsoft\Windows\CurrentVersion\RunOnceEx\999,SetResolution,"hiderun %ProgramEXE% -hide -%pScrollBox5% -vmdetect -rebuild -registry -output"

It's not work for me.

To remove runonceex run after the boot is not the problem.
(Start-Run- Setresolution.exe -hide abovenormal vmdetect -rebuid -registry -outpur)

And i have some question.

What's mean "-rebuild"?

Does this issue happen to just me?

#95 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 05 July 2010 - 10:14 PM

It's not work for me.

Please test it again because that worked for me.

Also, please provide a WinBuilder log of your build.

What's mean "-rebuild"?

It rebuilds the shell icon cache

Does this issue happen to just me?

I get the issue under VMWare. Adding the -rebuild parameter fixed the issue for me.

As for the actual reason why it occurs, I don't know.

Regards,
Galapo.

#96 Zerojinny

Zerojinny

    Newbie

  • Members
  • 22 posts

Posted 06 July 2010 - 04:04 AM

I tested again it.

This tim I used a English Windows XP as a source.

But i got a same ploblem.

Here is my log.

Before : used -hide -%pScrollBox5% -vmdetect -registry -output

Posted Image


After : used -hide -%pScrollBox5% -vmdetect -rebuild -registry -output

Posted Image

#97 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 06 July 2010 - 04:15 AM

In the booted PE at a command prompt, type this:

setresolution.exe -exit -rebuild


What happens?

Thanks,
Galapo.

#98 Zerojinny

Zerojinny

    Newbie

  • Members
  • 22 posts

Posted 06 July 2010 - 04:39 AM

Thanks a lot, Galapo. :cheers:

It works for me greatly! :cheers:

How can i add that option?

#99 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 06 July 2010 - 09:50 AM

I'll have to do some more tests and work out what the best solution is.

Regards,
Galapo.

#100 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 07 July 2010 - 09:45 AM

Script has been updated with version 5.6 of SetResolution.exe.

Changes:
- added -delay commandline parameter to be used in conjunction with -rebuild, which allows for boot-time delay before rebuilding the icon cache (delay is to be specified in seconds, eg -delay=3)
- added log output to specify what resolution was attempted to be set when an error occurs

I've added a script interface option to specify a time for the -delay parameter.

Regards,
Galapo.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users