Contextual help [Preview]
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Contextual help [Preview]
While waiting for the wish here http://www.xyplorer.com/xyfc/viewtopic. ... 54#p106154
I make a preview.
Usage:
1) Open the .ahk file with Autohotkey.exe (version 1.1: http://ahkscript.org/download/) OR comply that .ahk file to .exe using http://ahkscript.org/download/ahk2exe.zip
2) While Batch rename/PFA/QNS/VF dialog is active, Press F1 will trigger the relevant "XYplorer contextual help".
3) You can edit the help text in the "XYplorer contextual help" window,
4) X-Close/escape that window will auto save changes. Right-click the edge of window (except Title bar) will close without save changes
(*) There're some tidbit grace:
- The help window will not overlap VF/QNS... dialog.
- Close the VF/QNS... dialog will close the help window too (without saving chages to help file)
(*) Customize the .ahk file:
- Don't want the icon in tray? Uncomment the 2nd line (#notrayicon)
- Want a borderless help window? Change from "+Caption" to "-Caption" As a preview, it's raw until Don implement the above wish, so vote for me!
I make a preview.
Usage:
1) Open the .ahk file with Autohotkey.exe (version 1.1: http://ahkscript.org/download/) OR comply that .ahk file to .exe using http://ahkscript.org/download/ahk2exe.zip
2) While Batch rename/PFA/QNS/VF dialog is active, Press F1 will trigger the relevant "XYplorer contextual help".
3) You can edit the help text in the "XYplorer contextual help" window,
4) X-Close/escape that window will auto save changes. Right-click the edge of window (except Title bar) will close without save changes
(*) There're some tidbit grace:
- The help window will not overlap VF/QNS... dialog.
- Close the VF/QNS... dialog will close the help window too (without saving chages to help file)
(*) Customize the .ahk file:
- Don't want the icon in tray? Uncomment the 2nd line (#notrayicon)
- Want a borderless help window? Change from "+Caption" to "-Caption" As a preview, it's raw until Don implement the above wish, so vote for me!
- Attachments
-
- XY_Contextual_help.zip
- v0.5
- (4.66 KiB) Downloaded 280 times
Last edited by binocular222 on 08 Jun 2014 10:58, edited 10 times in total.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
It won't load up, here's what it says:
Error at line 24
The following variable name contains an illegal character: "File.Encoding"
Error at line 24
The following variable name contains an illegal character: "File.Encoding"
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Contextual help [Preview]
1) Make sure you run atleast AHK_L 1.1 http://ahkscript.org/download/
2) Still not work? Just delete line 23,24,25 (it's a false safe but not quite necessary)
3) Still no? Use the complied .exe below
2) Still not work? Just delete line 23,24,25 (it's a false safe but not quite necessary)
3) Still no? Use the complied .exe below
- Attachments
-
- Test.zip
- (376.07 KiB) Downloaded 241 times
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
Didn't know AHK comes in so many flavors. With 1.115_x64 Unicode your script works like a charm.
A-W-E-S-O-M-E standing ovations
Wishing only we would have had this talk earlier. Still hitting me at a good time, though, because it got too exhausting for me to go the extra mile via the language file edit.
Must go over to the other thread and endorse your suggestion.
A-W-E-S-O-M-E standing ovations
Wishing only we would have had this talk earlier. Still hitting me at a good time, though, because it got too exhausting for me to go the extra mile via the language file edit.
Must go over to the other thread and endorse your suggestion.
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Contextual help [Preview]
Updated 1st post, Now, it can detect Batch rename/PFA/QNS/VF
Did I missed something?
OK, in List Management, tons are still in-distinguishable (CFI, Addressbar and to go...), we have to wait for Don...
Did I missed something?
OK, in List Management, tons are still in-distinguishable (CFI, Addressbar and to go...), we have to wait for Don...
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
Getting all revved up on this - this is exactly what I had been hoping for when I started editing the language file.
Thank you, binocluar222 - I am really glad you had this idea.
PFA always works fine.
QNS also comes up reliably - but - after it was up, it overrides VF and BR, meaning, if I trigger VF or BR after QNS had been used, the QNS help will come up instead of VF or BR respectively.
Thank you, binocluar222 - I am really glad you had this idea.
PFA always works fine.
QNS also comes up reliably - but - after it was up, it overrides VF and BR, meaning, if I trigger VF or BR after QNS had been used, the QNS help will come up instead of VF or BR respectively.
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Contextual help [Preview]
All works fine here (notice I updated to v0.3).
If still, throw a message box around to catch bug, i.e:Should show the correct .txt file.
Besides, check the content of Batch Rename.txt, PFA.txt, QNS.txt, Visual Filter.txt
btw, my PFA.txt now look like this:Hope that many one will share their knowledge
If still, throw a message box around to catch bug, i.e:
Code: Select all
FileRead, InitialText, %Location% ;<-- thow after this line
Msgbox %Location%
Besides, check the content of Batch Rename.txt, PFA.txt, QNS.txt, Visual Filter.txt
btw, my PFA.txt now look like this:
Code: Select all
"Caption|<xyicons>\something.ico" pattern1;pattern2;pattern3>application
png;jpg>C:\Programs\Viewer\Viewer.exe
png>..\Viewer\Viewer.exe [relative to the application path]
png>?:\Programs\Viewer\Viewer.exe [? = application drive]
txt>%windir%\Notepad.exe [variables allowed]
readme.txt>notepad [registered applications need base name only]
|"Notepad" *>Notepad [pipe "|" in the beginning = Portable Open With: Only appear in PFA popup menu]
*.exe>::copytext <curver> [copies the version number of a dbl-clicked executable]
xys>::Load <curitem>
"Winrar" rar;zip>"?:\7Utilities\WinRAR x%osbitness%\WinRAR.exe" -a [command-line + adapt to x32-x64]
"Java|Java" jar>::run "java.exe -jar <pfaitem>"
?:\*.pdf>?:\Programs\pdfview.exe [load PDF files on app drive with a viewer on app drive]
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
One step closer. Everything seems to work except for BR. It doesnt come up at all, anymore. When I press F1, it toggles the built-in i-window to show.
Inserting the message box line brings up the right path for the other 3, but not for BR, where nothing happens at all (AHK-wise). F1 will only pop up the built-in info that comes with XY.
Maybe it has to do with the modified language file I still have in use? However, the window caption is the same as in the original, and it did indeed come up a few times, after all, with your earlier scripts.
2 hints I had missed out on. Your system is already beginning to pay off.
Inserting the message box line brings up the right path for the other 3, but not for BR, where nothing happens at all (AHK-wise). F1 will only pop up the built-in info that comes with XY.
Maybe it has to do with the modified language file I still have in use? However, the window caption is the same as in the original, and it did indeed come up a few times, after all, with your earlier scripts.
Code: Select all
"Caption|<xyicons>\something.ico" pattern1;pattern2;pattern3>application
...
[pipe "|" in the beginning = Portable Open With: Only appear in PFA popup menu]
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Contextual help [Preview]
If you modified the language file, then this check fail:Essentially, it read the first 27 characters from XYplorer's "i" button. To view & copy that 27 character to clipboard:
Code: Select all
Else if(SubStr(OutputVar, 1, 27) = "All examples are applied to")
Location = %A_ScriptDir%\Batch Rename.txt
Code: Select all
WinGetText, OutputVar, A
OutputVar := trim(OutputVar, "`r`n `t")
Test := SubStr(OutputVar, 1, 27)
msgbox %Test%
clipboard := Test
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
Got it. That's the catch, of course. You don't simply refer to the window caption, but to the first lines of the i-info-box itself.
That's smart, really smart, because you will get the Visual Filters help also for the Selection Filter - provided you did not change your language file. And if you did, well, just note the difference and replace the line in the ahk-script.
That's smart, really smart, because you will get the Visual Filters help also for the Selection Filter - provided you did not change your language file. And if you did, well, just note the difference and replace the line in the ahk-script.
Re: Contextual help [Preview]
Is it necessary to have all text selected when it comes up? Afraid to hit a key accidentally and overwrite/ delete everything.
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Contextual help [Preview]
! fixed in v0.4 by this line: Sendinput ^{Home}
+ added 2 more recognizable dialog
+ added 2 more recognizable dialog
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
Where do I trigger the Script-file? I am not into XY scripting (yet), but just for my records, so I can comment the ahk-script.
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Contextual help [Preview]
User > Manage Command > Run Script > Edit...
btw, up coming v0.5 will fix the "unable to press Tab" while edit inside the help window
btw, up coming v0.5 will fix the "unable to press Tab" while edit inside the help window
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Contextual help [Preview]
This is one of the best uses of AHK with XY!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]