Question regarding popup.rc Thread last updated on 2005-08-21 17:28:31

Posted by member 260330 on 2005-08-20 21:14:33

I was wondering if you can have more than one popup.rc file. It seems that one of my themes have a customized popup.rc, which is different from my other various themes. I just wanted to know if there is any way to enable seperate popup.rc files so when i switch themes, I don't have to switch the popup.rc files too.

Here's the text for a more understandable illustration:

************************************************
************************************************
************************************************
Customized popup.rc file:
************************************************
************************************************
************************************************
ComplexSimplicity_UseMainPopup "TRUE"
include "$themesdir$complex_simplicity\config\popups\main.rc"

;------------------------------------------------------------------------------
; sample popup config file: edit according to preference
;------------------------------------------------------------------------------

*Popup !New !Popup ;DO NOT DELETE THIS LINE

*Popup "file manager" "$FileManager$"
*Popup "text editor" "$TxtEditor$"
*Popup !Separator
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

*Popup "litestep" Folder
*Popup "litestep folder" !execute ["$FileManager$" /e,"$LiteStepDir$"]
*Popup "themes folder" !execute ["$FileManager$" /e,"$ThemesDir$"]
*Popup "about" !About
*Popup "recycle" !Recycle
*Popup "quit" !execute ["$FileManager$" /e,"$LiteStepDir$"][!Quit]
*Popup !Separator
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

*Popup "change themes" Folder
*Popup "install theme" !execute ["$LiteStepDir$utilities\LSThemeInstaller.exe"]
*Popup "refresh list" !execute ["$LiteStepDir$utilities\LSThemeInstaller.exe" "/refresh"]
*Popup !Separator
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
include "$ThemesDir$themeslist.rc"
*Popup ~Folder

*Popup "utilities" !PopupFolder:"$LitestepDir$utilities\"

*Popup "edit config" Folder
*Popup "step.rc" !execute ["$TxtEditor$" "$LiteStepDir$step.rc"]
*Popup "theme.rc" !execute ["$TxtEditor$" "$ThemeDir$theme.rc"]
; *Popup "modules.ini" !execute ["$TxtEditor$" "$LitestepDir$modules.ini"]
*Popup !Separator
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
*Popup "personal files" !PopupFolder:"$PersonalDir$"
*Popup ~Folder

; *Popup "litestep docs" !PopupFolder:"$LitestepDir$lsdocs\*.html"
*Popup "module docs" !PopupFolder:"$ModulesDir$docs\|$LitestepDir$NLM\*.html"
*Popup ~Folder


IF Win9x
*Popup "programs" !DynamicFolder:"$Programs$"
ELSE
*Popup "programs" !DynamicFolder:"$Programs$|$CommonPrograms$"
; *Popup "admin tools" !DynamicFolder:"$AdminToolsDir$"
ENDIF


IF QuickLaunch
*Popup "quicklaunch" "!DynamicFolder:$QuickLaunch$*.lnk"
ENDIF


*Popup "system" Folder

; *Popup "shells" Folder
; *Popup "explorer" !execute ["$LiteStepDir$utilities\SetShell.exe" "explorer.exe"]
; *Popup "blackbox" !execute ["$LiteStepDir$utilities\SetShell.exe" "d:\blackbox\blackbox.exe"]
; *Popup ~Folder

*Popup "my computer" !PopupMyComputer
*Popup "control panel" !PopupControlPanel
*Popup !Separator
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
*Popup "logoff" !LogOff
IF WinXP
*Popup "switch user" !SwitchUser
ENDIF
*Popup "shutdown" !ShutDown
*Popup "run..." !Run
*Popup "recycle bin" !execute ["$FileManager$" "$bitbucket$"]
IF Win9x
*Popup "system.ini" "system.ini"
ENDIF
*Popup "regedit" regedit
*Popup ~Folder


*Popup "tasks" !PopupTasks


;*Popup "manage windows" Folder
; *Popup "tile horizontal" !TileWindowsH
; *Popup "tile vertical" !TileWindowsV
; *Popup "cascade" !CascadeWindows
; *Popup "minimize all" !MinimizeWindows
; *Popup "restore all" !RestoreWindows
;*Popup ~Folder


;*Popup "recent files" !PopupRecentDocuments


*Popup ~New ;DO NOT DELETE THIS LINE








************************************************
************************************************
************************************************
Regular popup.rc file:
************************************************
************************************************
************************************************
;------------------------------------------------------------------------------
; sample popup config file: edit according to preference
;------------------------------------------------------------------------------

*Popup !New !Popup ;DO NOT DELETE THIS LINE

*Popup "file manager" "$FileManager$"
*Popup "text editor" "$TxtEditor$"
*Popup !Separator
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

*Popup "litestep" Folder
*Popup "litestep folder" !execute ["$FileManager$" /e,"$LiteStepDir$"]
*Popup "themes folder" !execute ["$FileManager$" /e,"$ThemesDir$"]
*Popup "about" !About
*Popup "recycle" !Recycle
*Popup "quit" !execute ["$FileManager$" /e,"$LiteStepDir$"][!Quit]
*Popup !Separator
;¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

