Jump to content











Photo
- - - - -

BGInfo


  • Please log in to reply
38 replies to this topic

#26 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2009 - 10:38 PM

1) selecting "display properties-->none"

I'm not sure what that means.

2) "refresh screen" (==>so it cleans the screen of previous info)

Could this be done by a call like this:
rundll32.exe user32.dll,UpdatePerUserSystemParameters

Regards,
Galapo.

#27 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 27 October 2009 - 10:42 PM

I'm not sure what that means.

right click on desktop, click properties, on "Display Properties" select "Desktop" at the top, on "Background" list select "(None)"
===>
is there a way to do that with command or sth else?


ups: I guess there is :> registry, I will check and test the command line rundll line you gave :>.

#28 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2009 - 10:54 PM

Try this from command prompt:

reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f

rundll32.exe user32.dll,UpdatePerUserSystemParameters

Regards,
Galapo.

#29 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 27 October 2009 - 11:00 PM

Could this be done by a call like this:

rundll32.exe user32.dll,UpdatePerUserSystemParameters


I cleaned hcku\control panel\desktop - wallpaper value to switch setting to none.
than I use rundll32 line you wrote, an error screen came.

Error in user32.dll
Missing entry:updateperusersystemparameters



#30 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 27 October 2009 - 11:03 PM

than I use rundll32 line you wrote, an error screen came.

You must specify 'UpdatePerUserSystemParameters' and not updateperusersystemparameters!

#31 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 27 October 2009 - 11:10 PM

:confused1: ;)

now all homes32 needs is adding this to runbginfo
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f

rundll32.exe user32.dll,UpdatePerUserSystemParameters


#32 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 28 October 2009 - 01:50 PM

:confused1: :unsure:

now all homes32 needs is adding this to runbginfo

reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f

rundll32.exe user32.dll,UpdatePerUserSystemParameters

the thing I don't like about this is that it wipes the wallpaper. ;) and I can image people, myself inculded not being very happy that my wallpaper was scrapped just to display some basic info when the program is perfectly capable of displaying said info on top of my wallpaper. I appreciated the testing and suggestion though. don't get me wrong! ;)


that being said I found the problem! but not the root cause (yet!) its been right in front of our faces the whole time! :unsure:
its easiest to see by looking at this image http://img35.imagesh...92/bginfo1b.jpg or you can refresh your desktop and rerun bginfo and compare the screenshots.





see it now? the temp path gets changed from full expanded path (shown in a offline regedit of the software hive before boot) to old DOS 8.3 style path (what it shows in windows environment var)the 2nd and remaining times. the odd thing of it is if you don't have BgInfo startup automatically and manually start it after LiveXP boots it will use the 8.3 format right away. so it would seem that after the 1st time *something* accesses the expanded temp variable windows crunches it down to 8.3

#33 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 28 October 2009 - 11:12 PM

the thing I don't like about this is that it wipes the wallpaper. :unsure:

ups, yes you are right, i missed that since i dont use wallpaper :confused1:

Here are 2 solutions:
1) LiveXP specific solution:
LiveXP uses
wallpaper
name,
so you can reg add HKCU\Control Panel\Desktop\Wallpaper "wallpaper"
make refresh - rundll32.exe user32.dll,UpdatePerUserSystemParameters
and execute bginfo again :unsure:.

2) Universal solution:
Bginfo saves original wallpaper name with extension (before it modifies). Lets call it Homes32Wallpaper.bmp
you can read the original wallpaper file name from bginfo registry (HKCU\software\winternals "Wallpaper" "Homes32Wallpaper.bmp")
than remove the extension and regwrite it to desktop wallpaper value (reg add HKCU\Control Panel\Desktop\Wallpaper "Homes32Wallpaper")
make refresh - rundll32.exe user32.dll,UpdatePerUserSystemParameters
start bginfo
I hope it works this time ? :unsure:

see it now? the temp path gets changed from full expanded path (shown in a offline regedit of the software hive before boot) to old DOS 8.3 style path (what it shows in windows environment var)the 2nd and remaining times. the odd thing of it is if you don't have BgInfo startup automatically and manually start it after LiveXP boots it will use the 8.3 format right away. so it would seem that after the 1st time *something* accesses the expanded temp variable windows crunches it down to 8.3


This is not odd, a gift (FIX) from billy the door, same behaviour on all windows I know, Windows from Billy automatically FIXES %Temp% variable to 8.3.
On your windows (host os), try this:
Echo %temp%
you should get something like that:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
So this line works properly without need of quotes
copy %systemroot%\explorer.exe %temp%
As a result, you can see lots of batches (.cmd, .bat) around internet that use %temp% without quotes ;)

On LiveXP, this fix made after boot (Microsoft\Windows\CurrentVersion\Run) (Thanks to Galapo again and again), so we can use default temp directory easly with the existant batches.

And bginfo slightly mistaken at this point :unsure:, it gets the value before value is fixed to 8,3

I dont think this is an issue at all, bginfo shows right info either with or without 8,3 fix, Besides, this does not have anything about bginfo refresh screen issue, bginfo would still cause garbage on screen if somebody changes values (ex: ip, free space). I hope 2) solution works well on runbginfo ;)

#34 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 29 October 2009 - 02:56 PM

2) Universal solution:
Bginfo saves original wallpaper name with extension (before it modifies). Lets call it Homes32Wallpaper.bmp
you can read the original wallpaper file name from bginfo registry (HKCU\software\winternals "Wallpaper" "Homes32Wallpaper.bmp")
than remove the extension and regwrite it to desktop wallpaper value (reg add HKCU\Control Panel\Desktop\Wallpaper "Homes32Wallpaper")
make refresh - rundll32.exe user32.dll,UpdatePerUserSystemParameters
start bginfo
I hope it works this time ? :confused1:

this is one of the options I am considering and is easy to implement as I already have the functions in place from the "edit" mode.

#35 SavageSS

SavageSS
  • Members
  • 7 posts
  •  
    Australia

Posted 30 October 2009 - 02:40 AM

Thanks,
I found on at least VistPE the the refresh option is a must to get the IP or any network info. This seems to load after BGInfo.

Only issue with the refresh is when it does the refresh it collapses the start menu.

Cheers

#36 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 02 November 2009 - 11:02 PM

Thanks,
I found on at least VistPE the the refresh option is a must to get the IP or any network info. This seems to load after BGInfo.

Only issue with the refresh is when it does the refresh it collapses the start menu.

Cheers

I'm glad you find it useful.
sorry. not anything I can do about the start menu refreshing. that happens due to the system call BGInfo uses to reload the desktop.

#37 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 08 November 2009 - 09:20 PM

v4 uploaded. see 1st post for details.

Many thanks to lancelot for his time spent troubleshooting in LiveXP :dubbio:

#38 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 29 October 2010 - 04:20 AM

well its been a long time coming but new version is out! see the 1st post as there are lots of good changes and fixes!

Regards,

Homes32

#39 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 02 May 2011 - 06:16 PM

small update. v7b updates RunBGInfo to correct some cosmetic issues with the "Waiting 00:ss.." tooltip when using Aero themes.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users