You are here

PAM (latest from John released) with additions

31 posts / 0 new
Last post
iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
PAM (latest from John released) with additions

This is the latest version of my additions to the PAM. These include the unfinished eject when exit to the now addition of changing wallpaper. It will change the wallpaper to one in "App/DefaultData/Wallpaper/MyWallPaper.bmp". It will change it back to the previous wallpaper after exiting. I know the eject might be bothersome to some(an extra message box on closing), but I might get different results and be able to fix it. Anyone wanting thier hands on a newest "beta" of some needed changes, please try this out. Lastly, I almost forgot, the right click on the menu items don't do anything, despite they are labeled "Delete Icon" and "Delete Application".(I program that after I fix the eject thing.) Thanks to everyone who helps!

eyecreate

EDIT:This file, if you didn't know, replaces the one in "portableapps/portableapps menu", not the root of the drive. Also, If you don't want the background changing, then just delete or rename your bitmap. Nothing will load then.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Source

Where's the source?
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
oops

Sorry, the top is updated with link.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I always get

error code 5.
Whats that?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
That's the error code for

That's the error code for the safely remove code I put in. You can ignore it for now, but the error code actually means:"File access denied" I hope to get it solved really soon.
John Haller:I know you said you were planning on putting this in a upcoming release, but have you actually tried implementing it? If so, please spread some light on the subject.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
I changed the eject code to

I changed the eject code to use CM_Request_Device_Eject, but it claims to have completed successfully, while the device is not ejected. Any pointers here?

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

dannyoneill
Offline
Last seen: 17 years 2 months ago
Joined: 2006-12-28 12:23
Isnt CM_Request_Device_Eject

Isnt CM_Request_Device_Eject a .net code and not a Delphi one.

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
it is a windows api code.

it is a windows api code.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

El Salvador
Offline
Last seen: 14 years 2 months ago
Joined: 2005-12-09 10:10
Advices

Two advices:
- If you want use ini files, don't use unit Registry. There is an a unit called IniFiles with class TIniFile in Delphi (John uses it).
- In procedure sbtnApplication1MouseDown you use two variable: iControl and delinfo. For first variable, is better called I (standard coding Smile ) and second variable is useless.

Good luck. Smile

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
the delinfo variable is to

the delinfo variable is to be put to use, so it is useless as of now. It will hold info for which app to delete. On using the Registry unit, I thought that becuase I was editing the registry, that I would need it included. Would it work still if I replaced it with IniFiles?

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

El Salvador
Offline
Last seen: 14 years 2 months ago
Joined: 2005-12-09 10:10
Answers

the delinfo variable is to be put to use, so it is useless as of now. It will hold info for which app to delete.
Ah ok, but you use variable global and not local.
On using the Registry unit, I thought that becuase I was editing the registry, that I would need it included. Would it work still if I replaced it with IniFiles?
Ah, I read TRegIniFile in your source and I thought you use this class to modify a inifile. Anyway is better to use TRegistry class to modify windows registry:

  Reg := TRegistry.Create;
  try
    with Reg do
    begin
      RootKey := HKEY_CURRENT_USER;
      if OpenKey('Control Panel\Desktop',False) then
      begin
        OldDesktop := ReadString('Wallpaper');
        wallpaper.Caption := OldDesktop;
      end;
      NewDesktop := Pchar(ExtractFileDir(Application.ExeName) + '\App\DefaultData\Wallpaper\MyWallPaper.bmp');
      if FileExists(newdesktop) then
        WriteString('Wallpaper',NewDesktop);
    end;
  finally
    Reg.Free;
  end;
iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
thanks, El Salvador, I'll

thanks, El Salvador, I'll try to change it to the non-INI way.

btw, delinfo is global becuase it will need global scope.

Does anyone have an idea on the CM_Request_Device_Eject problem, as I seem stuck at that right now.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

didilalalaport
Offline
Last seen: 16 years 7 months ago
Joined: 2006-11-22 01:16
wallpaper change

how this feature work? so far I did not figure out how to. any tips ?

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
this feature will change the

this feature will change the wallpaper IF you have a bmp file in PortableApps\PortableAppsMenu\App\DefaultData\Wallpaper called MyWallpaper. Also, would people want the feature that i put in to make the menu only appear once. Meaning that you couldn't have two menus up at once. This would prevent accidental clicking, for those who are click happy and also would prevent autorun problem(it autoruns multiple times) you have on modded u3 drives(last doesn't apply to everyone)

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

didilalalaport
Offline
Last seen: 16 years 7 months ago
Joined: 2006-11-22 01:16
need more infos

I already know where to put the wallpaper to swap but what should i do to make it actualy work, what config file on the source do I have to modify in order to activate it?

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
if you download the