*Popup "change themes" Folder
*Popup "install theme" !execute ["$LiteStepDir$utilities\LSThemeInstaller.exe"]
*Popup "refresh list" !execute ["$LiteStepDir$utilities\LSThemeInstaller.exe" "/refresh"]
*Popup !Separator
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
include "$ThemesDir$themeslist.rc"
*Popup ~Folder

*Popup "utilities" !PopupFolder:"$LitestepDir$utilities\"

*Popup "edit config" Folder
*Popup "step.rc" !execute ["$TxtEditor$" "$LiteStepDir$step.rc"]
*Popup "theme.rc" !execute ["$TxtEditor$" "$ThemeDir$theme.rc"]
; *Popup "modules.ini" !execute ["$TxtEditor$" "$LitestepDir$modules.ini"]
*Popup !Separator
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
*Popup "personal files" !PopupFolder:"$PersonalDir$"
*Popup ~Folder

; *Popup "litestep docs" !PopupFolder:"$LitestepDir$lsdocs\*.html"
*Popup "module docs" !PopupFolder:"$ModulesDir$docs\|$LitestepDir$NLM\*.html"
*Popup ~Folder


IF Win9x
*Popup "programs" !DynamicFolder:"$Programs$"
ELSE
*Popup "programs" !DynamicFolder:"$Programs$|$CommonPrograms$"
; *Popup "admin tools" !DynamicFolder:"$AdminToolsDir$"
ENDIF


IF QuickLaunch
*Popup "quicklaunch" "!DynamicFolder:$QuickLaunch$*.lnk"
ENDIF


*Popup "system" Folder

; *Popup "shells" Folder
; *Popup "explorer" !execute ["$LiteStepDir$utilities\SetShell.exe" "explorer.exe"]
; *Popup "blackbox" !execute ["$LiteStepDir$utilities\SetShell.exe" "d:\blackbox\blackbox.exe"]
; *Popup ~Folder

*Popup "my computer" !PopupMyComputer
*Popup "control panel" !PopupControlPanel
*Popup !Separator
; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
*Popup "logoff" !LogOff
IF WinXP
*Popup "switch user" !SwitchUser
ENDIF
*Popup "shutdown" !ShutDown
*Popup "run..." !Run
*Popup "recycle bin" !execute ["$FileManager$" "$bitbucket$"]
IF Win9x
*Popup "system.ini" "system.ini"
ENDIF
*Popup "regedit" regedit
*Popup ~Folder


*Popup "tasks" !PopupTasks


;*Popup "manage windows" Folder
; *Popup "tile horizontal" !TileWindowsH
; *Popup "tile vertical" !TileWindowsV
; *Popup "cascade" !CascadeWindows
; *Popup "minimize all" !MinimizeWindows
; *Popup "restore all" !RestoreWindows
;*Popup ~Folder


;*Popup "recent files" !PopupRecentDocuments


*Popup ~New ;DO NOT DELETE THIS LINE


**********************************************************
The first two or so lines are noticably different. Any suggestions?

Posted by member 1 on 2005-08-20 22:36:32 link

uhhh...does the theme work?

Posted by member 248213 on 2005-08-20 22:53:35 link

uhhhhh... The popup.rc you are talking about is the personal popup, right?

If so it should load for any (OTS2) theme...

Did you use Omars installer?

Posted by member 333 on 2005-08-21 01:28:15 link

uhhhhhhh... sorry, I just wanted to say uhhhhhhh...

Posted by member 12025 on 2005-08-21 02:07:01 link

fractal: Complex Simplicity currently edits the popup.rc file to implement a custom right-click popup. Hopefully Complex Simplicity will have an updated release sometime soon, since the problem of editing personal\popup.rc has been fixed.

Now, that bit done, what, OP, do you actually want to do? Give an exampe or two of the behavior you want; because I can think of at least three ways (and the three do not have to be exclusive) to interpret your question.

Posted by member 212670 on 2005-08-21 03:18:19 link

What do you mean fixed?

Posted by member 248213 on 2005-08-21 04:13:22 link

Why would a theme edit the popup.rc!!!

you can just add this instead: *jDeskMButton2 [.none;!none;!PopupThemeSomething;!none] ;right-click popup menu

???

Posted by member 212670 on 2005-08-21 04:30:29 link

Does that override the *jdeskmbutton2 in the personal.rc? If so, does it work for both omar's rc3 and xstep build?

Posted by member 248213 on 2005-08-21 04:49:54 link

Dunno, Either way overwriting that (1)line would be better than overwriting the entire !popup

Posted by member 212670 on 2005-08-21 05:10:02 link

True... although themes should never touch anything in the \personal folder in the first place, of course.

Posted by member 248213 on 2005-08-21 05:18:01 link

True.

Lets smite teh Complex Simplicity maker!!!

Posted by member 12025 on 2005-08-21 14:59:57 link

fixed: if you load mzscript after the popup module, and have it make a bang called !popup...done. Just give that script one line, to exec ANOTHER popup, and you've replaced the OTS2 one, without editing any files, or breaking OTS2. Thus far, there just does not appear to have been a release of a newer version that incorporates this.

Posted by member 248213 on 2005-08-21 17:25:43 link

Would that work with xStep???... I suppose it would actually...

ps: I used to do that, I think...

Posted by member 212670 on 2005-08-21 17:28:31 link

Nice, works perfectly. Think I'll have to mess with it in my next theme.