Border sandboxed indicator

Utilities designed for use with Sandboxie
Guest

Post by Guest » Wed Feb 04, 2009 3:10 am

Micahs wrote:@Guest
I'm not sure what the problem could be. What os are you using? The new version uses SetWindowPos to size, move, and position the borders. This is really the only major change in the way it does its thing. If you are using Vista it may have an issue with this api call. My dad has a Vista laptop, so I can do some testing. Anyone else having this issue?
Duh... Can't believe I didn't think to reference the OS... :oops:

I'm just on XP SP3. No Vista. And nothing funny in Sandboxie either - just using the default config with it.

No funny video stuff either. Just a standard ATI adapter using production drivers.

FYI, the problem still continues with the new version you just posted (that uses the SWP_FRAMECHANGED flag).

Just so you don't think I'm crazy, here's a shot with that latest version:

Image

Based on borderGuard.ini, I should also be seeing 0x00FF00 color borders with a thickness of 6 and a transparency of 200.

But as you can see, borderGuard is definitely working because reversed windows display fine (though that causes my CPU to spike too much).

No borders regardless of the settings I try though. And again, the previous pre-multi borderGuard releases always worked fine and - probably more importantly - still do.

Whether or not the sandboxed window is in focus also doesn't make any difference. Neither does thickness, transparency, or overlap settings. I've also tried other colors and using words for the color parameter (like "red").

Anything else I can try or any other info you want?

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Wed Feb 04, 2009 2:57 pm

Micahs wrote:Yeah, if you think it's good enough, sure. Thanks! (Assuming I can get the bugs out!)
I'm going to take that as a yes. Updated:

http://www.sandboxie.com/index.php?ContributedUtilities

Note that in this case I did not copy the file to this server, instead I linked to it, because it seems that you're still working on it. Let me know if/when you want me to host the file here.
tzuk

Micahs
Posts: 32
Joined: Sat Apr 26, 2008 12:26 am

Post by Micahs » Wed Feb 04, 2009 7:13 pm

HERE is another version. I changed something or other. See if that made any diff. BTW, is your sandbox at the default location? (Application Data folder)

@tzuk
Thanks! I'll let you know when it has my toothy grin of approval.

Guest

Post by Guest » Thu Feb 05, 2009 2:50 am

Micahs wrote:HERE is another version. I changed something or other. See if that made any diff. BTW, is your sandbox at the default location? (Application Data folder)
Yippe! Lovely bright green borders again with this version. :D

Thanks very much for the quick fix!

If you're still interested: Yes, I was/am using the default sandbox location.

Out of curiosity, now knowing this released fixed the problem for me, what was the issue?

Micahs
Posts: 32
Joined: Sat Apr 26, 2008 12:26 am

Post by Micahs » Thu Feb 05, 2009 3:27 pm

Guest wrote:what was the issue?
You weren't trying hard enough!

Just kidding. I changed the way it handles the variables that contain the border information. I think it was related to your having just one sandbox. I have many, so the problem never manifested itself for me. Glad it works! The latest version has the added feature of being able to work even if it can't find the sandbox "nest" (keep in mind that I have not added the api stuff yet.)

Micahs
Posts: 32
Joined: Sat Apr 26, 2008 12:26 am

Post by Micahs » Fri Feb 06, 2009 3:18 am

This version is a beta with support for background images for the borders.
Image
I am not happy with it yet, but I thought I would post it for the triggerhappy. I am still working on this - looks promising so far though.

The default image is "Caution Tape" but it can be changed in the ini file. The entry "borderBackground" is valid for either the global or per-sandbox sections. In per-sandbox sections, specify "none" to disable the global setting for that sandbox.

The main problem right now is that when I change the region setting to match size changes, the image flickers and the background color shows momentarily. This is not the best way to do it, so another method will be used instead later. I just wanted to show what is coming... (Hopefully!)

Guest

Post by Guest » Sat Feb 07, 2009 2:55 am

Yes, I use Sandboxie in a very basic way. Just one sandbox used to safely run software I download before attempting to install it live. :)

The latest version looks even better. I love that black and yellow caution tape border.

Thanks again for your help - and for the awesome utility!

Mark_
Posts: 111
Joined: Wed Dec 31, 2008 3:48 pm

Post by Mark_ » Sun Feb 08, 2009 5:29 pm

out of curiosity, do you create layered windows where you set a key transparency color?

Micahs
Posts: 32
Joined: Sat Apr 26, 2008 12:26 am

Post by Micahs » Wed Feb 11, 2009 3:21 pm

Yes to the layered windows.
No to the trans colors for now (can't figure it out. Might have something to do with my images.)

I started using an image control the same dimensions as the border, but the background color flashed through when it was resized. Then I blitting the background directly to the border, but retention was an issue (the background color still blinked through when the window was redrawn and if a window moved over the border, it erased the image leaving the background color.) I switched to using UpdateLayeredWindow and that works great, but just a little slow (keep in mind my computer is only 950mhz.)

I'm still having issues with it, I broke one thing trying to fix something else! :roll: Also, the transparency with UpdateLayeredWindow is not working. Not a huge deal, but annoying. When I get something worthwhile, I'll post again.

Guest

Post by Guest » Mon Apr 20, 2009 6:20 am

This is a great script! Thank you so much!

Guest

Post by Guest » Wed May 06, 2009 3:00 am

This is a great script. Unfortunately it doesn't work on my dual monitor setup.

I have two 1280-1024 monitors. Monitor 1 is on the left and Monitor 2 is on the right. Monitor 2 is designated as main monitor (so the start menu is on the right hand side).

BorderGuard_multi (v1.1.1) displays borders only on Monitor 2. There are no borders on Monitor 1.

Any idea what could be the problem?

Micahs
Posts: 32
Joined: Sat Apr 26, 2008 12:26 am

Post by Micahs » Fri May 08, 2009 3:16 pm

I only have one monitor, so I'll have to look at the code and see where the problem could be. I'll get back to you.

BTW, does the orig version work on multiple monitors?

User

Post by User » Thu Jul 16, 2009 2:59 pm

1. I have a problem with the exe. The border goes out of line when I maximize the window.
I use the default setting.
I have dual monitors. Is it the cause of problem?

Image Click to see a larger image.

2. I would like to put the border inside the window not outside. This is how sandboxie looks in the appearance setting but it works in the active window only. I would like to see borders for all sandboxed windows. Is it possible?

greensnowy
Posts: 4
Joined: Thu Jul 09, 2009 3:22 pm

Post by greensnowy » Sat Jul 25, 2009 7:12 pm

I like this utility since it draws borders for all sandboxed windows instead of only on the active window.

BorderGuard_Multi v1.1.1 (Feb 5)
Sandboxie services start with Windows
BorderGuard shortcut in user\Start Menu\Programs\Startup

I have a few different sandboxes, and each of them is configured to a different color in borderGuard.ini. After starting up Windows, the borders are always drawn with the default border color, no matter which sandbox they belong in. The only way I can get it to redraw the correct color is a manual save in borderGuard.ini with no changes to the file.

Thanks for your help.

Micahs
Posts: 32
Joined: Sat Apr 26, 2008 12:26 am

Post by Micahs » Sun Aug 23, 2009 6:58 pm

Sorry for the delay. Without the notification feature it's hard to keep track without checking every once in a while. I forgot to check back. I'll look into this. I only have one monitor so I can't test directly. I'll look at the code.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests