Sandboxie Hotkey

Utilities designed for use with Sandboxie
Post Reply
PaulaTheKoala
Posts: 3
Joined: Fri Mar 25, 2016 6:29 pm

Sandboxie Hotkey

Post by PaulaTheKoala » Fri Mar 25, 2016 6:37 pm

Due to the lack of support for a hotkey to terminate all running applications, I ended up doing it myself.
At first, I wrote a small tool to solve this problem, but it wasn't really necessary since I had Auto Hotkey installed, so I ended up turning it into an AHK script instead:

Code: Select all

	Sandboxie := NULL
	
	IfExist, C:\Program Files\Sandboxie\Start.exe
	{
		Sandboxie := "C:\Program Files\Sandboxie"
	}
	
	IfExist, C:\Program Files (x86)\Sandboxie\Start.exe
	{
		Sandboxie := "C:\Program Files (x86)\Sandboxie"
	}
	
	if (Sandboxie == NULL)
	{
		ExitApp
	}
	
	Menu, Tray, Icon, %Sandboxie%\SbieCtrl.exe, 11
	Menu, Tray, Tip, Sandboxie Hotkey (CTRL + F1)
	
	Menu, Tray, NoStandard
	Menu, Tray, Add, Exit
	
	^F1::
		Run, %Sandboxie%\Start.exe /terminate_all
	return
	
	Exit:
		ExitApp
	return
You must have AHK installed to use the script.
To use the script, paste the above code into notepad and save it as Sandboxie.ahk, double click the file to run it, use CTRL + F1 to terminate all running applications.

The script can be compiled into an EXE but since I'm new here and I don't know the rules on posting EXEs I decided not to.

Craig@Invincea
Sandboxie Support
Sandboxie Support
Posts: 3523
Joined: Thu Jun 18, 2015 3:00 pm
Location: DC Metro Area
Contact:

Re: Sandboxie Hotkey

Post by Craig@Invincea » Fri Mar 25, 2016 11:31 pm

Thank you very much!

PaulaTheKoala
Posts: 3
Joined: Fri Mar 25, 2016 6:29 pm

Re: Sandboxie Hotkey

Post by PaulaTheKoala » Fri Mar 25, 2016 11:53 pm

Craig@Invincea wrote:Thank you very much!
Sorry about making you have to approve it again, didn't know editing the post would do that. >_<

Craig@Invincea
Sandboxie Support
Sandboxie Support
Posts: 3523
Joined: Thu Jun 18, 2015 3:00 pm
Location: DC Metro Area
Contact:

Re: Sandboxie Hotkey

Post by Craig@Invincea » Fri Mar 25, 2016 11:56 pm

Not a problem!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest