OpenWinClass/OpenIpcPath configuration for Dummies?

Ideas for enhancements to the software
Post Reply
RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

OpenWinClass/OpenIpcPath configuration for Dummies?

Post by RonC » Sat Oct 06, 2007 6:44 am

:?: Could we please have some practical examples as to what the Open Win Class command can (or cannot) do, to be given on the definition page of the same name? Something that would apply to the following?

I'm just beginning to use this command now to see if some old and minor (but irritating) problems can be corrected (e.g., loss of ability to see changes of International Keyboards (in System Tray icon) for anything running beneath soffice.exe process).

I'm not sure from the currently-available description if I should be setting the parameter equal to a name that doesn't work, or a name that does work. Seems it (Keyboard change indicator) works in any non-sandboxed window that has focus, so if the latter, does it make any difference which name of a working-window that I choose?

[edit] I now see that this thread has a lot in common with a matter now under discussion in Anything Else, and if Tzuk (who is actively working to solve the other problem) agrees this to be the case, I will simply watch to see how the other thread is brought to a conclusion. [/edit]

for details, refer to: Sat Oct 06, 2007 1:31 pm, Post subject: New old problem?
Last edited by RonC on Tue Oct 09, 2007 8:48 am, edited 4 times in total.

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

Post by RonC » Sat Oct 06, 2007 7:46 am

I'm trying to 'hack' it without really knowing what I'm doing. :oops:
Now I'm using WinSpy while running StarOffice and the International Keyboard System Tray indicator is not working (i.e., not cycling as the shortcut key is toggled).

I used WinSpy on StarOffice and got a class name of
Sandbox:DefaultBox:SALFRAME - but don't know --
:?: if all this supposed to go into OpenWinClass, or just the last part. I suspect only the last part is actually coming from StarOffice.

Or, should I be getting a class name from a window showing normal function? But, which one, as the toggle key works normally in any other (unsandboxed) window. :?
A few examples would be most appreciated. :)

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

Change of forum to Problem Reports?

Post by RonC » Sat Oct 06, 2007 9:45 am

This thread should be moved to Problem Reports.

It originally started as a request for a new feature, but then I studied the documentation and realized the feature is already there, but I didn't know how to use it. At that point the original post was edited, but I am unable to move the thread.

dlguild
Posts: 230
Joined: Sat Apr 21, 2007 8:30 pm
Location: Pennsylvania

Post by dlguild » Sat Oct 06, 2007 10:42 am

RonC - you may want to try the "Task Monitor" tool found on this link instead:

http://www.leinensoft.com/software/system.htm

Just download it, unzip it & run (no installation needed). It will open a window with all running processes. Pick the one of interest, right click & select "Properties". At the top (first line) will be the window class associated with the process.
Dan

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

Post by tzuk » Sat Oct 06, 2007 7:55 pm

The best way to find out what is needed for OpenWinClass is to enable Sandboxie Trace:

GuiTrace=ad

Then look in the debug console for the class names that appear in (GD) messages, and add them as OpenWinClass.

WinSpy (or equivalent) is handy to make sense of the window class name and get an idea which process owns the window for the class, and then decide if that process may be relevant to the problem.
tzuk

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

OpenWinClass info

Post by RonC » Sun Oct 07, 2007 4:50 pm

Thanks to all for more than enough information on how to identify the Window Class name. I now have one internal and two external utilities that will give this. :)

However, as Tzuk has shown with ANDRE's similar problem, three of the sandboxie.ini configuration lines for the solution need knowledge of proper parameters for the OpenIpcPath command, which at this point I know much less about than OpenWinClass. :( I am assuming my solution requires the same, or at least some knowledge of this command?

:?: Perhaps the next version will (I hope - :D ) do all/most of this for us, or at least give pointers in the right direction?

If not, I'd like to continue this thread with more questions. I hope my problem is similar enough, to the one already solved, that by following the same steps I may get the correct parameters for my own situation.

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sun Oct 07, 2007 5:13 pm

Now hold on, I'm a little confused. How are you doing these keyboard shortcuts? Is it with a program you're using to setup custom hot-keys?

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

Post by tzuk » Sun Oct 07, 2007 9:24 pm

RonC, (1) are you talking about the standard Windows language bar? And (2) is Star Office the only program having trouble switching languages?
tzuk

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

Post by RonC » Tue Oct 09, 2007 9:26 am

