contrôle SQX

French support forum

Moderators: white, nsp, Stefan2

Post Reply
chris34
Junior Member
Junior Member
Posts: 15
Joined: 2004-05-03, 10:04 UTC
Location: Bruxelles, Belgique

contrôle SQX

Post by *chris34 »

Bonjour,

est-il possible de de désactiver l'apparition de la fenêtre '(aucune) erreur' après la vérification d'un sqx. Rien de bien grave, mais c'est assez embêtant quand il y a plus d'une archive à tester. Merci bcp.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Collectif…

Post by *Clo »

2chris34

:) Bonjour ! Bienvenue comme posteur !

• Actuellement, la fenêtre "Aucune erreur" est affichée par l'excellent module SQX car TC lui-même n'affiche rien du tout quand on vérifie une ou plusieurs archive(s) d'autres types, par exemple ZIP.
- Il n'est pas possible de désactiver ce message actuellement depuis le module, et je pense que ce n'est pas souhaitable…

- Toutefois, un message global en fin de contrôle serait parfait, mais TC ne l'assume pas actuellement, et il devrait exister pour tous les types d'archives. Pour la prochaine version peut-être… ?

:mrgreen: Cordialement,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
chris34
Junior Member
Junior Member
Posts: 15
Joined: 2004-05-03, 10:04 UTC
Location: Bruxelles, Belgique

Post by *chris34 »

je m'en doutais un peu.. merci de vos précisions!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Excuse moi, je ne parle pas francais.

I made a short AutoHotkey Script and compiled to an exe. You may download it here. (scroll to the bottom of the window, click 'FREE'. There appear 3 signs you have to type in the edit field, then press 'download...' Button)


Usage: Create a button in the buttonbar with

Command:Path\to\TestSQX.exe
Parameter:"Aucune erreur." "L'archive est probablement détériorée"
Iconfile:Path\to\TestSQX.exe

Select all SQX files to test and press the button. The script starts the internal Test Archive command. If there appears a window with 'No Error' message (the text given as first parameter) the 'OK' Button is automatically clicked.

If there occurs a window with the 'Archive is possibly corrupt' (Text given from second Parameter) the script stops itself and all further messages have to be confirmed manually. It works only for SQX Archives (but could be adopted, if necessary).

The script before compiling:

Code: Select all

SetTitleMatchMode,2

IfWinActive, ahk_class TTOTAL_CMD
winget,TCinstanz, PID ,ahk_class TTOTAL_CMD
sleep,200
	NoError=%1%
    Error=%2%
{
	PostMessage, 1075, 518, , , ahk_class TTOTAL_CMD
	IfWInNotExist ahk_class TDLG2FILEACTIONMIN WinWaitActive,ahk_class TDLG2FILEACTIONMIN 
		sleep,200
		loop
		{
			Ifwinexist,ahk_class TDLG2FILEACTIONMIN ahk_pid %TCinstanz%
						{
							Ifwinexist,Total SQX ahk_class #32770 ,%Error%
								{
								return
								}
								else
							Ifwinexist,Total SQX ahk_class #32770, %NoError%
								{
								COntrolclick,OK,Total SQX ahk_class #32770, %NoError%
								}
						}

			else break
		}
	msgbox,,total SQX test,%NoError% 

}
return
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
chris34
Junior Member
Junior Member
Posts: 15
Joined: 2004-05-03, 10:04 UTC
Location: Bruxelles, Belgique

Post by *chris34 »

sheepdog, you just made my day!

Is it possible to bypass the freezing problem with password-protected archives (128/256 encryption)? Otherwise script exec works fine, even as a keybd shortcut
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Regarding the password protected archives: It does not depend on the Script but on TC (or the plugin). See here


Since this is the french forum: Could you please give a summarize translation of my posts? In case a french user that does not undersatnd english as well as you can profit from this thread, too.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
chris34
Junior Member
Junior Member
Posts: 15
Joined: 2004-05-03, 10:04 UTC
Location: Bruxelles, Belgique

Post by *chris34 »

Sheepdog a réalisé un script pour AutoHotkey (cf. supra). Une version exécutable est disponible ICI).

Créer une entrée dans la barre de bouton:
- Commande: chemin\de\TestSQX.exe
- Paramètres: "Aucune erreur." "L'archive est probablement détériorée"
- Fich. icônes: chemin\de\TestSQX.exe

Mettre en surbrillance un/plusieurs sqx et presser ledit bouton.
Si aucune erreur n'est détectéee (paramètre 1), l'écran 'OK' est automatiquement sauté. Dans le cas contraire, une confirmation manuelle est nécessaire.

A noter un problème, inhérent au module, relatif aux archives dont la décompression est protégée par mot de passe. Détails:
http://ghisler.ch/board/viewtopic.php?t=9151&start=262
Last edited by chris34 on 2006-04-26, 18:35 UTC, edited 1 time in total.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Merci.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Thanks and---

Post by *Clo »

2Sheepdog

:) Hi Stefan !

• Thanks for that workaround, but finally we would much prefer a built-in function, like you know… ;)

• Nowadays, TC is looking like an old inner tube :  with repair patches everywhere ! :lol:

- Merci pour ce pis-aller, mais au bout du compte, nous préférerions nettement une fonction intégrée, comme vous le savez…
- De nos jours, TC ressemble à une vieille chambre à air : plein de rustines partout !…


:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Ne mélangons pas…

Post by *Clo »

2chris34

:) Bonsoir,

• Merci d'avoir traduit, cela m'évitera de gaspiller de "l'encre verte" :lol:

• Toutefois, les termes Anglais sont plutôt malvenus ici, et par exemple, on utilise “Module”… ;)

:mrgreen: Cordialement,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
chris34
Junior Member
Junior Member
Posts: 15
Joined: 2004-05-03, 10:04 UTC
Location: Bruxelles, Belgique

Post by *chris34 »

désolé, simple étourderie :lol:. Vous conviendrez que pour une fois la dénomination anglaise est un peu plus jolie, mais bon ceci est un autre débat.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Désativer : possible maintenant.

Post by *Clo »

2chris34

:) Bonjour,

• Je vous dirai une autre fois quel est le seul mot "joli" en Anglais :P

- Si vous faites la mise à jour du module SQX à la version 1.10 ß1 qui vient de sortir, vous pourrez tout simplement désactiver l'affichage du message en ajoutant dans le fichier <TotalSqx.ini> :
[Pack]

ArchiveOKMessage=0
=1 rétablit l'affichage du message. J'ai testé, cela fonctionne.

:mrgreen: Cordialement,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply