AutoHotkey Community

It is currently May 27th, 2012, 4:10 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: June 19th, 2011, 12:14 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Thanks for the update, block move now works correctly.
Mini-bug:
Just found this @ line 3741
Code:
!^i::Run,D:\Mes documents\Programmes\Autohotkey\Extras\Scripts\IntelliSense.ahk

You added this in Version 1.2. It might be best if you include the IntelliSense.ahk script in your vic install as I don't think it will/is (remain) included in newer ahk installers.

For correctnes, the rotX function is by derRaphael (I just picked that as an example) see http://www.autohotkey.com/forum/viewtopic.php?t=61657
derRaphael scripts [unless otherwise noted] are released under http://creativecommons.org/licenses/by/3.0/

Edit: IntelliSense should of course be a plugin ;-)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Vic Record a Hidden File
PostPosted: June 20th, 2011, 10:19 am 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Hello,
@Normand
:)I like the signet in the version1.3 (18juin2011).
et merçi pour la propreté du code et l'organisation du tout.
très pédagogique.

Je vous signale:
:( Il y a un léger 'problème' avec l'enregistrement d'un fichier caché.
Celui-çi n'est pas modifié et aucune information ne le mentionne.
Prposition:
Si le fichier existe prendre ses attributs et vérifier si Hidden/ReadOnly et informer:
Code:
FF:     ;### Enregistrer   ; ^S

fn:=HE_GetFileName(hEdit,-1)

IfExist %fn%       ; Si fichier courant existe, écraser si possible
{
   FileGetAttrib , attribs, %fn%   ; Récup atttribus du fichier
   ifinstring , attribs, R      ; attribu +R ne peut enregistrer !!
   {   
      MsgBox , 4160 , , Ne peut enregistrer car ce fichier est en READONLY +R`n%fn%
      return
   }
   else
   ifinstring , attribs, H      ; attribut caché ne peut enregistrer !!
   {   
      FileSetAttrib , -H, %fn%      ; définir attribut non caché !
      HE_SaveFile(hEdit,fn,-1)      ; sauver maintenant (c'est possible)
      FileSetAttrib , +H, %fn%      ; remettre attribut
      tooltip RecordSuccess> `n Note que ce fichier est en +H `n%fn%`n
   }
   else               ; sauver 'normalement'
   {
      HE_SaveFile(hEdit,fn,-1)
      tooltip RecordSuccess> %fn%      
   }

; .......
return



:?: ....et l'intégration de l'indispensable 'drop' de la sélection?
(dans le programme lui même, /et une sélection importée d'une autre fenêtre) comme http://www.autohotkey.com/forum/topic52880-30.html#430422

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2011, 11:52 am 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
@hugov
Thanks for the feedback and for the information about IntelliSense.
IntelliSense will be integrated as a plugin in the next version of Vic.

Regards,

@saggos
– Signets
Merci pour vos remarques d'appréciation. Il faut savoir que les signets "ne suivent pas" si on ajoute ou retranche du contenu devant les positions mémorisées. Si vous avez une suggestion pour améliorer le mode de calcul, je serai bien sûr preneur.
– Fichiers +H ou +R
Vous avez tout à fait raison au sujet des fichiers cachés ou en lecture seule.
La prochaine version de Vic en tiendra compte.
– Glisser-déposer
L'intégration du glisser-déposer d'une sélection paraît un peu lourde et compliquée, et je n'a pas beaucoup d'intérêt pour l'ajout d'une telle fonctionnalité.

Salutations,

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2011, 1:15 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Hello,
-Pour les différentes insertions 'commentaire HTML CSS ...':
Une solution pour attraper la sélection pour l'intégréer: exemple:
Code:
   JJ: ;### Commentaire HTML
   ControlGet,Sel,Selected,,,ahk_id %hEdit%    ; sélection en cours
   T=`t<!-- %Sel% -->`r`n                   ; définir le texte à insérer
   SendMessage,0xC2,,&T,,ahk_id %hEdit%       ; envoyer
   LONG:=(StrLen(T))                     ; calculer pour resélectionner
   if Sel                              ; si selection: Resélection
   SendMessage,0xB1,Pos-1,Pos+(LONG),,ahk_id %hEdit%   ; Resélection -1 <> +long
   else                              ; donc pas de sélection alors:positionner
   SendMessage,0xB1,Pos+(LONG/2),Pos+(LONG/2),,ahk_id %hEdit% ;  positionner au centre du T
Return



-Une solution Pour COPIER le PATH Courant=> Si le control sous la souris est 'HiTab1' alors copier le chemin du fichier fn.
(Note: il ne faut rien sélectionner dans HiEdit! ou bien changer la hotkey)
Code:
~^c::   ; if not change> Note: il ne faut rien sélectionner dans HiEdit!
COPIER_PATH_via_HiTab:            ;
   MouseGetPos , , , ,mctrl      ; Prendre le control sous la souris / under mouse
   if mctrl=HiTab1               ; si nom du Tab de HiEdit
      clipboard:= HE_GetFileName(hEdit)      ; copiet le Peth courantt
Return


@Normand
À voir dans: ;### Caractère spécial.
.ligne1623=> Run,C:\WINDOWS\System32\Charmap.exe
comme-vous savez Le système n'est pas toujours sur le lecteur c:
Code:
; préconiser l'utilisation de A_WinDir
%A_WinDir%\System32\Charmap.exe ;     ligne1623


- AutoCalculater les Signets, durdur ...

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 27th, 2011, 11:45 am 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
hugov wrote:
It might be best if you include the IntelliSense.ahk script in your vic install as I don't think it will/is (remain) included in newer ahk installers.

Now, it is.

hugov wrote:
For correctnes, the rotX function is by derRaphael

Thanks for the information. I will correct my documentation.

hugov wrote:
IntelliSense should of course be a plugin

In the next version, it will. Thanks for the suggestion.

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 27th, 2011, 11:55 am 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
soggos wrote:
Pour les différentes insertions 'commentaire HTML CSS ...': Une solution pour attraper la sélection pour l'intégrer

Bonne idée. La prochaine version en tiendra compte.

soggos wrote:
Une solution Pour COPIER le PATH Courant=> Si le control sous la souris est 'HiTab1' alors copier le chemin du fichier fn.

J'ai retenu l'idée générale. Dans la prochaine version, lorsqu'il n'y a rien de sélectionné, COPIER aura pour effet de mettre le chemin et le nom du fichier dans le presse-papiers.

soggos wrote:
À voir dans: ;### Caractère spécial.
.ligne1623=> Run,C:\WINDOWS\System32\Charmap.exe
comme-vous savez Le système n'est pas toujours sur le lecteur C:

Bien vu. La correction est faite.

Merci pour vos remarques, soggos.

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 27th, 2011, 10:29 pm 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
I'm proud to announce that
Version 1.4 is available.
See first post for details.
Release notes are at the end of the first post.
Special thanks to hugov and soggos for their bug reports and suggestions.

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 5th, 2011, 7:20 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
hello,
@Normand
Je vous signale la Perte de la longueur des tabulations après augmentation/diminution de la taille police.
il semble que cela soit HE_SetFont qui trouble...
une solution qui fonctionne est de restaurer votre variable P4(Largeur de tabulation) après les labels utilisant HE_SetFont
Code:

AL: ;### Augmenter la taille de police
AM: ;### Diminuer la taille de police
; IniRead ,  P4 , vic.ini ,Options ,   P4, 2 
;......
HE_SetFont(hEdit,fStyle "," fFace)
HE_SetTabWidth(hEdit,P4) ;  restaurer variable P4
return



:) ps:
Votre solution pour Diminuer le retrait est très pratique.. (TB: ;### Diminuer le retrait)
ET il en est de même pour ce label R1;### Sélectionne le rectangle
simplement génial! exactement ce qui faut!

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2011, 10:33 pm 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
@soggos

La largeur de tabulation ne suivait effectivement pas après un changement de taille de police. Et je ne m'en était jamais aperçu! Merci de l'avoir signalé.

La solution que vous préconisez est la bonne. Pour être complète, elle doit aussi être appliquée lorsqu'on revient à la taille de police normale (AN: ;### Taille de police normale).

Bref, c'est maintenant corrigé. Grâce à vous.

La version 1.5 sera bientôt publiée.

Cordialement,

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 6th, 2011, 12:33 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
@Normand, see the Plugin Dictionnaire Français.
http://www.autohotkey.com/forum/viewtop ... 973#456973
Topic spécifique for Plugin Dictionnaire for VIC

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2011, 3:56 pm 
Offline
User avatar

Joined: October 31st, 2008, 9:39 am
Posts: 641
Location: France
Wow, Vic become big :)

just one thing:

Process,Priority,,R with SetBatchLines,-1 is dangerous...
Process,Priority,,H is better and safe for multi core CPU
(or Process,Priority,,A for single core CPU)

http://msdn.microsoft.com/fr-fr/library ... class.aspx

_________________
"You annoy me, therefore I exist."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2011, 11:36 pm 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
@soggos
Merci pour le développement et la présentation de votre extension.

@Zaelia
The next version will set Process Priority to A. Thanks for your observation and for the link.

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 10th, 2011, 4:19 pm 
Offline

Joined: May 21st, 2007, 4:47 pm
Posts: 85
Version 1.5 is available.

Among new features:

- A set of commands based on CapsLock to add HTML tags quickly (see HTML menu).
- Automatic calculation of the width, height and path when adding an HTML image.
- An easy-to-use dialog box to add HTML code for form controls.
- Commands to Encrease/Decrease Vic's window transparency.

See release notes at the end of the first post for details.

Special thanks to soggos and Zaelia for their bug reports and suggestions.

_________________
Normand Lamoureux


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 16th, 2011, 10:22 am 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
    Pour plugin/extension je vous suggère / i suggest you:
      Avant création / before made Menu P: N°225 Loop,%A_ScriptDir%\plugins\*.ahk
      >> ifexist %A_AhkPath% ;

      And not necessary if menu is not accessible:
      Avant lancement / before run : N°3023 Run %A_AhkPath% "%A_ScriptDir%\plugins\%runscript%.ahk"
      >> ifexist %A_AhkPath% ; because .exe and if no ahk... else msgbox ...
    (because if Vic is compliled (Vic.exe) and AutoHotkey.exe is not accessible/installed on the computer.)

    Note:
    if A_AhkPath= Alor/then Test this path for AutoHotkey (or inverse)
    %A_ScriptDir%\AutoHotkey\AutoHotkey.exe
    like that plug-in are mobiles.....


_________________
with ahk, all is different!...<img>


Last edited by soggos on July 16th, 2011, 3:18 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 16th, 2011, 11:55 am 
soggos wrote:
because if compiled and AutoHotkey is not accessible
Not correct, VIC is not compiled, the exe is just a renamed autohotkey.exe -> so the A_AhkPath points to the renamed "vic" and therefore it will work.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg and 18 guests


You can 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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group