Deen Hameed | 1 Jun 2008 08:20
Picon

Re: Code Accelerator

--- In power-pro@..., "Sheri" <sherip99 <at> ...> wrote:
>
> Oops, thanks for letting me know. Try the new version just posted.
> 
> Regards,
> Sheri
>
Thanks Sheri. Will give it a go.

Best Regards,
Deen
01/06/2008 16:20:42

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:power-pro-digest@... 
    mailto:power-pro-fullfeatured@...
(Continue reading)

Sheri | 1 Jun 2008 15:12
Picon

Re: Wallpaper changer/quality

--- In power-pro@..., "das_e_i" <das_e_i <at> ...> wrote:
> 
> Just encountered another bug, the desktop wouldn't repaint anymore. 
> My function appeared to get called correctly, as bmp file got updated 
> properly. Restarting powerpro fixed it then...
> I'm still wondering, could you provide me with some info on this dll 
> stuff Bruce?
> What calling conventions are used, how it should be declared, if temp 
> path is actually of any relevance here...programming language of 
> Powerpro could be helpful too maybe.
>

I've just experienced this too - set for 1 minute wallpaper changes in
a directory of jpgs. It worked for awhile (desktop was getting
updated) but now the desktop is not getting changed even though the
bmp file in pprofolder is still updating each and every minute.

Regards,
Sheri

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

(Continue reading)

David Troesch | 1 Jun 2008 18:30
Favicon

Re: Re: Wallpaper changer/quality

> I've just experienced this too - set for 1 minute wallpaper changes in
> a directory of jpgs. It worked for awhile (desktop was getting
> updated) but now the desktop is not getting changed even though the
> bmp file in pprofolder is still updating each and every minute.

I've always had an intermittent problem with the jpg function. At 
unknown times it would create a 0 byte converted file, and the powerpro 
would spawn a could not display wallpaper error. It was intermittent, 
and I was never able to find the source of the problem because I 
couldn't debug where the problem was, I'm sure it's a problem in the 
.dll somewhere.

The weird thing was, it would give an error on a .jpg. The only thing 
that would get the jpg converter working again was a computer reboot at 
which point it would convert the problem .jpg so it wasn't a problem 
with a weirdly formed picture file....the only thing I could think of 
was the dll was being loaded into memory and at some point some 
variable, or function wasn't left properly and further calls to the dll 
caused errors.

David Troesch  |  Atlanta, GA  |  ICQ# 2333123
"It is easier to fight for ones principles than to live up to them."
Funstuff: When did my wild oats turn to prunes and all bran?

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/
(Continue reading)

dedebaykus | 1 Jun 2008 20:17
Picon
Favicon

creating date named folders and copying files?

Hi

I want to be able to select some files and copy them to date named
folders automatically. For example I would select bunch of files, run
the command and it would copy-move all the files to a folder with
todays date(date format should be adjustable). Actually the way I
would like is copying files to new folders based on files`s creation
dates. So powerpro would read file dates and create folders
accordingly(naming from file dats) then move all the files to
corresponding folders.

Or I could select some files and run the command. Command would bring
a calendar and I would choose a custom date from the calendar as well.

Are these possible?

thanks

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
(Continue reading)

das_e_i | 1 Jun 2008 20:28
Picon
Favicon
Gravatar

Re: Wallpaper changer/quality

--- In power-pro@..., "Sheri" <sherip99 <at> ...> wrote:
>
> --- In power-pro@..., "brucexs" <bswitzer <at> > wrote:
> >
> > Sheri's latest works for me. Your dll upload does not. I checked
> > where the error message was coming from and it was actually the
> > LoadLibrary that was feeling so for some reason the dll uploaded
> > is not accepted by LoadLibrary.
> >
> 
> I installed the new runtime package for apps developed on VS 2008 
and
> now das_e_i's posted dll works.
> 
> <http://www.microsoft.com/downloads/details.aspx?familyid=D5692CE4-
ADAD-4000-ABFE-64628A267EF0&displaylang=en>
> 
> It would probably be better if the dll were compiled under VC 5 or 6
> just so it could use the same runtime libraries as PowerPro and 
PProConf.
> 
> Regards,
> Sheri
>

Cool that you figured that out, makes sense actually :)
I don't have an older Visual Studio at hand, but I welcome anyone to 
go ahead and compile it.

------------------------------------
(Continue reading)

Sheri | 1 Jun 2008 22:20
Picon

Re: Wallpaper changer/quality

--- In power-pro@..., "das_e_i" <das_e_i <at> ...> wrote:
> 
> Cool that you figured that out, makes sense actually :)
> I don't have an older Visual Studio at hand, but I welcome anyone to 
> go ahead and compile it.
>

Apparently it can be done with 2005 and 2008 but it doesn't sound easy:

<http://nn1234.wordpress.com/2008/04/11/vc-90-msvcrtdll-windows-95/>

<http://kobyk.wordpress.com/2007/07/20/dynamically-linking-with-msvcrtdll-using-visual-c-2005/>

Using different runtime versions in a dll and the exe that loads it
can cause issues, though I wouldn't think they would apply here. You
can't for instance allocate or free memory or pass handles between them.

Regards,
Sheri

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

(Continue reading)

Sheri | 1 Jun 2008 22:33
Picon

Re: Wallpaper changer/quality

--- In power-pro@..., David Troesch
<davidt.pproyg2007 <at> ...> wrote:
>
> The weird thing was, it would give an error on a .jpg. The only
> thing that would get the jpg converter working again was a
> computer reboot at which point it would convert the problem .jpg
> so it wasn't a problem with a weirdly formed picture file....the
> only thing I could think of was the dll was being loaded into
> memory and at some point some variable, or function wasn't left
> properly and further calls to the dll caused errors. 

Probably anything like that could be exacerbated by using different
runtime versions between the exe and dll. Strange though, after it
quits changing the displayed wallpaper, it will do one change if I
change configurations and come back to the original pcf (but it
doesn't resume changing once a minute - just probably refreshes the
!pow_tmp.bmp from disk which should already be showing). Simply
choosing another jpg file in Configure also doesn't work (but no error
message is generated, and a new bmp is correctly created).

Regards,
Sheri

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

(Continue reading)

Sheri | 2 Jun 2008 06:14
Picon

Re: creating date named folders and copying files?

--- In power-pro@..., "dedebaykus" <dedebaykus <at> ...> wrote:
>
> Hi
> 
> I want to be able to select some files and copy them to date
> named folders automatically. For example I would select bunch of
> files, run the command and it would copy-move all the files to a
> folder with todays date(date format should be adjustable).
> Actually the way I would like is copying files to new folders
> based on files`s creation dates. So powerpro would read file
> dates and create folders accordingly(naming from file dats) then
> move all the files to corresponding folders.