if you download the portableappsmenu exe i have at the top, then it will do that...i also am trying to get auto eject feature that isn't going so good...
btw, that exe needs to be in portableapp\portableappmenu to work, not the root folder. does that explain things?

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

didilalalaport
Offline
Last seen: 16 years 7 months ago
Joined: 2006-11-22 01:16
no success

I done like describe with no success for the wallpaper change,I did have hard time to download it do. with regular standard download engine from the web browser the download never complete and stop at around 6XX Kb out of 1.8 Mb , tried it several times and was able to get it via download accelerator?

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
I hope it isn't my files are

I hope it isn't my files are corrupted, I re-up them somewhere else... Also, I added the device pull-out things from andyduke's mods. Now the wallpaper will revert even if you just pull your drive out. I hope to add the device eject I planned later.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
I am making some changes

I am making some changes (alot) to the menu again, and I wanted to know a bit about the menu internals. One thing in specific, is I know that you can't delete folders while the menu is up. Is there a way in the menu to "free up" these folders so they can be deleted? I tried ClearButtons(), but it doesn't change anything. Otherwise, I should, before long, have deletion of just icons, deletion of actual apps, wallpaper enable/disable, and quick/simple app maker built in.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

SmithTech
SmithTech's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-11-24 18:06
At this point why not just

At this point why not just wait till John releases the next beta or version?
I was supposed to be last week, hopefully it will be this week.

For those who have fought for it, freedom has a flavor the protected will never know.

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Lets hope

his ears stop to slow him down...

"Physics is like sex. Sure, it may give some practical results, but that's not why we do it." - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
LOL

Sounds like he's Dumbo when you say that. "Quick, his ears are creating too much drag!"
----
Ryan McCue
Cube Games
There are only two states in Australia: Queensland and Drunk
If you have any questions about the comment above, or anything, please don't hesitate to ask.

"If you're not part of the solution, you're part of the precipitate."

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
I can add John's stuff in

I can add John's stuff in when he releases it, but why should I wait for it? Is there something related to my problem that will be fixed or what? I actually wouldn't mind combining some of these features in with the version John has, but I guess that's up to him to decide...
Simeon: What does your comment mean? Do you think i should slow down or that I need to do something else?

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

SmithTech
SmithTech's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-11-24 18:06
I think I remember reading

I think I remember reading something about the menu locking the folders being fixed in the next release.
Or maybe that was the exe's in which case its already fixed.

For those who have fought for it, freedom has a flavor the protected will never know.

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
That would be useful...what

That would be useful...what else is supposed to be in it? I don't want to spend time duplicating things. It seems I read in another post with John that he made his own wallpaper swapper too.

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

SmithTech
SmithTech's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-11-24 18:06
I'm not really sure, just

I'm not really sure, just remember reading that part, or I think I remember reading it anyway ...

For those who have fought for it, freedom has a flavor the protected will never know.

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

iamacooldude
Offline
Last seen: 16 years 1 week ago
Joined: 2006-11-29 19:18
well, so that John and

well, so that John and others can see what I have so far, here is what I have (doesn't have all features).

whole folder(needs icons I made and updated things)
http://www.mediafire.com/?05h21a2jld5
source+folder
http://www.mediafire.com/?beevutkzwxv

Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
My post

was totally and entirely about John.
He has some ear infection slowing him down by preventing him from working on a PC or sleeping for long periods of time.
Thats the reason for him being "late" and not having posted the new menu-beta already.
If I were you and not too impatient, I'd wait for his beta.
"Physics is like sex. Sure, it may give some practical results, but that's not why we do it." - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

benway
Offline
Last seen: 15 years 1 week ago
Joined: 2007-05-10 11:23
Sweet!

Having the wallpaper switch automagically on insertion is fantastic, thanks! Is there a way to have it NOT stretch, though? I find myself having to bring a picture into PhotoShop and "enlarge canvas" so the image isn't distorted.

Great otherwise!

benway

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 1 month ago
Developer
Joined: 2007-01-10 19:25
Love it! I use will use it

Love it! I use will use it with SmithTech's Yin-Yang Wallpaper and Theme.

"America has never been an empire. We may be the only great power in history that had the chance, and refused – preferring greatness to power and justice to glory."
George W. Bush

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

subgator
Offline
Last seen: 15 years 5 months ago
Joined: 2007-01-30 23:40
Wallpaper & Eject Features

I have recently downloaded the version of the menu with the wallpaper switching utility, and found that when the feature is active, it causes eject issues with Windows XP. I am not a programmer, and I have no idea how the code works. However, I have seen many threads on the eject feature, and I have found that with this feature on, Windows won't loose its hold on the USB drive after the menu is closed. Turning off the feature removes this issue. I have no idea if this information will help with the eject feature, nor do I know if anyone has noticed this yet, but I thought that it may be of use. If this is already fixed, please excuse my imposition.

Topic locked