Cookbook

Here are some recipies, tips and tricks that you can use with Assox.

Do you have your own recipe? Contact us to make it available for others too!

top

Display Control Panel menu in the Start menu

These commands make special directories in the Start Menu. If you are using classic Start menu, they will appear right on the top of the menu, otherwise on top of All Programs (tested on Windows XP).

to display Control Panel, use:
_dir_\Control Panel;_prompt_;no=|$STARTMENU\Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

to display Printers, use:
_dir_\Printers;_prompt_;no=|$STARTMENU\Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}

you can rename menus, for example
_dir_\Printers;_prompt_;no=|$STARTMENU\MyPrintersMenu.{2227A280-3AEA-1069-A2DE-08002B30309D}

top

Desktop shortcuts to Google Docs

With these shortcuts you'll be able to create new Google documents or launch Google Calendar.

New text document:

_shortcut_\New Google Doc=PATH_TO\FireFox.exe; http://docs.google.com/?action=newdoc

New spreadsheet:

_shortcut_\New Google Spreadsheet=PATH_TO\Firefox.exe; http://spreadsheets.google.com/ccc?new

New presentation:
_shortcut_\New Google Presentation=PATH_TO\Firefox.exe; http://docs.google.com/?action=new_presentation

Calendar:
_shortcut_\Google Calendar=PATH_TO\Firefox.exe; http://www.google.com/calendar/render

top

Auto start a dialup connection

These examples show how to auto start a dialup connection.
To make a desktop shortcut, replace "_startup_" with "_shortcut_".

without any cmd tool:

_startup_\DIALUP;_icon_;$SYSDIR\SHELL32.dll,88=$SYSDIR\rasdial.exe; NAME_OF_CONNECTION USERNAME PASSWORD

using Nircmd (no pop-up cmd window):
_startup_\DIALUP;_icon_;$SYSDIR\SHELL32.dll,88=PATH_TO\nircmd.exe; exec hide $SYSDIR\rasdial.exe NAME_OF_CONNECTION USERNAME PASSWORD

using Cax (no pop-up cmd window):
_startup_\DIALUP;_icon_;$SYSDIR\SHELL32.dll;88=PATH_TO\cax.exe; /ruh "$SYSDIR\rasdial.exe" NAME_OF_CONNECTION USERNAME PASSWORD

top

Attach file to new email using right-click context menu (The Bat! email client)

Context menu for zip files:
zip\Send with Bat!=PATH_TO\thebat.exe; /MAILU=Gmail;File="%1";EDIT

or using SendTo (works with multiple files too):
_sendto_\Send with Bat!=PATH_TO\thebat.exe; /MAILU=YOUR_ACCOUNT_NAME;File="%1";EDIT

top

Monitor installer from right-click context menu (Total Uninstall)

Launch Total Uninstall using the right-click context menu of exe and msi files:
exe;msi\Monitor with Total Uninstall=PATH_TO_TOTAL UNINSTALL\tu.exe

top

Send file to Skype contact

