You are here

R31 Hack (More than just EXEs)

20 posts / 0 new
Last post
madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
R31 Hack (More than just EXEs)

I stumbled on a nice little hack.
I'm sure half of you know this already, but it was new to me.

I'm using R31 with my modded "theme example" and wanted to add a menu item to a shortcut (LockXP.lnk) I have to lock down the OS:

Target:%windir%\system32\rundll32.exe user32.dll,LockWorkStation
Start in:%windir%

This is sitting in \\PortableApps\LockXP

So while roaming around in R31 I noticed a *.pafData file for my "X-Setup Portable" link.
Humm...
It had the simple needed format.
Copied, changed the name, changed the file to read to:
[PAFDATA]
ExePath=..\LockXP\LockXP.lnk

And now I have "LockXP" in my PAM R31 Menu...
So far I've done this to LNK and BAT files.

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2006-11-24 18:06
Link to any file

My menu can also link to any file you want it to and it does it from the gui browse option without having to edit config files manually.
Haven't tested it specifically with .lnk files though but it should work.
You can also link to documents and images and video files directly from my menu.

"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)

madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
The only issue I have with

The only issue I have with that menu is the lack of theme modification support. In my R31 theme mod I use a background with the button removed, my Close and Minimize are in the upper right and the EJECT is in the upper left, the "lblDriveName" is now a banner below EJECT and "lblDriveSpace" is moving soon.

None of these mods ported over to your menu. I tried to turn off the Drive Name and am missing my buttons.

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2006-11-24 18:06
Which version?

which version of the menu did you try?
the latest version should be compatible with the ModR31 themes.
the only difference is my menu doesn't have the text for the drive space, the buttons are movable.
It also has the ability to use custom icons, just save the icons you want to use to \data\icons then select it from the add shortcut menu.

"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)

madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
1.1 Beta... I deleted the

1.1 Beta...

I deleted the folder, re-downloaded the zip from your site for a reinstall.
Ran. Closed. Copied my theme over. And tried fresh with the same issue.
I was/am not running R31 at the same time; sole launch of SPM.

It uses my background.jpg, but it's not pulling the THEME.INI changes. None of the three buttons show up. The close trigger in the bottom right is moved to the top right in mine; that did not move (I can click a blank spot to close the menu / hidden button). I moved the drive label to the top; I still shows on bottom. The Drive Space was moved to the far left to where the Drive Label used to be; it did not move.

I pulled your yahoo from the site if you want me to email you my and your files to see what I'm working with.

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2006-11-24 18:06
yes please

yes please send the files

"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)

madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
Emailed my R31 and Smithtech

Emailed my R31 and Smithtech this morn to the email listed in CONTACTS...

Thanks,
mc

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2006-11-24 18:06
1.1.0.5

Figured it out.
I never uploaded 1.1.0.5 which sucks because it means I lost some changes as well as fixing the theme issue.
Anyway I fixed the code for the theme, one thing though, R31 uses CB_Close in the ini file and my menu uses imgClose you will have to change the tags in the theme.ini, same for the eject button.
Look at the default theme for an example.

"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)

madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
Closer...

but still having issues. With 1.1.0.5 installed. The INI reworked to this code below I can relocation the triggers for CLOSE and EJECT (and they work relocated), but none of the images display and the MINIMIZE trigger still doesn't work or show the icon.

;==Custom Buttons==

[CustomImages]
0=imgEject
1=imgHide
2=imgClose

[imgEject]
Height=18
Width=69
Left=366
Top=544
OnCLick=CustomImageExitClick
Path=Theme\EjectButton.jpg
PathToApp=\PortableApps\EjectScript\App\ExjectScript\EjectScript.exe

[imgHide]
Height=18
Width=18
Left=358
Top=10
Path=Theme\MinimizeButton.jpg
OnClick=pmnuitmOptionsShowHideMenuClick

[imgClose]
Height=18
Width=18
Left=380
Top=10
Path=Theme\ExitButton1.jpg
OnClick=imgCloseClick

I've tried four or five variations on this. Removing the CustomImages marker, removing paths, etc. So far they only thing I haven't tried is changing the JPGs to BMPs.

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2006-11-24 18:06
Lost

