Skip to content

Commit ca543f3

Browse files
committed
* Fixed error when exporting to exe.
* Fixed hotkeys not being activated.
1 parent 735c9ed commit ca543f3

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

Documentation/About.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Author: Pulover \[Rodolfo U. Batista\]
88
Copyright © 2012-2020 Rodolfo U. Batista
99

10-
Version: 5.2.3
10+
Version: 5.2.6
1111
Release Date: September, 2020
1212
AutoHotkey Version: 1.1.32.00
1313

@@ -37,6 +37,10 @@ chosen1ft for fixing the mixing rows bug when saving a project.
3737

3838
# Change Log
3939

40+
## Version 5.2.6
41+
* Fixed error when exporting to exe.
42+
* Fixed hotkeys not being activated.
43+
4044
## Version 5.2.3
4145
* Updated exported *Compare variables* from *If Statements* window to use expression.
4246
* Global Context Hotkey is now saved in project file instead of ini file.

Documentation/MacroCreator_Help.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
Library: Pulover's Macro Creator
33
4-
# Version: 5.2.3
4+
# Version: 5.2.6
55
[www.macrocreator.com](https://www.macrocreator.com)
66
[Forum Board](https://www.autohotkey.com/boards/viewforum.php?f=63)
77

MacroCreator.ahk

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; Author: Pulover [Rodolfo U. Batista]
66
; Home: https://www.macrocreator.com
77
; Forum Board: https://www.autohotkey.com/boards/viewforum.php?f=63
8-
; Version: 5.2.3
8+
; Version: 5.2.6
99
; Release Date: September, 2020
1010
; AutoHotkey Version: 1.1.32.00
1111
; Copyright © 2012-2020 Rodolfo U. Batista
@@ -74,7 +74,7 @@ https://www.macrocreator.com/project/
7474
; Compiler Settings
7575
;@Ahk2Exe-SetName Pulover's Macro Creator
7676
;@Ahk2Exe-SetDescription Pulover's Macro Creator
77-
;@Ahk2Exe-SetVersion 5.2.3
77+
;@Ahk2Exe-SetVersion 5.2.6
7878
;@Ahk2Exe-SetCopyright Copyright © 2012-2020 Rodolfo U. Batista
7979
;@Ahk2Exe-SetOrigFilename MacroCreator.exe
8080

@@ -142,7 +142,7 @@ Loop
142142
}
143143

144144

145-
CurrentVersion := "5.2.3", ReleaseDate := "September, 2020"
145+
CurrentVersion := "5.2.6", ReleaseDate := "September, 2020"
146146

147147
;##### Ini File Read #####
148148

@@ -329,6 +329,7 @@ For _each, _Section in UserVars
329329
Try SavedVars(_key)
330330

331331
UserMailAccounts := new ObjIni(UserAccountsPath)
332+
IfDirectContext := "None"
332333

333334
If (DefaultEditor = "ERROR")
334335
{
@@ -2968,10 +2969,14 @@ If (IncPmc)
29682969
If (Exe_Exp)
29692970
{
29702971
SplitPath, A_AhkPath,, AhkDir
2972+
Compress := ""
2973+
29712974
If (FileExist(AhkDir "\Compiler\mpress.exe"))
2972-
RunWait, "%AhkDir%\Compiler\Ahk2Exe.exe" /in "%SelectedFileName%" /bin "%AhkDir%\Compiler\Unicode 32-bit.bin" /compress 1,, UseErrorLevel
2975+
Compress := RegExReplace(A_AhkVersion, "\D") > 113200 ? "/compress 1" : "/mpress 1"
2976+
Else If (FileExist(AhkDir "\Compiler\upx.exe"))
2977+
Compress := RegExReplace(A_AhkVersion, "\D") > 113200 ? "/compress 2" : ""
29732978
Else
2974-
RunWait, "%AhkDir%\Compiler\Ahk2Exe.exe" /in "%SelectedFileName%" /bin "%AhkDir%\Compiler\Unicode 32-bit.bin",, UseErrorLevel
2979+
RunWait, "%AhkDir%\Compiler\Ahk2Exe.exe" /in "%SelectedFileName%" /bin "%AhkDir%\Compiler\Unicode 32-bit.bin" %Compress%,, UseErrorLevel
29752980
}
29762981
PmcCode := ""
29772982
MsgBox, 64, %d_Lang014%, % d_Lang015 . (HasEmailFunc.GetCapacity() ? "`n`n`n>>>>>>>>>>[" RegExReplace(d_Lang011, "(*UCP).*", "$u0") "]<<<<<<<<<<`n`n" d_Lang114 : "")
@@ -13499,6 +13504,7 @@ Gui, 1:-Disabled
1349913504
Gui, 16:Destroy
1350013505
Gui, chMacro:Default
1350113506
GuiControl, 1:, ContextTip, Global <a>#If</a>: %IfDirectContext%
13507+
SavePrompt(true, A_ThisLabel)
1350213508
return
1350313509

1350413510
SWinCancel:
@@ -14191,7 +14197,7 @@ If (CheckDuplicateLabels())
1419114197
}
1419214198
Loop, %TabCount%
1419314199
{
14194-
If (("hotkey:" o_AutoKey[A_Index]) == ("hotkey:" A_ThisHotkey))
14200+
If ("" o_AutoKey[A_Index] "" = "" A_ThisHotkey "")
1419514201
{
1419614202
aHK_On := [A_Index]
1419714203
break

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Pulover's Macro Creator is a Free Automation Tool and Script Generator based on
44

55
[www.macrocreator.com](https://www.macrocreator.com)
66

7-
**Current Version:** 5.2.3
7+
**Current Version:** 5.2.6
88

99
### Supported platforms
1010

0 commit comments

Comments
 (0)