tzuk wrote:RonC, (1) are you talking about the standard Windows language bar? And (2) is Star Office the only program having trouble switching languages?
(1)Yes. But to be sure I am describing it accurately:
From Windows Help, it is accessed as follows: Control Panel -> Regional Options -> Input Locales Tab. Then, on that box, Hot keys for input locales. Enable indicator on taskbar [System Tray] box is checked. The keyboard shortcut is the default Key sequence as pre-defined for Switch between input locales.

(2) Yes.
Whenever (the sandboxed) StarOffice gets the 'focus,' the Switch between input locales Key sequence becomes disabled: it fails to toggle the System Tray language indicator. (The dialog box says the indicator is on the Taskbar, but this would seem to be a typo.)

When the 'focus' is changed to any non-sandboxed program, the toggle 'key sequence' resumes normal function. If StarOffice is run un-sandboxed, normal function resumes. This is not practical for more than a brief test, of course, as the browser and E-mail are then exposed to the Internet without protection.

:D What next?

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

Post by tzuk » Tue Oct 09, 2007 11:55 am

In (2) I meant to ask, what if you run Notepad sandboxed, or IE sandboxed, do they switch languages fine?
tzuk

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

Post by RonC » Fri Oct 12, 2007 5:45 am

tzuk wrote:... what if you run Notepad sandboxed [does it] switch languages fine?
No, the problem with Windows' Notepad is identical, when that program is running sandboxed.

New information just noticed while testing: When Notepad is running sandboxed, the pop-up menu on the keyboard selection System Tray icon becomes non-functional, in addition.

By this, I mean a left-click on the System Tray icon displays a menu with all active international keyboard choices (I have three). You should be able to switch keyboards here. Whichever keyboard was selected before sandboxing began remains in effect, no matter which choice is selected. This is, of course, when a sandboxed Notepad has the focus.

If you can't duplicate this, should I send a copy of my sandboxie.ini?

OS: Windows2000

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

Post by tzuk » Sat Oct 13, 2007 2:02 pm

I have multiple languages too, and no problems at all switching them. Why don't you enable the trace (IpcTrace=ad and GuiTrace=ad) and post your log here. (But do try to keep it short and manageable.)
tzuk

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

Post by RonC » Sat Oct 13, 2007 2:24 pm

Thanks, will do. If it's OK, I will do this for Windows Notepad, rather than StarOffice, so it's easier to duplicate if you see something suspicious. Presumably, when that is fixed, other things may work, as well.

Since you presumably did something similar for a toggle-key problem in ZoomText (and came up with the solution), some details will be appreciated: I think there are step-by-step logging directions, in one or more locations, somewhere on the forum? If this was touched on more than once, do you recall the best and simplest reference for me to go by? A link to that would be most appreciated.

I tried the logging function once before with poor results (didn't know what I was doing or looking for). :cry: At that time I was wondering, should I have been hitting the Hot Key in order to get a meaningful log? Hit it just once? Toggle repeatedly? And then ... exit and analyze?

I'll be happy to follow a link to the best reference and follow that procedure, but please let me know if I should add to, or depart from, whatever was written in the past to best zero in on my type of problem.

:wink: This thread was titled "OpenWinClass/OpenIpcPath configuration for Dummies" for good reason, and I'll include GuiTrace in that as well. I'll need that reference in order to get started.

RonC
Posts: 245
Joined: Thu Jul 27, 2006 2:07 pm
Location: Funchal, Madeira

Clarification needed --

Post by RonC » Sat Oct 13, 2007 2:54 pm

tzuk wrote:I have multiple languages too, and no problems at all switching them.
Actually, what is happening on my system goes a bit beyond that.

:?: Just to make certain, do you also mean your System Tray icon keeps in correct sync as you switch languages, and the left-click System Tray language icon pop-up menu works correctly also?

OS: Windows2000

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

Post by tzuk » Sat Oct 13, 2007 4:19 pm

I'm not seeing anything different when I control the language icon from a sandboxed program, compared to an unsandboxed one: No problems.

What you should do is run DbgView, start Notepad sandboxed, then clear the DbgView display (Ctrl+X) and finally, switch to sandboxed Notepad and try to switch languages. If you see anything new getting logged in DbgView, great, post it here. If nothing is logged, we'll have to figure out some other way to tackle this.
tzuk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest