-
Notifications
You must be signed in to change notification settings - Fork 7
/
FoldersPopup.ahk
9140 lines (7503 loc) · 344 KB
/
FoldersPopup.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;===============================================
/*
FoldersPopup
Written using AutoHotkey_L v1.1.09.03+ (http://ahkscript.org/)
By Jean Lalonde (JnLlnd on AHKScript.org forum)
Based on DirMenu v2 by Robert Ryan (rbrtryn on AutoHotkey.com forum)
http://www.autohotkey.com/board/topic/91109-favorite-folders-popup-menu-with-gui/
who was maybe inspired by Savage's script FavoriteFolders
http://www.autohotkey.com/docs/scripts/FavoriteFolders.htm
or Rexx version Folder Menu
http://www.autohotkey.com/board/topic/13392-folder-menu-a-popup-menu-to-quickly-change-your-folders/
Version: 5.2.3 (2016-05-08)
* display clearer message when prompting for upgrade from FoldersPopup to Quick Access Popup (prompt displayed only for new QAP releases with new features)
* add the auto-detection of .ahk and .vbs extensions when user add a favorite using drag-and-drop to the Settings window
* stop launching Directory Opus when refreshing the list of open folders in listers if Directory Opus is not running
* Sweeden and German language files update
* new runtime v1.1.23.5 from AHK
Version: 5.2.2 (2015-11-29)
* Italian and French language updates
* Fix an error in link for setup file in v5.2.1
Version: 5.2.1 (2015-11-15)
* update special folders initialization for Windows 10
* adjust menu icons to Windows 10 icon files
* shorten application description in executable file for Windows 10 display
* shorten notification tray tip texts for better display on Windows 10
* add a short delay after tray tip in notification zone for Windows 10 compatibility
* add option to disable sound on some tray tips
* fix bug with favorite application parameters, letting user enclose parameters with double-quotes only if required
* disabled collecting group load diagnostic data
* check for updates prompt for download v6+ only if OS is Win7+, if v6+ prompt for ugrade to Quick Access Popup
* German and French language updates
Version: 5.1.2 (2015-08-28)
* fix description label errors when changing a hotkey in "Options, Other hotkeys"
* when the Explorer extension Clover is installed, support folder navigation in the current tab instead of opening a new tab
Version: 5.1.1 (2015-07-21)
* fix a bug for FPconnect users preventing the middle-mouse-button click to be recognized by FPconnected file manager (see: http://blog.rolandtoth.hu/post/106133423662/fpconnect-for-folderspopup-windows)
* improve group load error handling
Version: 5.1 (2015-05-06)
* See beta versions v5.0.9 to 5.0.9.0
Version: 5.0.9.9 (2015-05-06)
* Enable keyboard shortcuts even if Current folders, Groups of Folders and Clipboard menus are disabled
* Dutch language update
Version: 5.0.9.8 (2015-05-02)
* fix bug causing error when trying to show icon in Clipboard menu when icons are not allowed
* fix bug with None in change hotkey dialog box
* updates of language files
Version: 5.0.9.7 (2015-04-27)
* fix a bug with relative paths being combined wrongly when the location in an URL
* in change hotkey dialog box, make the selection of no hotkey (None) more obvious
* preserve standard order of modifiers in hotkey labels when changing hotkey
* updates of language files
Version: 5.0.9.5/6 (2015-04-24)
* simplified implementation of the copy location to clipboard feature; English language adapted
* addition of the Brazilian Portuguese language !
* update to Spanish language file
Version: 5.0.9.4 (2015-04-23)
* fix bug when adding folders using the drag-and-drop technique, these favorites being considered as application favorites
* re-wording of the language around the "Paste Location" feature to "Copy location"
* expand the relative path in favorite location, based on the current working directory, making the change folder support relative paths
* adjustments to all translation language files
Version: 5.0.9.3 (2015-04-15)
* sort URLs in Clipboard menu
* Spanish, Dutch and French text updates
* help text updates, addition of help text about Clipboard and Paste Favorite's Location menus
* display current customized shortcuts in Help text (English only for now)
* support comments starting with ";" in language files
* support comments at end of lines after ";" in language files
Version: 5.0.9.2 (2015-04-11)
* addition of spanish language
* fix Change hotkey description text for hotkeys 3 to 6
* Add English description text in Change hotkey for hotkeys 7 to 10
* fix buttons centering bug in Option GUI
* fix text layout in Change hotkey GUI
Version: 5.0.9.1 (2015-04-10)
* merge changes in v5.0.1
Version: 5.0.9 (2015-04-05)
* new Paste Favorite's Location in the main menu
* new shortcut (default Shift-Windows-V) to open the Paste Location menu
* new radio button options for paste location destination in Options tab 1
* paste favorite's location to keyboard or clipboard, according to destination selected in Options
* new checkbox option in Options tab 1 to display or not the Paste Favorite's Location menu
* add tray tip when showing the Paste Favorite's Location
* disable Groups, Settings, Add this folder and Support freeware menus when showing Paste menu
Version: 5.0.1 (2015-04-10)
* change default hotkeys for Current Folders (+^f), Groups of Folders (+^g), Recent Folders (+^r), Clipboard (+^c) and Settings (+^s) for Windows 8.1 compatibility
* fix bug with special folders Pictures and Favorites (Internet) when user change these folders default location
Version: 5.0 (2015-04-05)
(see history for v4.9.1 to 4.9.9)
Version: 4.9.9.1 (2015-04-04)
* removed menu shortcuts in main menu to let user select menu item by their name first letter
* German, Dutch, Italian and Korean language update
Version: 4.9.9 (2015-03-30)
* keep current position of add favorite window when changing favorite type
* fix bug making the exit routine running twice
* moving OnExit before InitFileInstall to ensure deletion of temporary files
* unused language variable removed
Version: 4.9.8 (2015-03-28)
* add an option in third tab to display or not special menu shortcut
* adjust layout ot Options tab 3
* save and load display special menu shortcut option to ini file
* function to build main menu with special menu shortcuts text
* shorten button names in Hotkey2Text
* fix bug in group load for special folders
* Italian and Swedish Options language updates
Version: 4.9.7 (2015-03-25)
* fix a bug with "New window" (Shift-MMB or Shift-Win-A) not opening in a new Explorer when mouse over an Explorer
* improve target window identification when special menu are called using their shortcuts (if target window can open favorite, then navigate, if not new window)
* sets menu position correctly when special menu are called using their shortcuts
* fix bug in WindowIsFPconnect when target window id or class is unknown
* review of English text in Menu hotkeys Options tab and improve Menu hotkeys tab layout
* Italian, Swedish, French and Korean language update
Version: 4.9.6.2 (2015-03-21)
* fix a bug in OpenFavorite (and OpenClipboard) in situations where the target window could not be detected
Version: 4.9.6.1 (2015-03-20)
* addition of debugging code around OpenClipboard
* fix a bug introduced in v4.9.2 breaking the creation of default menu at first run
Version: 4.9.6 (2015-03-19) (no v4.9.5)
* change default hotkleys for Settings (+#s), Current Folders (+#f) and Clipboard (+#s)
* review hotkeys array naming
* add hotkey reminders in special menu labels in main menus
Version: 4.9.4 (2015-03-18)
* add a hotkey to open directly the Current folders menu (by default Ctrl-Win-C)
* add a hotkey to open directly the Groups menu (by default Ctrl-Win-G)
* add a hotkey to open directly the Clipboard menu (by default Ctrl-Win-V)
* redesign the Options dialog box splitting hotkeys in two tabs: one for popup menu hotkeys and one for other hotkeys
* review hotkeys language in Options
* fix a bug from v4.2 when opening a special folder (Libraries, My Computer, etc.) from the Current Folders menu
Version: 4.9.3 (2015-03-14)
* add URL parsing in Clipboard submenu
* keep only URLs shorter than 260 chars
* fix icon bug inside Clipboard menu (using only Folder and URL icons for now)
* filter out illegal characters in paths / ? : * " > < | (in addition to space, tab and line-feed) from the beginning and the end of each clipboard line
* fix two bugs in OpenClipboard making folders always opening in new window
Version: 4.9.2 (2015-03-12)
* check for beta versions updates
* enabled only for users who ran a beta version previously and who enabled the Check for update option
Version: 4.9.1 (2015-03-10)
* add the favorite type Application
* add Arguments and Working directory fields to Application favorites
* execute the Application favorites passing properly the arguments and setting the working directory
* make room in the Add Favorite window for additional property fields
* support default and custom icons for Application favorites
* add the Clipboard menu item in the main menu and add to the submenu folders, documents or applications paths found in the Clipboard
* if no path is found in the current Clipboard, the previous submenu content is preserved
* add an option to determine if the Clipboard menu is shown (default true)
* disable clipboard submenu if empty
* add clipboard icon to Clipboard menu
* remove arguments double quotes when there is no argument
* process environment vars for app favorites and clipboard paths
Version: 4.3 (2015-02-22)
* make the Settings window resizable
* adjust hand mouse pointer when hover clickable controls
* save Settings Gui size state to ini file on quit
* restore Settings Gui size on load
* when saved maximized, restore at default size and center
* prevent minimizing the settings window to avoid user to forget to save settings
Version: 4.2.4 (2015-02-08)
* fix a version number in v4.2.3 causing an error in update checking
* fix a bug with expanded environment variables in favorites of type Special folders
Version: 4.2.2 (2015-01-31)
* fix a bug with environment variables not being expanded when checking if target file exist
* fix bug under XP during group load when an Explorer already contains the target folder, the existing Explorer is now activated and resized (consequence: a group cannot contain the same folder twice)
* fix bug with check for update URL on some browsers
* adding diag code to Check4Update command
* stop incrementing usage counter when checking for update manually
Version: 4.2.1 (2015-01-18)
* make FP compliant with Windows themes by adding a FP theme named "Windows" that keeps Windows theme's colors (making FP display OK when user selects a dark Windows theme)
* making the FP theme "Windows" selected by default for new users
* because of a side-effect in XL 2010, revert a patch in v4.2 to prevent double-click up/down buttons in Settings to overwrite the clipboard with the image URL (a Windows "undesired feature")
Version: 4.2.0 (2015-01-15)
* see changes in beta version 4.1.8 to 4.1.9.6
Version: 4.1.9.6 BETA (2015-01-15)
* italian and german translation fixes
Version: 4.1.9.5 BETA (2015-01-14)
* italian languag fixes
* Minimized language variable added
Version: 4.1.9.4 BETA (2015-01-14)
* change beta landing page URL in FP code for a redirect page easier to manage on the website
* remove timeout from msgbox in check4update
* German, Dutch and Italian language updates
Version: 4.1.9.3 BETA (2015-01-11)
* revert ampersand (&) handling in menu as it was in 4.1, one & for shortcut, && to display an ampersand
Version: 4.1.9.2 BETA (2015-01-10)
* Italian translation update
* Korean translation update
* Swedish translation fix
* Added the FP ico file to the portable package
Version: 4.1.9.1 BETA (2015-01-10)
* re-enabled the Special Folders menu in Windows XP
Version: 4.1.8.7 BETA (2015-01-08)
* add the new customizable My Special Folders menu as last item in the user's main menu (except for XP)
* add a bln value in ini file to track that the new My Special Folders was created (except for XP)
* protection if user already has a My Special Folders menu before FP creates it
* stop building the old Special Folders menu (except for XP)
* remove option to display special folders menu (except for XP)
* in Settings, Ctrl-Left is now as clicking on on the left arrow (instead of the up arrow) beside the menu dropdown list
* in Settings, remember the last menu position when returning to a previously displayed menu
* refactor of code around navigation to previous menu (arrows left of the Menu to edit in Settings)
* remove & in special folders menu names in language files
* fix bug when moving up/down or removing favorite, the items list in add favorite is now updated
* fix error message bug when moving folder under itself
* swedish translation update
Version: 4.1.8.6 BETA (2015-01-06)
* improve performance when moving large number of favorite from one submenu to another
* fix bug & not being kept in menu names
* fix bug in add favorite when changing favorite type, default icon not being properly set and location not being properly reset
* fix bug when moving out all favorite from a submenu, menu item is now grayed out
* Korean language updates
Version: 4.1.8.5 BETA (2015-01-04)
* prevent double-click on Up/Down arrows buttons to overwrite the clipboard (note: feature reverted in v4.2.1 because of a side effect in XL 2010)
* fix a bug when moving multiple favorites with Up/Down or Ctrl-Up/Ctrl-Down, selection is now kept
Version: 4.1.8.4 BETA (2015-01-03)
* add hotkeys to Gui to move favorites (Ctrl-Down/Up), edit favorite (Enter), open submenu (Ctrl-Right), return to parent menu (Ctrl-Left), Select All (Ctrl-A), Add new (Ctrl-N) and Remove (Del)
* add shortcuts help in main Gui, new layout for drag & drop help
* allow multiple select of favorites to move or delete them; adapt gui Edit and Remove buttons if multiple selection
* add separator and column break not allowed if multiple favorites selected
* looped uses of adapted guiaddfavoritesave to move favorites
* add moved favorites at end of destination menu
* arrows move multiple favorites
* in add/edit favorite, save default button
* special folder Performance Information and Tool only on Win7 (not available on Win8 and more)
* add support for six special folders in TC with use of :: instead of shell:::
* fix bug special folder Images with Total Commander
* fix bug in manage groups, Select a group was sorted with list of groups
Version: 4.1.8.3 BETA (2014-12-31)
* fix bug default position in menu not correct after last items in menu was removed
* fix bug when change to submenmu using edit button, the delete button in new submenu deleted items in the previous menu
Version: 4.1.8.2 BETA (2014-12-31)
* complete refactor of special folders using CLSID, Shell commands, Shell constants, AHK constants, DOpus alias or TC commands, and supporting NavigateExplorer, NewExplorer, Dialog, Console, DOpus, TC and FPc
* adaptation of OpenFavorite and navigate/new window functions to the refactored special folders
* error message when a special folder cuold not be open
* add support for FPconnect TargetPath filename
* support environment variables in FPc paths
* fix bug when moving a favorite to another submenu
Version: 4.1.8.1 BETA (2014-12-27)
* removed support for FreeCommander XE (now available via FPconnect)
* add version and os info to check4update request
Version: 4.1.8 BETA (2014-12-26)
* add dropdown list in Add Favorite dialog box to select the position of the new favorite in the menu
* for Windows 7 and more, refactor InitSpecialFolders with ClassID and exceptions for unavailable ClassID (the Special Folders submenu is maintained but users could replace it by creating their own Special Folders in any menus)
* add icons and translateble default names for exceptions
* extended support for FPconnect (universal file manager connecteor from Roland Toth) with auto-detection of FPconnect, open in current tab/window or new tab/window
* fix bug not showing icons for system menus in main menu under Win_XP
* fix delay in group load for slow drives
* the FP menu can now be open over the FP Settings window with middle-mouse click (or Win-A)
* language files updates
Version: 4.1 (2014-12-20)
* addition of Italian language, thanks to Riccardo Leone
* redesign the Help and Options windows into three tabs to save height on small screens
* change mouse cursor to hand only in Settings window
* change delays in group load
* add diagnostic info for clipboard in group load
* solve icon issue with multi column menus under Win XP, show icons only in first columns
* change default to "add to existing windows" when creating a new group of folders
* add BETA support for file manager connector FPconnect (from Roland Toth)
Version: 4.0.4 (2014-12-13)
* add a button to select or deselect all Explorer windows in Group Save
* support column click in Group Save to sort on column content
* fix bug in Explorer collection causing the Save Group button and menu to be disabled
Version: 4.0.3 (2014-12-13)
* more robust group load and window move and resize
* fix a bug in Explorer collections in case ComObjCreate returns an invalid handle
* remove forgotten testing code in DOpus group load
* when close before restoring group stop closing IE windows
* stop closing TC windows before restoring
Version: 4.0.2 (2014-12-12)
* fix bug making language (other than English) in setup not being taken into account oinly at FP first run
Version: 4.0.1 (2014-12-09)
* fix bug with Recent shortcut opening in a new Explorer window instead of navigating in the correct window
* fix bug properly exit group load loop when an error occurs within an iteration
Version: 4.0.0 (2014-12-07)
* See all changes from v3.9.1 to v3.9.9 BETA
* Korean language update
Version: 3.9.9 BETA (2014-12-04)
* detect if app is started in program files folder and set working dir to appdata
* create a backup of the ini file at launch time
* Dutch and Korean language updates
Version: 3.9.8 BETA (2014-12-01)
* fix lOptionsDisplayFoldersInExplorerMenu label.
* add column break and system variable in default menu
* fix bug when edit and save a submenu under the same name (from v3.3.2)
* add double-quotes to Run command parameters
* sort groups list in manage groups and edit group
Version: 3.9.7 BETA (2014-11-25)
* add an item in the right-click Tray menu to open the FoldersPopup.ini file
* add an option to disable check for update at startup
* add Downloads folder to Special Folders menu, support for DOpus and TC, not available on Win_XP
* fix a bug making custom icons not following when favorites were moved up or down in the menu
* merge and refactor GuiMoveFavoriteUp and GuiMoveFavoriteDown commands
* fix a bug visible only to Total Commander users occuring when you left-click the tray icon button or when left-click on the tray icon was in the overflow area
* add location URL of folders in groups saved to the ini file
Version: 3.9.6 BETA (2014-11-21)
* refactor BuildGroupMenu into BuildFoldersInExplorerMenu and stripped BuildGroupMenu
* add numeric shortcuts to groups menu
* exclude DOpus collection windows of Current folders menu
* merged OpenRecentFolder and OpenFolderInExplorer with OpenFavorite
* merged 2-in-1 command PopupMenuMouse + PopupMenuKeyboard and 2-in-1 command PopupMenuNewWindowMouse + PopupMenuNewWindowKeyboard, into 4-in-1 command
* support for system environment variables in favorite location (e.g.: APPDATA, LOCALAPPDATA, ProgramData, PUBLIC, TEMP, TMP, USERPROFILE)
* make the vertical bar (or pipe "|") a reserved character in submenu or favorite name
* fix bug clicking the correct pane in DOpus when popup in new window
* fix bug with document favorite custom icons
* fix a bug occurring in some situation when a favorite location contains a comma (from v3.3.1)
Version: 3.9.5 BETA (2014-11-15)
* display and select icon for folders, url and documents in add/edit favorite and in menu
* better error management around menu icon assignment, fix the *.msc bug
* use shell32.dll icon #1 for unknown icon
* fix a bug in Group menu for network locations
Version: 3.9.4 BETA (2014-11-09)
* Swedish, German and Korean translations for new features in v3.9.1 and v3.9.2
* Custom icons for submenus (custom icons for folders in next release)
* Add hidden column in Settings listview for icon resource
* Add field in Folders section of ini file for icon resource
* Add icon selector to add/edit favorite dialog box (for submenu only in this release)
* New special menu Folders in Explorer to open in Explorer or a dialog box a folder already open in another Explorer
* Merge open folder in Explorer with Open recent folders
* Add option to display or not the Folders in Explorer menu
* Regroup Display options in Options dialog box
* In Options, add the size 48 pixels to the choie of icon size
Version: 3.9.3 BETA (2014-11-08)
* retrieve language from ini file created by setup program and use when creating the FP ini file
* accept space in Change hotkey dialog box to allow combinations with spacebar as a potential hotkey
* detect TreeView folder select dialog box and exclude them because of a Windows limitation (Edit1 control not handling the Enter)
* add the option OpenMenuOnTaskbar to open or not the popup menu over the taskbar (class Shell_TrayWnd)
* add column breaks in menu
* improve reliability and performance of group load with Explorer and DOpus
* fix bug with windows move/resize when group load
* fix bug with minimize/maximize Explorers when group load
* fix wrong web link when an beta version update is available
Version: 3.9.2 BETA (2014-11-05)
* Addition of German language to Setup program
* Add the possibility to overwrite an existing group of folders in the save group dialog box
* allow to edit a group from the manage groups gui
* Delete the startup shortcut when uninstall with Inno Setup
* After installation with Inno Setup, copy an existing FoldersPopup.ini file if one exist in a previous protable installation (findable only if a shortcut to the portable installation exists)
Version: 3.9.1 BETA (2014-11-02)
* New setup procedure with standard Install / Uninstall procedures (using Inno Setup) - keeping a separate zip file for portable version
* Adapt Run at startup shortcut for Inno Setup by using the working directory instead of the script directory
* Create a unique environment code (mutex) to allow Inno Setup to detect if FP is running before uninstall or update
* Changed default FP hotkeys Windows-K and Shift-Windows-K to Windows-A and Shift-Windows-A (Windows-K is a reserved shortcut in Win 8.1) - configs of actual users are not changed
* Add the option "Use tabs" for DirectoryOpus users to choose to open new folders in new tab (new default) or in a new lister
* After DOpusRt opens a folder in a new tab, activate that window
* Change Group menu label to "Group of folders"
* Support Group menu of Explorer and DOpus windows containing the same folder
* Support saving multiple windows (Explorers or DOpus) containing the same folder
* Create objects to get special folders class id by name and name by class id
* Save groups with special folders to ini file
* Load groups with special folders from ini file
* Fix a bug with labels when changing the hotkey for Recent folders menu and Settings windows
Version: 3.3.2 (2014-12-01)
* fix a bug occurring when editing a submenu and saving it under the same name
Version: 3.3.1 (2014-11-17)
* fix a bug occurring in some situation when a favorite location contains a comma
Version: 3.3 (2014-10-24)
TotalCommander integration
* automatic detection for Total Commander support
* Total Commander configuration in Options
* ini configuration for TotalCommander window
* add a checkbox in options to let Total Commander users choose to open new folders (Shift-Middle-Mouse) in a new tab or in a new window
* new TotalCommanderUseTabs and TotalCommanderNewTabOrWindow switches in ini file
* show popup menu in TotalCommander windows
* add this folder from Total Commander window
* navigate regular and special folder in TotalCommander existing window
* open regular and special folder in new TotalCommander window or tab according to TotalCommanderNewTabOrWindow
* inserts small delays when opening TC special folders to improve reliability
* disable Switch menu first time TC is enabled until the tabs issue is resolved in TC
Other changes
* addition of Swedish language, thanks to Åke Engelbrektson
* fix a bug when user select a hotkey replacement for Middle-mouse button that involves a modifier key (e.g. Shift+Right-click)
* fix bug with icons on Windows Server (disable icons)
* fix bug making new folders opening in Explorer instead of Total Commander (or Directory Opus) when called from the Tray left-click menu
* change DOpus command to open a new lister to Go with NEW parameter
Retained for v4
* save group GUI with selector, group name of load options
* save group GUI improvements
* load group and read replace setting
* close other Explorers, TC and DO before loading a group when group setting is replace
* open Explorers instances in a group
* open Directory Opus instances in a group
Version: 3.2.7.2 BETA (2014-10-13)
Published in v3.3 prod
* add a checkbox in options to let Total Commander users choose to open new folders (Shift-Middle-Mouse) in a new tab or in a new window
* fix bug making new folders opening in Explorer instead of Total Commander (or Directory Opus) when called from the Tray left-click menu
* inserts small delays when opening TC special folders to improve reliability
Version: 3.2.7.1 BETA (2014-10-12) starting version number used for beta testing phase
Published in v3.3 prod
* automatic detection for Total Commander support
* Total Commander configuration in Options
* ini configuration for TotalCommander window
* special TotalCommanderNewTabOrWindow switch in ini file
* show popup menu in TotalCommander windows
* add this folder from Total Commander window
* navigate regular and special folder in TotalCommander existing window
* open regular and special folder in new TotalCommander window or tab according to TotalCommanderNewTabOrWindow
* change DOpus command to open a new lister to Go with NEW parameter
Retained for v4
* reorg Switch menu taking SwitchExplorer to Switch menu level, with Switch in dialog box at the bottom of Switch menu
* rename Switch to Explorers
* integrate with DOpus listers in Explorers menu
* save and restore groups of Explorers
* save and restore groups with positions
* add Save this group and Load a group menus to Explorers menu
* add Groups button to main Gui
* TotalCommander support in Explorers menu (if tabs issue resolved)
Version: 3.2.2 (2014-10-02)
* fix layout in options gui
* remove support for MS Office 2003/2007 file dialog boxes
* German language update
Version: 3.2.1 (2014-09-20)
* When Explorer replacement activated in DOpus, ghost Explorer in the Switch Explorer menu skipped
* Removed Flattr from donation platforms
* Remove Switch Explorer support for DOpus listers containing an FTP folder (until issue resolved - https://github.com/JnLlnd/FoldersPopup/issues/84)
* Addition of the korean language - thanks to Om Il-Sung (Dollnamul)
Version: 3.2 (2014-09-16)
Directory Opus integration
* collect info about opened DOpus listers using DOpusRt
* collect info about opened Explorers and DOpus listers in two objects, merge the two sets of folders, remove duplicates and build Switch menus
* adapt SwitchExplorer and SwitchDialog to new object model
* switch explorer in DOpus using DOpusRt, switch to DOpus if 2 panes or multiple tabs
* handling coll:// DOpus windows like search results in Switch Menu
* use DOpus icons for listers in Switch Explorer
* enable special folders menus when target window is Directory Opus and navigate to special folders using DOpusRt and built-in aliases
* navigate folders and recent folders in current lister using DOpusRt
* open new lister using DOpusRt
* prompt at startup to activate DOpusRt if DOpus found under Program Files
* when Add This Folder, read current folder using DOpusRt
Other changes
* new option to show the popup menu near the mouse pointer, in the active window or at a fix position
* prevent intermittent Windows bug showing an error when building recent folders menu if an external drive has been removed
* setting the image and recent items special folders reading the Registry for a solution working in all Windows locales
* fix bug when showing special folders names in Switch menus
* fix bug when duplicate folders were found in Switch menus
* prevent paths longer than 260 chars in Switch menu from causing an error
* limit menu name to 250 chars maximum in add/edit folder dialog box
* different ini variable LatestVersionSkippedBeta to remember latest skipped version in beta mode
Version: 3.1.3 (2014-09-07)
* bug fix: make all special folders menu items work when popup menu is activated from the tray icon
* improve handling of the hash (aka Sharp / "#") bug in Shell.Application (see v1.2.6)
* fix bug when navigating in a CMD window with path including AHK reserved chars
Version: 3.1.2 (2014-09-03)
* Menu icons now supporting Windows Vista
* Stop building recent folders menu at startup (unnecessary since this menu is refreshed on demand)
Version: 3.1.1 (2014-08-30)
* Fix a bug that created the diag file even when diagnostic mode was off
* Stop forcing the working directory to be the app's directory.
* Note 1: User can set the working directory of his choice by creating a Windows shortcut and setting the "Start in:" option.
* Note 2: By default and when user enable the "Run at startup" option, the working directory is the app's directory.
Version: 3.1 (2014-08-29)
* First public release of Folders Popup v3
* Fix a bug in Switch in dialog box menu
Version: 3.0.12 (2014-08-27)
* German and Dutch translation update (Thanks to Edgar "Fast Edi" Hoffmann and Pieter Dejonghe)
* Left click on Tray icon to show favorites menu
Version: 3.0.11 (2014-08-24)
* fix an icon error under WinXP
Version: 3.0.10 (2014-08-23)
* fix bug when selecting a mouse hotkey after None was selected for that hotkey
* in Change Hotkey, unselect modifiers when None is selected as mouse trigger
* additional text to clarify triggers in Settings, Options
* new menu icon for submenus
Version: 3.0.9 (2014-08-22)
* replaces Send command with SendInput
* fix bug when navigating to network folder in DOpus
* add popup menu and color to tray menu
Version: 3.0.8 (2014-08-20)
* add type of favorites for links, display default browser icon for link favorites and open links in default browser
* fix bug with DOpus when path includes AHK reserved chars
* better support of DOpus when in dual listers
Version: 3.0.7 (2014-08-18)
* make display icons optional, refactor Add Menu commands in a centralized function
* allow to select no mouse trigger for popup menu, add None to the dropdown list in Change hotkey window
* add mouse or keyboard hotkey to open the recent folders list
* fix error when icon location contains %1
* fix error when assigning color to an empty submenu
* fix a v2 bug with shortcuts numbers increment in Switch menus
Version: 3.0.6 (2014-07-26)
* Redesign of buttons in Settings
* Addition to ini file of themes with colors for dialog boxes and menu
* Implementation of colors to menus and dialog boxes
* Add option in Settings/Options to select theme
Version: 3.0.5 (2014-07-23)
* fix a v2 bug allowing editing in Settings with no item selected
* fix a v3.0.2 bug when adding an item to a menu other than the current menu in Settings
* change cursor to hand for all buttons in Settings
* refactor (merge) Add and Edit favorites GUI and Save commands (no change visible to users)
Version: 3.0.4 (2014-07-21)
* fix a bug when adding a menu and numeric shortcuts are active
* lighter tray tip message after menu is updated in settings
* fix a bug when retrieving icons for documents
* change cursor for an hand for all buttons in Gui
* support icons for document being executable files
Version: 3.0.3 (2014-07-20)
* remove "supported dialog boxes" management
* in gui remove listview, add/edit/remove buttons, reposition other buttons
* remove add dialog box menu, save dialog box, dialog is supported function
Version: 3.0.2 (2014-07-19)
* add favorite type "F" folder, "D" document or "S" submenu and refactor all
* remove or add ... to main menu items
* manage icons resource at init, supporting XP and Win7+
* include parent menu dropdown list when add favorite
* fix old 2.0 bug not detecting name already used when adding from add this folder
* menu icon size default size to 16 for XP and 24 for other OS
Version: 3.0.1 (2014-07-15)
* do not check if network favorites exist
* error icon when local favorite does not exist (removed feature)
* error message when unavailable local favorite is selected in popup menu
* traytip status when refreshing menus
Version: 3.0.0 (2014-07-14)
* support favorite documents as popup menu items, add Document radio button to add dialog box
* when adding document, suggest short name for menu
* when menu item is a document, launch it with Run
* add icons to folders menu, submenus, documents and special folders
* add Settings Option for menu icon size, default size to 24
* keep the regular tray icon when suspended
* implement Exit tray menu
* disable separator editing
* adapt labels to "favorites" instead of "folders"
* build function to auto-center action buttons in Gui
Version: 2.2.1 (2014-07-11)
* fix bug when adding a folder to a submenu using drag and drop
* add an incentive message about drag and drop at the bottom of Settings window
* ignore submenu change in Settings when user select the current menu
Version: 2.2 (2014-07-06)
* support drag and drop to add favorite
* make the cursor change to a hand when the mouse pointer is over buttons or clickable text in Settings dialog box (tried to also implement tooltips but even with a timer, it flickers too much)
* Recent folders menu now shown in a detached menu, at the calling popup menu location, refreshed each time it is opened, with tooltip while refreshing
* fix a bug with number of Recent folders hide/display in Settings, Options
* fix layout bug in edit folder dialog box
* fix bug with Switch to Explorer opening a new window
* replace PCAstuces review URL with Freewares & Tutos
Version: 2.1.1 (2014-06-25)
* complete translation of mouse button names
* fix bug when changing Settings shortcut
* fix PCAstuces URL missing
Version: 2.1 (2014-06-17)
* when adding this folder, select in which menu to add the new folder
* new button when edit menu entry to open this menu
* in edit folder dialog box, set focus to and select folder name
* on-demand recent folders update to keep the popup menu snappy regardless of the number of recent items to parse or the performance of the PC
* option in settings to choose the number of recent folders in popup menu, now default to 10
* refactor (code merge) of GuiAddFavoriteSave and GuiEditFavoriteSave
* allow to add this folder from a network folder starting with "\\"
* fix bug with up arrow to go to parent menu
* addition of Dutch translation (thanks to Pieter Dejonghe!)
* fix missing translations
Version: 2.0.3 (2014-06-06)
* fix bugs with switch folders and recent folders options
* update german translation
Version: 2.0.2 (2014-06-03)
* improve performance of Recent Folders menu building, process only recent folders in recent items
* fix bug when a recent folder is not available (only XP?)
* fix header bug in diagnostic mode
Version: 2.0.1 (2014-06-01)
* complete german translation
* fix language typos
Version: 2.0.0 (2014-05-28)
* see all additions from v1.5 ALPHA to v1.9 BETA
Version: v1.9 BETA (not to be released) (2014-05-27)
* fix bug missing error message and other language minor changes
* reorder popup menu and place settings, add this folder and support freeware menus at the end of main menu
* reorder checkboxes in GuiOptions
* support recent folders on Win XP
* loading language files and images to the exe files
* create a "Switch..." submenu for "Switch to Explorer" and "Switch in dialog box"options
* allow "Switch to Explorer" menu to open a new window (with combining Middle mouse button with the Shift key)
* prevent app from running directly from the zip file or running in a write-protected folder
* new "Support freeware" dialog box and options
* internal changes in the check for update function
* better error handling if error occurs during ComObjCreate, situation occurring when Directory Opus is running (tested with v11.4)
* basic support for Directory Opus v11.4 (navigate and add this folder) similar to FreeCommander XE, fix bugs in FreeCommanderXE support
Version: v1.8 ALPHA (not to be released) (2014-05-04)
* add switch in dialog box to other explorer windows already opened
* lMenuReservedShortcuts management with translations
* sort folders button
* folder up button
* translated help to French
* support freeware to popup menu
* blnMenuReady before popup
Version: v1.7 ALPHA (not to be released) (2014-04-27)
* new settings dialog box layout with icons to add, edit or remove folders or dialog boxes
* icons to open help, about and settings dialog boxes
* dropdown to select the submenu to edit
* left arrow to go back to edit the menu(s) previously displayed
* double-click to edit folders or supported dialog boxes
* adjustments to dialog boxes for German and French translation
* updated about and help dialog boxes
* solved a bug when Add this folder in some type of dialog boxes
Version: v1.6 ALPHA (not to be released) (2014-04-19)
* implement submenus ini file data structure and objects for folders
* v1 ini file format automatic upgrade to v2 (all v1 folders placed in main menu)
* load and save folders and submenus to ini file
* display popup menus with submenus, disable empty submenus
* add a dropdown menu to settings window to select the menu to edit
* settings pugrade to add, edit, remove, move up or down submenus
* add folder to the current submenu
* add folder from popup menu to main menu
* move folders or menus to other submenus
* double-click an folder or submenu item in settings to edit it
* update popup menus as settings are changed, backup available if user cancel settings changes
* support numeric shortcuts for submenus
* error checking: avoid duplicate names when moving an item to another submenu
* error checking: avoid moving a submenu under itself
Version: v1.5 ALPHA (not to be released) (2014-03-22)
* add recent folders sub-menu
* add ini variable RecentFolders
* when blnDisplayMenuShortcuts reserve shortcut chars for app's items in menus
* add GetDeepestFolderName as function
* add ValueIsInObject function
* add language dropdown
* display full folder names in recent folders
* add switch submenu to activate any other open Explorer
* add DisplayRecentFolders and DisplaySwitchMenu options in Options dialog box and ini file
Version: FoldersPopup v1.2.7 (2014-04-25)
* Workaround to make the "Run Explorer" command work in rare configuration
* Fix a bug in the check for update command
Version: FoldersPopup v1.2.6 (2014-04-24)
* Workaround for the hash (aka Sharp / "#") bug in Shell.Application that occurs only when navigatin in the current Explorer window to a subfolder including # in its parent path (eg.: C:\C#\Project)
* Windows XP only: fix a bug when navigating to special folder "My Pictures" in dialog boxes
Version: FoldersPopup v1.2.5 (2014-04-19)
* Support for FreeCommander XE
* Compatible with Clover (opens the folder in a new tab)
* Fix wrong error message issue #28
Version: FoldersPopup v1.2.4 (2014-04-17)
* Fix shortcut (hotkey) assignements error (not a valid key namse error) on Windows system with keyboard regional settings supporting Cyrillic letters (Russian and others)
Version: FoldersPopup v1.2.3 (2014-02-25)
* Windows XP only: revert to pre-1.2.2 state due to a different behaviour of Winddows Explorer in XP
Version: FoldersPopup v1.2.2 (2014-02-20)
* opens new Explorer windows complying with the Explorer navigation pane setting
Version: FoldersPopup v1.2.1 (2014-02-01)
* fix a bug that added separator lines at the bottom of Tray Menu (one line added at each display of the popu menu)
* improve diagnostic data collection (always at the user's discretion)
Version: FoldersPopup v1.2 (2014-01-26)
* add an option to add numeric keyboard shortcuts to launch folders in popup menu
* add an option to display the popup menu at a fix position
* add a diagnostic mode to collect support info (add DiagMode=1 under [Global] section in ini file)
* redesign of the Options dialog box
Version: FoldersPopup v1.01 (2013-12-24)
* bug fix: mouse and keyboard triggers were disabled in non-explorer windows
Version: FoldersPopup v1.0 (First official release, 2013-12-23)
* configurable mouse button and keyboard triggers in a new "Options" dialog box
* new keyboard triggers (by default, Windows-K and Shift-Windows-K) in addition to mouse button triggers (by default, Middle mouse and Shift-Middle mouse buttons)
* add "Run at startup" checkbox to "Options" dialog box to launch Folders Popup automatically at Windows startup
* add "Display the startup tray tip" checkbox to "Options" dialog box to display or hide the Folders popup's tray tip
* add "Display Special Folders" checkbox to "Options" dialog box to enable/disable navigation to special folders (My Computer, Network, Recycle bion, etc.) in popup menu
* better formated startup help tray tip
* close "Settings" dialog box with Escape key
Version: FoldersPopup v0.9 BETA (2013-11-11)
* implemented startup option in tray and check4update
* removed debugging code, prepare for compiler, removed external pictures
* standardize dialog box titles, various text fixes
* renamed the app FoldersPopup
Version: PopupFolders v0.5 ALPHA (last alpha version, 2013-11-11)
* implemented GuiAbout and GuiHelp, added About and Help to tray menu, tray tip displayed only 5 times
* removed file:/// protocol prefix, added support for ExploreWClass, implemented try/catch to Explore shell method, offer to add manually when add folder failed
Version: PopupFolders v0.4 ALPHA (2013-11-11)
* add settings hotkey to ini file (default Crtl-Windows-F), enable AddThisFolder in all version Explorer and only in WIN_7/Win_8 dialog boxes (not working in WIN_XP)
* add GuiSave, GuiCancel, RemoveFolder, EditFolder, AddSeparator, MoveFolderUp/Down, RemoveDialog, EditDialog, fix bug in GuiShow, add tray icon
Version: PopupFolders v0.3 ALPHA (2013-11-10)
* add NavigateConsole for console support (command prompt CMD)
* change .ini filename to new app name
Version: PopupFolders v0.2 ALPHA (2013-11-09)
* renamed app PopupFolders, isolate text into language variables
Version: DirMenu3 v0.1 ALPHA (2013-11-05)
* init skeleton, read ini file and create arrays for folders menu and supported dialog boxes
* create language file, build gui, tray menu and folder menu, skeleton for front end buttons and commands
* create AddThisDialog menu, MButton condition, CanOpenFavorite improvements with WindowIsAnExplorer, WindowIsDesktop and DialogIsSupported
* add SpecialFolders menu, OpenFavorite for Explorer and Desktop, NavigateExplorer
* support MS Office dialog boxes on WinXP (bosa_sdm_), open special folders in explorers
* NavigateDialog, add Desktop, Document and Pictures special folders, open these special menus in dialog boxes, enabling/disabling the appropriate menus in dialog boxes or explorers
Version: DirMenu v2.2 (never released / not stable - base of a total rewrite to DirMenu3)
* manage (add, modify or delete) supported dialog box titles in the Gui
* suggest current dialog box when adding a name
* save the supported dialog box names on the first line of the settings file (dirmenu.txt)
* add "Add This Dialog" to the MButton menu to add the current dialog box name (need to desactivate when in an already supported dialog box)
* added Win8 to the list of supported versions (assumed as equal to Win7 - could not test myself)
* removed the "Menu File" button because not needed anymore
* fixed an issue when 2 folders had the same name (now preventing the use of an existing name)
* change default setting filename to "DirMenu2.txt" to avoid upgrade errors
* upgrade previous versions settings files to v2.2
* ask confirmation before discarding changes with Revert or Cancel buttons
* replaces RegEx on strDialogNames with DialogIsSupported() function on the ListView
Version: DirMenu v2.1
* make it work with any locale (still working with English)
* put supported dialog box titles in a variable (strDialogNames) at the top of the script for easy editing
* put DirMenu data file name in a variable (strDirMenuFile) at the top of the script for easy editing
* add "Add This Folder" to the MButton menu to add the current folder
* add "Menu File" button to open de DirMenu.txt file for edition in Notepad
* propose the deepest folder name as default name for a new folder
*/
;========================================================================================================================
; --- COMPILER DIRECTIVES ---
;========================================================================================================================
; Doc: http://fincs.ahk4.net/Ahk2ExeDirectives.htm
; Note: prefix comma with `
;@Ahk2Exe-SetName FoldersPopup
;@Ahk2Exe-SetDescription Folders Popup (freeware)
;@Ahk2Exe-SetVersion 5.2.3
;@Ahk2Exe-SetOrigFilename FoldersPopup.exe
;========================================================================================================================
; INITIALIZATION
;========================================================================================================================
#NoEnv
#SingleInstance force
#KeyHistory 0
ListLines, Off
DetectHiddenWindows, On
ComObjError(False) ; we will do our own error handling
; avoid error message when shortcut destination is missing
; see http://ahkscript.org/boards/viewtopic.php?f=5&t=4477&p=25239#p25236
DllCall("SetErrorMode", "uint", SEM_FAILCRITICALERRORS := 1)
; By default, the A_WorkingDir is A_ScriptDir.
; When the shortcut is created by Inno Setup, the working is set to the folder under {userappdata}.
; In portable mode, the user can set the working directory in his own Windows shortcut.
; If user enable "Run at startup", the "Start in:" shortcut option is set to the current A_WorkingDir.
; If A_WorkingDir equals A_ScriptDir and the file _do_not_remove_or_rename.txt is found in A_WorkingDir
; it means that FP has been installed with the setup program but that it was launched directly in the
; Program Files directory instead of using the Start menu or Startup shortcuts. In this situation, we
; know that the working directory has not been set properly. The following lines will fix it.
if (A_WorkingDir = A_ScriptDir) and FileExist(A_WorkingDir . "\_do_not_remove_or_rename.txt")
SetWorkingDir, %A_AppData%\FoldersPopup
; Force A_WorkingDir to A_ScriptDir if uncomplied (development phase)
;@Ahk2Exe-IgnoreBegin
; Piece of code for development phase only - won't be compiled
; see http://fincs.ahk4.net/Ahk2ExeDirectives.htm
SetWorkingDir, %A_ScriptDir%
; to test user data directory: SetWorkingDir, %A_AppData%\FoldersPopup
ListLines, On
; / Piece of code for developement phase only - won't be compiled
;@Ahk2Exe-IgnoreEnd
OnExit, CleanUpBeforeExit ; must be positioned before InitFileInstall to ensure deletion of temporary files
Gosub, InitFileInstall
Gosub, InitLanguageVariables
global strAppName := "FoldersPopup"
global strCurrentVersion := "5.2.3" ; "major.minor.bugs" or "major.minor.beta.release"
global strCurrentBranch := "prod" ; "prod" or "beta", always lowercase for filename
global strAppVersion := "v" . strCurrentVersion . (strCurrentBranch = "beta" ? " " . strCurrentBranch : "")
global str32or64 := A_PtrSize * 8
global blnDiagMode := False
global strDiagFile := A_WorkingDir . "\" . strAppName . "-DIAG.txt"
global strIniFile := A_WorkingDir . "\" . strAppName . ".ini"
global strIniBackupFile := A_WorkingDir . "\" . strAppName . "-backup.ini"
global blnMenuReady := false
global arrSubmenuStack := Object()
global arrSubmenuStackPosition := Object()
global objIconsFile := Object()
global objIconsIndex := Object()
global strHotkeyNoneModifiers := ">^!+#" ; right-control/atl/shift/windows impossible keys combination
global strHotkeyNoneKey := "9"
global strColumnBreakIndicator := "==="
if InStr(A_ScriptDir, A_Temp) ; must be positioned after strAppName is created
; if the app runs from a zip file, the script directory is created under the system Temp folder
{
Oops(lOopsZipFileError, strAppName)
ExitApp
}
;@Ahk2Exe-IgnoreBegin
; Piece of code for developement phase only - won't be compiled
if (A_ComputerName = "JEAN-PC") ; for my home PC
strIniFile := A_WorkingDir . "\" . strAppName . "-HOME.ini"
else if InStr(A_ComputerName, "STIC") ; for my work hotkeys
strIniFile := A_WorkingDir . "\" . strAppName . "-WORK.ini"
; / Piece of code for developement phase only - won't be compiled
;@Ahk2Exe-IgnoreEnd
; Keep gosubs in this order
Gosub, InitSystemArrays
Gosub, InitLanguage
Gosub, InitLanguageArrays
Gosub, InitSpecialFolders
Gosub, InitGuiControls
Gosub, LoadIniFile
; must be after LoadIniFile
IniWrite, %strCurrentVersion%, %strIniFile%, Global, % "LastVersionUsed" . (strCurrentBranch = "beta" ? "Beta" : "Prod")
if (blnDiagMode)
Gosub, InitDiagMode
if (blnUseColors)
Gosub, LoadTheme
; build even if blnDisplaySpecialFolders or blnDisplaySwitchMenu are false because they could become true
; no need to build Recent folders menu at startup since this menu is refreshed on demand
if (A_OSVersion = "WIN_XP")
Gosub, BuildSpecialFoldersMenu
Gosub, BuildFoldersInExplorerMenu ; need to be initialized here - will be updated at each call to popup menu
Gosub, BuildGroupMenu
Gosub, BuildClipboardMenu
Gosub, BuildMainMenu
Gosub, BuildGui
Gosub, BuildTrayMenu
if (blnCheck4Update)
Gosub, Check4Update
IfExist, %A_Startup%\%strAppName%.lnk ; update the shortcut in case the exe filename changed
{
FileDelete, %A_Startup%\%strAppName%.lnk
FileCreateShortcut, %A_ScriptFullPath%, %A_Startup%\%strAppName%.lnk, %A_WorkingDir%
Menu, Tray, Check, %lMenuRunAtStartup%
}
if (blnDisplayTrayTip)
{
TrayTip, % L(lTrayTipInstalledTitle, strAppName)
, % L(lTrayTipInstalledDetail, strAppName
, Hotkey2Text(strModifiers1, strMouseButton1, strOptionsKey1)
, Hotkey2Text(strModifiers3, strMouseButton3, strOptionsKey3)
, Hotkey2Text(strModifiers2, strMouseButton2, strOptionsKey2)
, Hotkey2Text(strModifiers4, strMouseButton4, strOptionsKey4))
; ~4~ and ~5~ not used in new EN text but keep them for compatibility with untranslated texts
, , 17 ; 1 info icon + 16 no sound)
Sleep, 20 ; tip from Lexikos for Windows 10 "Just sleep for any amount of time after each call to TrayTip" (http://ahkscript.org/boards/viewtopic.php?p=50389&sid=29b33964c05f6a937794f88b6ac924c0#p50389)
}
blnMenuReady := true
; Load the cursor and start the "hook"
objCursor := DllCall("LoadCursor", "UInt", NULL, "Int", 32649, "UInt") ; IDC_HAND
OnMessage(0x200, "WM_MOUSEMOVE")
; To popup menu when left click on the tray icon - See AHK_NOTIFYICON function below
OnMessage(0x404, "AHK_NOTIFYICON")
; Create a mutex to allow Inno Setup to detect if FP is running before uninstall or update
DllCall("CreateMutex", "uint", 0, "int", false, "str", strAppName . "Mutex")
; ### only when debugging Gui
; Gosub, GuiShow
; Gosub, GuiOptions
; Gosub, GuiAddFavorite
; Gosub, GuiAddFromPopup
; Gosub, GuiAddFromDropFiles
; Gosub, GuiEditFavorite
; Gosub, PopupMenuNewWindowKeyboard
; Gosub, BuildFoldersInExplorerMenu
; Gosub, BuildGroupMenu
; Gosub, BuildClipboardMenu
; Gosub, GuiGroupSaveFromMenu
; Gosub, GuiGroupsManage
; Gosub, FoldersInExplorerMenuShortcut
; Gosub, PopupMenuCopyLocation
return
/*
REMOVED IN v4.2.1 BECAUSE OF A SIDE EFFECT IN XL 2010
; prevent double-click on some static control to overwrite the clipboard with the image URL (a windows "undesired feature")
; see http://www.autohotkey.com/board/topic/94962-doubleclick-on-gui-pictures-puts-their-path-in-your-clipboard/
OnClipboardChange:
If A_EventInfo
ClipboardAllBK := ClipboardAll
return
*/