Trust No Program
Reply to topic
Guest10


Joined: 27 Apr 2008
Posts: 4361
Location: Ohio, USA
Reply with quote
Actually, I just now found that one of my Firefox profiles and sandbox shows the border. Maybe I can find why the others do not.
View user's profileSend private message
Micahs


Joined: 26 Apr 2008
Posts: 32
Reply with quote
Anonymous wrote:
Micahs wrote:
If you only want to run borderGuard when you start the Sandboxie Control, I could make a launcher to run them both at the same time. Let me know.

It's what I would like exactly. Razz I set the service to manual.

But I don't know anything script's/lauchers (and all family...) about.

Shocked

Regards.
I created Launcher that will run as many apps as you put in the 'Launcher.txt' file. I've included an example Launcher.txt file to get you started. Please excuse the crudity of the icon, I just threw it together!

@Guest10
I don't know exactly why this would happen. I created another sandbox called 'test' to see if it handles them differently, and the class is 'Sandbox:test:ExploreWClass' running windows explorer. In the default sandbox, the classnames are changed to just 'Sandbox:' BorderGuard uses the '[#]' brand in the title and the changed classname 'Sandbox:' to determine if a window is sandboxed.

Here are screenshots of myWindowInfo for FF and IE7. Please post screenshots of myWindowinfo for the windows that borderGuard will not work on. Maybe we can sort this out.

myWindowInfo (Source)
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4361
Location: Ohio, USA
Reply with quote
Micahs wrote:
Maybe we can sort this out.
Here's what I found. When the border around the browser window doesn't show, if I right-click something in the browser window and choose Properties, the border shows around the Properties window. Also, if I use my mouse to move the entire browser window around a little, the border will then appear around the browser window. I made a couple of screen shots, but don't know if they provide anything useful, or if needed.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15008
Reply with quote
Michas wrote:
I don't know exactly why this would happen. I created another sandbox called 'test' to see if it handles them differently, and the class is 'Sandbox:test:ExploreWClass' running windows explorer. In the default sandbox, the classnames are changed to just 'Sandbox:' BorderGuard uses the '[#]' brand in the title and the changed classname 'Sandbox:' to determine if a window is sandboxed.


(Emphasis mine.) In the default sandbox DefaultBox, the class names should be Sandbox:DefaultBox:classname. This is how it is for me, and Guest10's screenshots also confirm this. I have no idea why you see just Sandbox:classname for DefaultBox, but it should not be this way.

_________________
tzuk
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4361
Location: Ohio, USA
Reply with quote
I think it's the "top 0" for the window position that is doing it. If I move my browser window down, below the top of the screen (when not sandboxed), then when running it sandboxed - with an empty sandbox - it seems to show the border OK when it opens. At least for this attempt, anyway.

The one Firefox profile that always seemed to work for me opens the browser window a little lower down from the top of the screen, than the other 2 profiles - which opened the browser window all the way at the top of the screen, as shown in my screen shots above.
View user's profileSend private message
Micahs


Joined: 26 Apr 2008
Posts: 32
Reply with quote
@tzuk
Well, you're just WRONG, WRONG, WRO...oh so right. Embarassed I was going on memory, and in that department I am apparently a few bits short of a byte. Knowing now that the window is tagged with its sandbox will make it easy to have a different border color for each sandbox. I will add this. Thanks! BTW, is there an environment string or reg entry or something else that gives the sandbox location?

@Guest10
You are absolutely right about the 'top 0' being the culprit! I have the taskbar at the top of my screen so it was never an issue for me. Try it now. -borderGuard-
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4361
Location: Ohio, USA
Reply with quote
Micahs wrote:
Try it now.
The new version does cure the problem, if the browser window opens at the very top of the screen. I did encounter one unexpected result. Until the sandboxed browser window opens, and becomes the default window, I get a temporary border around 2 sides of the "My Computer" Desktop icon, which is located at the top left corner of my Desktop. That icon is at the very top of the screen.
View user's profileSend private message
Border option question
dynarx


Joined: 03 Apr 2007
Posts: 174
Location: New South Wales, Australia
Reply with quote
Micahs, thank you for BorderGuard, very cool. Smile

I was wondering - for those of us who like to run our browser/prgs maximised, would you consider/is it possible to add the option of a border just *inside* the app window?

Cheers!

Me Dynarx


Last edited by dynarx on Wed Apr 30, 2008 1:25 pm; edited 1 time in total
View user's profileSend private message
Micahs


Joined: 26 Apr 2008
Posts: 32
Reply with quote
@Guest10
I tried to reproduce this and it did - but only the first time I ran my browser sandboxed. It won't do it reliably for me. Does it do this every time you start your browser?
I think this is because Windows sometimes reports a window as the active window before that window is fully loaded. This makes the x,y,w,h vars read screwy. I will have to look into this and add some more filtering and stuff.
[EDIT] Come to think of it, I just turned off detection of hidden widows (added before for visual reasons.) Try this new version.

@dynarx
This puts the border inside the window when maximized. Because Windows reports the size a little bigger than it seems to be you lose some of the border (it's outside of the viewable area) but I think this is good because it prevents the border from totally covering the titlebar, scrollbars, etc.
borderGuard
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4361
Location: Ohio, USA
Reply with quote
Micahs wrote:
Try this new version.
This new version works fine for me, without seeing the temporary border that I saw before. Nice job.
View user's profileSend private message
BorderGuard
dynarx


Joined: 03 Apr 2007
Posts: 174
Location: New South Wales, Australia
Reply with quote
Micahs, the maximised version works a treat, thankee kindly for your (rapid!) efforts!

Many thanks,

Me Dynarx
View user's profileSend private message
Micahs


Joined: 26 Apr 2008
Posts: 32
Reply with quote
Cool Cool
View user's profileSend private message
BorderGuard
dynarx


Joined: 03 Apr 2007
Posts: 174
Location: New South Wales, Australia
Reply with quote
Just for the record, I thought I'd share my BG settings. I think my layout gives SB its own unique look without being too intrusive, plus it no longer resembles that other (*cough* Gr**nB****r) product quite so much... Wink

[Ini]
;When dragging a sandboxed window, hide the border during drag
hideBorderOnDrag=1
;round the border corners (0-1) - Off, purely for CPU cycles
fancyCorners=0
;What color to make the border for the active window (RRGGBB) - Yellow for sand of course Smile
borderColor=0xFFFF00
;Border transparency for active windows (0-255, with '255' being opaque)
borderTrans=150
;How thick to make the window border (0-?)
borderThickness=8

[Localization]
menuSettings=Settings
menuAbout=About
menuExit=Exit

Cheers all,
Me Dynarx
View user's profileSend private message
semerra


Joined: 17 Apr 2008
Posts: 21
Reply with quote
Is it possible to modify borderguard so that the left edge of the browser window is not colored ?
This would enable it to work with the MileWideBack extension which i use in Firefox.

MileWideBack is an extension that allows you to navigate back and forth in the browser by left-clicking or
right-clicking on the left edge of the browser window. This works best when the browser window is maximized
in which the left edge becomes the left most part of the screen. Then, to navigate back and forth, simply "
throw" the mouse to the left until it can go no more and then click in that space.

edit: disregard this request. I started using the FireGestures extension instead.
View user's profileSend private message
Micahs


Joined: 26 Apr 2008
Posts: 32
Reply with quote
@semerra
Yep, the latest version has a setting in the ini file called 'leftOffset'. Use this to make the left side of the border inset. A value of 5 on my system leaves 1 pixel of the left frame of the window free. To make the left side of the border gone altogether, set 'leftOffset' equal to 'borderThickness'.
[EDIT] Oops, I didn't see your edit until after I posted. Oh well, I'll leave it there in case others want it.

This version also allows having a different border color for each sandbox. To add a red border for a sandbox called 'test' put this in your ini file:
Code:
[test]
borderColor=0xFF0000

You can use color names instead of RGB values for any colors, default or per sandbox.
EG: red, blue, green (see HERE for complete list.)

borderGuard
View user's profileSend private message
Border sandboxed indicator
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 2 of 8  

Use the RSS feed to watch this topic for replies
  
  
 Reply to topic  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,652,677 times since June 2004