Jump to content











Photo
- - - - -

[app script] SetResolution


  • Please log in to reply
126 replies to this topic

#26 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 04 October 2007 - 07:14 AM

Hi Galapo,
Try this, add quote
reg_add,0x2,"%reg%\EasyBoot Systems\UltraISO\5.0","","#$q%PE_Programs%\%ProgramFolder%#$q"

Or simply add a System,RefreshVar

Pedro

Nope, doesn't work, at least for LiveXP.

The string is still written to the registry as "%SystemDrive%\Program Files" whereas UltraISO requires the hardcoded "X:\Program Files".

Regards,
Galapo.

#27 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 04 October 2007 - 12:51 PM

And if you replace:

x:\%ProgDir%\

with:

#$pProgramFiles#$p\

It is not working?
As far as i know there's no way to read with the win api the unresolved string from the registry. :cheers:

But you may try to use type 0x01. Peter and i ran into a bunch of keys in XP that need to stay 0x01 in order to be used even if they contain variables.

:cheers:

#28 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 04 October 2007 - 04:00 PM

Hi Galapo
I still understand what is wrong ?
It seem well working

:cheers:
Pedro

Attached Thumbnails

  • 2007_10_04_175327.jpg


#29 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 05 October 2007 - 06:21 AM

Hi Galapo
I still understand what is wrong ?
It seem well working

:cheers:
Pedro

It works for me mounting through the application, but not via the shell context menu. Here, the image will not mount unless some registry entries do not contain variables. In any case, I'm nearly finished a small autoit script which will take care of these and other entries at run-time.

Regards,
Galapo.

#30 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 05 October 2007 - 12:06 PM

Without implying that there is another way, i'm strictly against runtime patching.

:cheers:

#31 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 05 October 2007 - 08:29 PM

Without implying that there is another way, i'm strictly against runtime patching.


Yes, me too!

Which is why I continued to stick with and and now have UltraISO functioning properly without something running at run-time. Had to make a change with the service and something else and now it works.

IZArc is being a bit more difficult. This entry

HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\IZArc

needs a hardcoded path, eg: X:\Program Files\%ProgramFolder%\IZArc.exe"

Any suggestions for that particular type of entry?

Regards,
Galapo.

#32 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 05 October 2007 - 09:53 PM

:cheers: I just realized you had your problems with services and therelike.
Services start real early in the boot process. Way before all dynamic system variables are available.
For any 'thing' that depends on the dynamic system variables and is started before or during the explorer starts, you will have to eighter reread the variables, as psc once did with his refresh shortcuts, or rely only on %systemroot% and %systemdrive%.
A few others might work too, but %ProgramFiles% isn't one of them.

:cheers:

#33 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 29 April 2008 - 01:23 AM

SetResolution has been updated. The following hotkeys are now supported:

ctrl + shift + l sets resolution of 640x480 ( helpful in case of black screen at boot )
ctrl + shift + uparrow sets next highest supported resolution from current resolution
ctrl + shift + downarrow sets next lowest supported resolution from current resolution (to 640 x 480)
ctrl + shift + + sets next highest colour depth from the current depth
ctrl + shift + - sets next lowest colour depth from the current depth

SetResolution.exe can be run under normal OS as well if a quick way of adjusting resolution up and down via hotkeys is desirable.

Regards,
Galapo.

#34 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4135 posts

Posted 29 April 2008 - 06:28 AM

SetResolution has been updated. The following hotkeys are now supported:

ctrl + shift + l sets resolution of 640x480 ( helpful in case of black screen at boot )
Regards,
Galapo.

lol! How are you going to know the settings if you have a black screen.
Just joking. What is the last key. Is that the symbol above the Enter key where the " \" key is.

#35 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 29 April 2008 - 06:33 AM

lol! How are you going to know the settings if you have a black screen.

Of course, you won't know. But having a hotkey which resets back to 640x480 should get a display again.

What is the last key. Is that the symbol above the Enter key where the " \" key is.

No it's an L, either capital or lowercase.

Regards,
Galapo.

#36 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 April 2008 - 08:49 PM

Galapp, gave your new baby a spin. Works really great, except for one little problem.

Your keyboard shortcuts arn't completely compatible with my german keyboard layout.
ctrl+shift++ dosn't work.
I guess the shift is the problem, it selects the other sign of the key.

btw. Had the idea of using the startup message of XP text hardware detection to display: "In case of a black screen, press ctrl+shift+L" :thumbup:

:lol:

#37 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 29 April 2008 - 09:59 PM

Galapp, gave your new baby a spin. Works really great, except for one little problem.


Great, good to hear!

Your keyboard shortcuts arn't completely compatible with my german keyboard layout.
ctrl+shift++ dosn't work.
I guess the shift is the problem, it selects the other sign of the key.


I'll install your keyboard and see if I can get it working.

btw. Had the idea of using the startup message of XP text hardware detection to display: "In case of a black screen, press ctrl+shift+L" :lol:


Do you know how to display this? I could add it as an option to the script interface if it's desirable?

Regards,
Galapo.

#38 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 29 April 2008 - 11:20 PM

I've uploaded a new version which hopefully takes care of the bug when trying to change up colour depth on German keyboards.

Regards,
Galapo.

#39 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 April 2008 - 11:42 PM

Do you know how to display this? I could add it as an option to the script interface if it's desirable?


Sure i know. You need to write it to txtsetup.sif [SetupData] LoaderPrompt="Whatever"

There even used to be a script, that would allow everyone to set this string to their liking.

:lol:

#40 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 29 April 2008 - 11:51 PM

Good, I'll add the option.

Regards,
Galapo.

#41 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 30 April 2008 - 12:40 AM

Done. New script uploaded.

Regards,
Galapo.

#42 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 02 May 2008 - 02:10 AM

At the request of MedEvil, changing colour depth is now altered by using ctrl+shift+left/rightarrow and taskmanager can be started by ctrl+shift+t. A new script has just been uploaded.

Regards,
Galapo.

#43 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 03 May 2008 - 04:16 AM

New version has been uploaded. Changes at the request of allanf:

- help message is displayed by commanline paramenters: /?, -?, -help, or help (take your pick).
- same message is displayed on program start
- message is not displayed if -hide is specified (as is done in the script)
- messages of resolution change etc are displayed a little longer

Regards,
Galapo.

#44 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 03 May 2008 - 05:26 AM

Thanks Galapo ... :lol: ...

#45 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 04 May 2008 - 07:10 AM

Again, I've uploaded a new version. At the request of MedEvil, I've set the process priority to high so that starting taskmanager happens more quickly when a system is running slowly when an application is crashing etc.

Regards,
Galapo.

#46 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 05 May 2008 - 11:54 PM

New version has been uploaded. Process priority is now left untouched. Specify '-high' as a commandline parameter to set the process priority to high. (The script interface now includes an option.)

Regards,
Galapo.

#47 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2008 - 12:54 AM

New version has been uploaded. Process priority is now left untouched. Specify '-high' as a commandline parameter to set the process priority to high.

Can we set the process priority now to what we want, or just high/nothing?

:lol:

#48 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 06 May 2008 - 01:14 AM

Can we set the process priority now to what we want, or just high/nothing?

No, but do you want that option? It's not difficult to implement.

Regards,
Galapo.

#49 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 06 May 2008 - 01:35 AM

I uploaded a new version supporting the following commandline arguments to set process priority: -low, -belownormal, -normal, -abovenormal, -high, or -realtime.

Regards,
Galapo.

#50 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2008 - 11:39 AM

Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users