Is there an online compiler?

Propose new features and changes
Bruttosozialprodukt
Posts: 451
Joined: 24 Jan 2014, 22:28

Re: Is there an online compiler?

18 Oct 2017, 05:33

If performance is not an issue, you could use an emulator. QEMU probably being the most popular one on Linux for x86 emulation.
But expect extremely terrible performance. Several hours for the boot wouldn't surprise me at all.

For a translation layer, well on the one side we have the ZenFone which, thanks to its CPU, can translate ARM instructions to x64 instructions without major performance issues.
And software-wise I'm only aware of Wine which can translate Win32 functionality to its Linux equivalents, but only for the same architecture.

About your "solutions":
- Parallels just seems to a a remote access application, similar to OpenVNC or TeamViewer.
- CrossOver on Android seems to heavily rely on Intel's ARM to x64 translation magic and thus would only work on the ZenFone and some ChromeBooks apparently.
User avatar
Reloaded
Posts: 279
Joined: 25 Aug 2017, 08:48

Re: Is there an online compiler?

18 Oct 2017, 07:58

Or you just can use Resource Hacker™ a Perfect Working .exe to .ahk compiler
Bruttosozialprodukt
Posts: 451
Joined: 24 Jan 2014, 22:28

Re: Is there an online compiler?

18 Oct 2017, 08:01

We've been through this. We are talking about actually running AHK code. Besides that, the tool you linked does not look like it would run on either Linux or ARM, not to mention the two combined.
murataygun
Posts: 10
Joined: 07 Aug 2015, 15:53

Re: Is there an online compiler?

10 Jan 2019, 08:24

Bruttosozialprodukt wrote:
20 May 2016, 02:48
An online compiler should be pretty easy to set up if you have a windows server.
In node.js it could be something as simple as that:

Code: Select all

var fs = require('fs');
var express = require('express');
var app = express.createServer();
var bodyParser = require('body-parser');
var execFile = require('child_process').execFile;

app.use(bodyParser.urlencoded({
  extended: true
})); 

app.post('/ahk-online-compiler', function(req, res) {
    fs.writeFile("%temp%/script.ahk", req.body.scriptcode, function(err) {
        if (!err) {
            exexFile("%programfiles%/AutoHotkey/Compiler/Ahk2Exe.exe",  "/in %temp%/script.ahk /out %temp%/script.exe", function(err, stdout, stderr) {
                if (!err) {
                    res.sendFile("temp%/script.exe");
                }
            });
        }
    }); 
});

app.get('/ahk-online-compiler', function(req, res) {
    var htmlCode = `
      <!DOCTYPE html>
      <html>
        <head>
          <title>AHK Online compiler</title>
        </head>
        <body>
          <form action="/ahk-online-compiler" method="post">
            <textarea name="scriptcode"></textarea>
            <input type="submit" value="Compile">
          </form>
        </body>
      </html>
    `;
    res.send(htmlCode);
});
(untested)
Can you give a little more info about this please. Thats what i need right now.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 7 guests