You could do that with an entry your Context command list. The entry
would send _file_ to a script/function.

The script would form a folder name from the existing path joined to
the file's creation date  Then it would test to see if the folder
already exists and if not create it. Then copy the file into the
proper folder. To start the script, you would select one or more files
in Windows explorer and click the entry you made in the Context
command list. The script function would then run for each of the
selected files.

The relevant script functions are:
file.folder
file.getdate
select
join or ++
exec.newfolder
(Continue reading)

brucexs | 2 Jun 2008 21:12
Picon
Favicon

Re: Wallpaper changer/quality

> Just encountered another bug, the desktop wouldn't repaint anymore. 
> My function appeared to get called correctly, as bmp file got 
updated 
> properly. Restarting powerpro fixed it then...

Don't why this would be but you could take PPro out of the picture by 
making your stil32jp.dll into a plugin with a service to reset the 
wallpaper to a supplied jpg file.  From within this servce, call your 
convertBMP and then SystemParametersInfo with SPI_SETWALLPAPER (going 
from memory on that the parameter).  Then use a timer or scheduled 
event from PowerPro to call your service to manage wallpaper changes.

Of course, you could also write your plugin in a separate dll to be 
purer.  But PowerPro allows plugins in the main powerpro folder, so 
using stil32jp.dll as a Q&D soln should work.

> I'm still wondering, could you provide me with some info on this dll 
> stuff Bruce?
> What calling conventions are used, how it should be declared, if 
temp 
> path is actually of any relevance here...programming language of 
> Powerpro could be helpful too maybe.
>

Don't this is your issue.  Its C and standard C calling.

------------------------------------

Attention: PowerPro's Web site has moved: http://www.ppro.orgYahoo! Groups Links

(Continue reading)

dedebaykus | 3 Jun 2008 00:26
Picon
Favicon

Re: creating date named folders and copying files?

Thank you. It sounds possible but I just do not have much experience
with scripting and programming. I will see what I can do

--- In power-pro@..., "Sheri" <sherip99 <at> ...> wrote:
>
> --- In power-pro@..., "dedebaykus" <dedebaykus <at> > wrote:
> >
> > Hi
> > 
> > I want to be able to select some files and copy them to date
> > named folders automatically. For example I would select bunch of
> > files, run the command and it would copy-move all the files to a
> > folder with todays date(date format should be adjustable).
> > Actually the way I would like is copying files to new folders
> > based on files`s creation dates. So powerpro would read file
> > dates and create folders accordingly(naming from file dats) then
> > move all the files to corresponding folders.
> 
> You could do that with an entry your Context command list. The entry
> would send _file_ to a script/function.
> 
> The script would form a folder name from the existing path joined to
> the file's creation date  Then it would test to see if the folder
> already exists and if not create it. Then copy the file into the
> proper folder. To start the script, you would select one or more files
> in Windows explorer and click the entry you made in the Context
> command list. The script function would then run for each of the
> selected files.
> 
> The relevant script functions are:
(Continue reading)


Gmane