unfortunately I think the custom eject and close buttons were lost with the original 1.1.0.5 code. I will have to double check to be sure.
Also my menu doesn't have a "Minimize" button, the menu hides automatically when you click away from it.
I may add it though to the next release, I can see a use for it if you turn off the "Auto Hide".
I will try and look at the code tomorrow night to see if the custom eject and close buttons are there or not.
Although if I remember correctly I used either .ico or .bmp files so the images could have "rounded" or transparent edges. And they load automatically if they are found in the theme folder.
Either way I will have to check to code tomorrow after work.

EDIT: Checked the code, the custom close and eject button images is definitely not there, either are some of the other changes I made to the "original" 1.1.0.5 code.
which really sucks one of the changes took me hours to figure out.
I will have to readd the custome images option for the close and eject buttons, just don't know when I will have time.

"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)

madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
Easy

Sorry for the delay... This week I am the chicken.

Easy enough... I'm still working on getting all the "I's and T's" down, working with TrueCrypt volumes vs devices, and working on a LISP program (still)

I know all about loosing versions. Sucks. Nothing worse than spending hours on "practice".

thetrueholly
Offline
Last seen: 14 years 2 months ago
Joined: 2007-10-07 10:45
can you please tell me what

can you please tell me what i have to do that the R30 i use can also show any files and items and not only exe's in the menu without having to edit config files manually??

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2007-01-12 19:22
.

Why dont you put this?

[PAFDATA]
ExePath=%windir%\system32\rundll32.exe user32.dll,LockWorkStation

I think it will do the same...

madcadder
Offline
Last seen: 14 years 8 months ago
Joined: 2007-11-16 09:07
The only reason for the LNK

The only reason for the LNK is to run custom icons.
I also have a "RestartXP" and a "ShutDownXP" that pulls
from the shell32.dll for their icons.

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2007-01-12 19:22
.

Ah... right Smile

thetrueholly
Offline
Last seen: 14 years 2 months ago
Joined: 2007-10-07 10:45
wallpaper

what do i wrong??? the wallpaper-function of the R31-Mod doesn't work at me! i renamed the bmp-picture as described, putted it into the data-folder but nothing happened when i opened the PAM. the desktop-wallpaper didn't change and stayed the same windows-wallpaper as usual Sad

NeoRame
NeoRame's picture
Offline
Last seen: 4 years 2 weeks ago
Joined: 2007-05-11 09:12
r31 works fine. you must set

r31 works fine. you must set your wallpaper to:
X:\PortableApps\PortableAppsMenu\Data\

and you can set for every theme an own wallpaper.

for Default theme the wallpaper must called DefaultWallpaper.bmp
NOT Default Wallpaper.bmp or default_walpaper.bmp...

and as example for Neo Crystal the wallpaper called Neo CrystalWallpaper.bmp

greetz
NeoRame

EDIT:
dont forget to set "Enable Wallpaper Swap" in the option menu!!!

Hell was full, so I came back!!!
Sorry for my lousy English!!!

thetrueholly
Offline
Last seen: 14 years 2 months ago
Joined: 2007-10-07 10:45
doesn't work yet with me

i have no idea why but it still doesn't work. so once again from the beginning on: when i extract the downloaded zip-package of the r31-mod, it creates automatically a folder called "PortableAppsMenuMod31" with the pam.exe, data-, app-folder and so on. this "PortableAppsMenuMod31"-folder i rename now to "PortableAppsMenu". then i create another folder called "PortableApps" in which i put now the "PortableAppsMenu"-folder including data, app.... then i rename my *.bmp-picture to DefaultWallpaper.bmp and copy it to the Data-folder (NOT the subfolder \Theme or \Theme\Default!). although i start now the PAM with default skin and obviously also enable wallpaper swap in the option, the desktop-theme stays the same xp-style as usual and nothing happens. what is wrong, heeelp??? must the bmp-file have a certain size or what else might be the error?

Steve_Storm
Offline
Last seen: 1 year 7 months ago
Joined: 2008-01-23 17:05
I created a new folder in

Z:\PortableApps\PortableAppsMenu\App\DefaultData\ and and named it Wallpaper and stuck my DefaultWallpaper.bmp in that folder there and it works fine .
Maybe you could give that a try.

NeoRame
NeoRame's picture
Offline
Last seen: 4 years 2 weeks ago
Joined: 2007-05-11 09:12
for right installing the mod

for right installing the mod r31 look here:
http://ptc.kain-planet.de/tutorial.php and than follow my wallpaper instruction. Wink

NeoRame

EDIT

i saw you are german if you need more infos in german please contact me via contact form (at the same page where you can find the tutorial)

Hell was full, so I came back!!!
Sorry for my lousy English!!!

Log in or register to post comments