Page 1 of 1

Add\Write Pure AHK code to PMC Script File

Posted: 28 Jan 2022, 10:14
by Mr MG
Hello,

How to add\write pure AHK code to PMC script file like this:

Code: Select all

IfNotExist, %A_ScriptDir%\tools\OSK.exe
    {
    FileCreateDir, %A_ScriptDir%\tools\
    FileInstall, C:\Windows\System32\osk.exe, %A_ScriptDir%\res\tls\OSK\OSK.exe, 1
    }

Re: Add\Write Pure AHK code to PMC Script File

Posted: 28 Jan 2022, 10:27
by Pulover
The only way to do that during playback is running a function from an external file. That is available in the Function window.

Other than that you can export and edit the ahk file.

Re: Add\Write Pure AHK code to PMC Script File

Posted: 28 Jan 2022, 16:40
by Mr MG
May I get simple example of that function window, please

Re: Add\Write Pure AHK code to PMC Script File

Posted: 28 Jan 2022, 17:32
by Pulover

Re: Add\Write Pure AHK code to PMC Script File

Posted: 30 Jan 2022, 03:17
by Mr MG
Thank You