Universal Viewer QuickView script

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2majkinetor !
According to this picture you posted, it shouldn't work in Обшие документби, My Documents, My documents trio.
But on Data(D), System(C).. and any other partition, it should work.
Exactly.
Works on C:, D:, Общие документы, Мои документы.

PS
One problem: when I in Общие документы, I cannot goto C: (but can goto D: then to C:). But it's minor.

PPS
Ctrl-W is not good choice. It's hotkey to close current tab in TC and NetCaptor.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2 Alex.

Txh for quick response. I am using the same alghorithm in QuickView.

It is not very sophisticated, but it is instantious, and works perfectly on hard disk folders witch is most important. I also added support for My Documents since that is the only virtual folder except Desktop that may be of interest to users. All other virtuals inside My Documents (MY Pictures, My this and that..) should also be handled by this. When I find the way to retreive the localised name of Desktop I will add Desktop too. You can investitate with Registry Monitor what is happening when you open Open dialog if you have time. I deducted this way localized string for all other virtuals, but Desktop is special, and I don't have localized verision of Windows.

This is very good news. That means that QV script doesn't work at your place, in dialogs, for some other reason witch is probably trivial. I will send you debug version. I am currently rewriting the script from scrap to something more organised. I will also work on make-up today.

l8r
when I in Общие документы, I cannot goto C: (but can goto D: then to C:).
I don't understand. What prevents you to go to C ?
Ctrl-W is not good choice. It's hotkey to close current tab in TC and NetCaptor.
You can set the hotkey you want. That is only default. I had to change default ALT W since it is problematic if you release W before ALT. In that case ALT will grab the menu of active appliaction and Favmenu will lose focus while in creation, so you are not able to use it with keyboard.
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

This is very good news. That means that QV script doesn't work at your place, in dialogs, for some other reason witch is probably trivial. I will send you debug version.
I'll wait.
I don't understand. What prevents you to go to C ?
Script. I choose C: in script (previously added to its menu) and noth happens. I choose D:(prev added to menu) and it goes to D:.
//You can reply to this in FavMenu topic.
You can set the hotkey you want. That is only default.
Ah, OK.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

New test version.

- Fixed installation folder recognition
- Quick View will handle termination of dialog and TC
- Quick View will be docked to windows it is attached
- Some options (edit the start of the code)
- Code rewriten to support merging. When I finish, I will add docs about how to achieve that.

TO DO:
- Handle "on-top" window state when TC or dialog is moved to background.

Code: Select all

	QV_HotKey = ^q                ; set the hotkey
	QV_Options_Width  := 500  ; for dialogs: set width 
	QV_Options_Height := 0      ; for dialogs: set height, 0 means equal to dialog height

	QV_Timer := 50                 ;  set smaller value (>=10) for smoother windows moving
2 Alex
Can you add another option that will enable/disable resizing.

I will use it this way:
1. If TC is active forbid resizing
2. If dialog is active let user resize the window if he wants

I will create tomorrow debug version for you to see why it doesn't work with your dialogs. It may be because of unicode, but here it works in that case. I have 1 french file though, with their e', witch didn't display until I removed that e. On the other hand, Cyrilic works fine here ?!. I will check that tomorrow.


Download:

www.r-moth.com/code/QuickView.rar
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2 Alex
Can you add another option that will enable/disable resizing.
I can add option not to disable window border (+caption).
Is window border/caption in dialogs OK for you?
have 1 french file though, with their e', witch didn't display until I removed that e.
I can add msg handler with "Open *Unicode* name" parameter. You'll can use it under NT. Do you need it?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

See Viewer 1.4.7.1 at homepage.
Readme:

Code: Select all

1. WM_COPYDATA message: pass data to Viewer.

  a) "Open ANSI filename" command:
  dwData = 100
  cbData: ignored
  lpData: pointer to ANSI filename (zero-terminated)

  b) "Open Unicode filename" command:
  dwData = 101
  cbData: ignored
  lpData: pointer to Unicode filename (Unicode zero-terminated)


2. Commandline parameters:

  Filename        - Open Filename at start.
                    Other parameters should not be specified!

  /Q              - Start Viewer in "Quick View" mode:
                    menu is hidden, hotkeys and message boxes are disabled.

  /QB             - Hide window border+caption.
                    Useful in addition to /Q parameter.
                    If both /Q and /QB params are specified, then only Alt+F4 key can close Viewer.
tosbsas
Senior Member
Senior Member
Posts: 428
Joined: 2003-12-19, 13:12 UTC
Location: Lima, Perú
Contact:

Post by *tosbsas »

which homepage??

On componentpage ist old version

Ruben
A New Generation transformed by the Power of God
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2tosbsas
which homepage??
http://www.totalcmd.net/plugring/ATViewerExe.html
of course.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2 Alex


Can you hide toolbar button when running in /Q mode ?
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2majkinetor !
What toolbar button? I haven't a toolbar here.
Only menubar.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Taskbar button... sorry.
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2majkinetor !
I'll try to add it.

You should try to make auto-resizing of Viewer when TC is resized. It's must have.
Last edited by Alextp on 2006-07-14, 11:51 UTC, edited 1 time in total.
tosbsas
Senior Member
Senior Member
Posts: 428
Joined: 2003-12-19, 13:12 UTC
Location: Lima, Perú
Contact:

Post by *tosbsas »

Alextp wrote:2tosbsas
which homepage??
http://www.totalcmd.net/plugring/ATViewerExe.html
of course.
Oh sorry - checked on your own page (:-)) Althought on toralcmd it says 1.4.7 download is 1.4.7.2

Ruben
A New Generation transformed by the Power of God
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2tosbsas
My page is only for D component.
V1.4.7.2 is the 1.4.7 with small fix and /QB cmd parameter for majkinetor.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

>>You should try to make auto-resizing of Viewer when TC is resized. It's must have.

I did that, I will upload today.
Habemus majkam!
Post Reply