Example showing how to send a selected file to a Skype contact using SendTo menu:
_sendto_\Send file to Skype contact=PATH_TO\Skype.exe; /sendto:
(Yes, it's correct, _sendto_ does not want "%1")

top

Shortcut to Safely Remove Hardware dialog

A shortcut to open Windows Safely Remove Hardware dialog with custom icon, hotkey CTRL+ALT+F4, working dir "C:\Windows\system32".
IMPORTANT: do not remove this shortcut manually, instead run Assox REMOVE to clear it, otherwise Windows might not release the hotkey combination.

_set_\DES=|Open Safely Remove Hardware dialog, hotkey CTRL+ALT+F4
_set_\ICO=|$SYSDIR\SHELL32.dll,176
_set_\KEY=|CTRL+ALT+F4
_set_\DIR=$WINDIR\
_set_\RUN=$SYSDIR\RunDll32.exe; shell32.dll,Control_RunDLL hotplug.dll
_set_\NAME=|Unplug USB key
_shortcut_\$(NAME);_des_;$(DES);_icon_;$(ICO);_key_;$(KEY);_wdir_;$(DIR)=|$(RUN)

Alternatively, you can do the same in one line:
_shortcut_\Unplug USB key;_des_;Open Safely Remove Hardware dialog, hotkey CTRL+ALT+F4;_icon_;$SYSDIR\SHELL32.dll,176;_key_;CTRL+ALT+F4;_wdir_;$WINDIR\=|$SYSDIR\RunDll32.exe; shell32.dll,Control_RunDLL hotplug.dll

top

Integrating Assox in PStart

To run Assox on launching PStart, create a new item to Assox.exe and set Autorun to "on startup" on the Advanced tab. To run it silently, use the /S command line parameter.

Because Assox asks you for processing the safety file (if any), you should set AlwaysUnregFirst to 1 in Assox.ini. This tells Assox to process safety file without asking.

To remove Assox, create another Assox item in PStart (repeat steps above) but now use /unreg /S in the command line parameters.

To run this item every time you close PStart, edit item properties and set Autorun to "on exit" on the Advanced tab.

Here you can see a video of the above process.

top

Launching items on ADD or REMOVE runs

Assox can launch items on ADD or REMOVE runs. For example, you can install a context menu item when running Assox in ADD mode, and you can get rid of the context menu when executing Assox in REMOVE run. Because you can run batch files too, this feature greatly extends Assox capabilities.

In the following example LocateTarget add-on is installed and removed:

ADD starter (this line evaluates true on ADD run only)
_set_\LocateTarget_ADD;_f_;x;_if_;$UNREG .eq. 0=|PATH_TO\LocateTarget.exe; /install_regkey

REMOVE starter (this line evaluates true on REMOVE run only)
_set_\LocateTarget_OFF;_f_;x;_if_;$UNREG .eq. 1=||PATH_TO\LocateTarget.exe; /remove_regkey

Another example (installing-uninstalling ClipName shell extension, using Cax to hide cmd window):

_set_\ClipName;_f_;x;_if_;$UNREG .eq. 0=PATH_TO\Cax.exe; /ruh rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 PATH_TO\ClipName.inf

_set_\ClipName_OFF;_f_;x;_if_;$UNREG .eq. 1=PATH_TO\Cax.exe; /ruh rundll32 syssetup,SetupInfObjectInstallAction DefaultUnInstall 128 PATH_TO\ClipName.inf

top

Internet Explorer registry hacks (for ReREG addon)

Using these registry files, you can
  • disable Phishing Filter (IE7)
  • disable RunOnce (IE7)
  • standard toolbar above Address Bar (IE7)
  • set homepage to about:blank (all IE)
Put these .reg files to the ADD dir of the ReREG add-on and forget these IE annoyances!

 Download 

top

Replace built-in Task Manager with another application (ReREG addon)

With the help of this workaround you can replace the built-in Task Manager with your favorite process manager. Please note that you'll have admin rights to do this.

In this example I've used SystemExplorer (I recommend to download the portable version).

Replace
Save the contents of the block below as "Replace Taskmgr with SystemExplorer.reg" in the "ADD" directory of the ReREG plugin. Filename doesn't matter.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe] "Debugger"="\"$EXEDIR\\..\\..\\..\\SystemExplorer\\SystemExplorer.exe\""

You have to modify the last line to make the path point to your SystemExplorer.exe.
$EXEDIR returns the main directory of ReREG.exe, so in the example above my SystemExplorer directory is 3 directory levels up from my ReREG directory.

Restore
To restore Task Manager, save the contents of the following block as "Restore TaskMgr.reg" to the REMOVE directory of ReREG addon.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe]
"Debugger"=-

This time no need to change anything.

Editing Assox.ini
Of course, you have to tell Assox to run ReREG addon on ADD or REMOVE runs (if you haven't done that earlier).

To run ReREG in ADD mode, use this in your Assox.ini:
_set_\ReREG_ADD;_f_;x;_if_;$UNREG .eq. 0=|$(ReREG)

To run ReREG in REMOVE mode, use this:
_set_\ReREG_OFF;_f_;x;_if_;$UNREG .eq. 1=|$(ReREG); /remove

Tips
You can replace Windows Calculator with Calcute, or Windows Media Player with VLC media player, etc. If you have a keyboard with multimedia buttons, then you can take full advantage of this feature.