Skip to content

Commit

Permalink
* Fixed error when exporting to exe.
Browse files Browse the repository at this point in the history
* Fixed hotkeys not being activated.
  • Loading branch information
Pulover committed Sep 30, 2020
1 parent 735c9ed commit ca543f3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
6 changes: 5 additions & 1 deletion Documentation/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Author: Pulover \[Rodolfo U. Batista\]
Copyright © 2012-2020 Rodolfo U. Batista

Version: 5.2.3
Version: 5.2.6
Release Date: September, 2020
AutoHotkey Version: 1.1.32.00

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

# Change Log

## Version 5.2.6
* Fixed error when exporting to exe.
* Fixed hotkeys not being activated.

## Version 5.2.3
* Updated exported *Compare variables* from *If Statements* window to use expression.
* Global Context Hotkey is now saved in project file instead of ini file.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/MacroCreator_Help.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
Library: Pulover's Macro Creator
# Version: 5.2.3
# Version: 5.2.6
[www.macrocreator.com](https://www.macrocreator.com)
[Forum Board](https://www.autohotkey.com/boards/viewforum.php?f=63)
Expand Down
18 changes: 12 additions & 6 deletions MacroCreator.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
; Author: Pulover [Rodolfo U. Batista]
; Home: https://www.macrocreator.com
; Forum Board: https://www.autohotkey.com/boards/viewforum.php?f=63
; Version: 5.2.3
; Version: 5.2.6
; Release Date: September, 2020
; AutoHotkey Version: 1.1.32.00
; Copyright © 2012-2020 Rodolfo U. Batista
Expand Down Expand Up @@ -74,7 +74,7 @@ https://www.macrocreator.com/project/
; Compiler Settings
;@Ahk2Exe-SetName Pulover's Macro Creator
;@Ahk2Exe-SetDescription Pulover's Macro Creator
;@Ahk2Exe-SetVersion 5.2.3
;@Ahk2Exe-SetVersion 5.2.6
;@Ahk2Exe-SetCopyright Copyright © 2012-2020 Rodolfo U. Batista
;@Ahk2Exe-SetOrigFilename MacroCreator.exe

Expand Down Expand Up @@ -142,7 +142,7 @@ Loop
}


CurrentVersion := "5.2.3", ReleaseDate := "September, 2020"
CurrentVersion := "5.2.6", ReleaseDate := "September, 2020"

;##### Ini File Read #####

Expand Down Expand Up @@ -329,6 +329,7 @@ For _each, _Section in UserVars
Try SavedVars(_key)

UserMailAccounts := new ObjIni(UserAccountsPath)
IfDirectContext := "None"

If (DefaultEditor = "ERROR")
{
Expand Down Expand Up @@ -2968,10 +2969,14 @@ If (IncPmc)
If (Exe_Exp)
{
SplitPath, A_AhkPath,, AhkDir
Compress := ""

If (FileExist(AhkDir "\Compiler\mpress.exe"))
RunWait, "%AhkDir%\Compiler\Ahk2Exe.exe" /in "%SelectedFileName%" /bin "%AhkDir%\Compiler\Unicode 32-bit.bin" /compress 1,, UseErrorLevel
Compress := RegExReplace(A_AhkVersion, "\D") > 113200 ? "/compress 1" : "/mpress 1"
Else If (FileExist(AhkDir "\Compiler\upx.exe"))
Compress := RegExReplace(A_AhkVersion, "\D") > 113200 ? "/compress 2" : ""
Else
RunWait, "%AhkDir%\Compiler\Ahk2Exe.exe" /in "%SelectedFileName%" /bin "%AhkDir%\Compiler\Unicode 32-bit.bin",, UseErrorLevel
RunWait, "%AhkDir%\Compiler\Ahk2Exe.exe" /in "%SelectedFileName%" /bin "%AhkDir%\Compiler\Unicode 32-bit.bin" %Compress%,, UseErrorLevel
}
PmcCode := ""
MsgBox, 64, %d_Lang014%, % d_Lang015 . (HasEmailFunc.GetCapacity() ? "`n`n`n>>>>>>>>>>[" RegExReplace(d_Lang011, "(*UCP).*", "$u0") "]<<<<<<<<<<`n`n" d_Lang114 : "")
Expand Down Expand Up @@ -13499,6 +13504,7 @@ Gui, 1:-Disabled
Gui, 16:Destroy
Gui, chMacro:Default
GuiControl, 1:, ContextTip, Global <a>#If</a>: %IfDirectContext%
SavePrompt(true, A_ThisLabel)
return

SWinCancel:
Expand Down Expand Up @@ -14191,7 +14197,7 @@ If (CheckDuplicateLabels())
}
Loop, %TabCount%
{
If (("hotkey:" o_AutoKey[A_Index]) == ("hotkey:" A_ThisHotkey))
If ("" o_AutoKey[A_Index] "" = "" A_ThisHotkey "")
{
aHK_On := [A_Index]
break
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Pulover's Macro Creator is a Free Automation Tool and Script Generator based on

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

**Current Version:** 5.2.3
**Current Version:** 5.2.6

### Supported platforms

Expand Down

0 comments on commit ca543f3

Please sign in to comment.