Happy 4th Of July + Needs Help

Hello guys normally when I post on the forum I normally ask a more or less glitch related post and instead am asking for some direct help. Lets say I have 1 file and I want to convert it into a EXE to hide my code and to run a program how would I go about doing this? I have no real idea of where to even begin note I’m using windows 11 on a Microsoft computer so your answer may differ as a linux user. Also just here to say happy 4th of july I know that the forum message for independence day is there but I feel like posting on the forum today. Go watch the fireworks I mean if that annoying neighbor is gonna keep shooting them off anyways :joy:.

@Papaya_Dude What is the file written in? if it is written in python there are some packages like auto-py-to-exe or by looking at ‘python script freezing’ on google.

I don’t use Windows 11, but these ‘should’ work if your using python.

3 Likes

A simple Google search for “[language] to exe” should reveal multiple ways to convert any file to exe.

(btw, I’m using Windows 11 Insider - dev variant, if that is relevant)

1 Like

Hello again I’m just here to say I truly do appreciate it. I was putting way too much thought into what I was searching like “How to make javascript code into a exe to run code globally” basically how I was searching on google and was finding nothing much love

-DGB

Oh, in that case I don’t think that is possible. Javascript code normally does not contain any code that can interact with the user, except alerts, prompts etc.
But you could try to use Qt5 to build a simple web browser that loads your page in python and then compile into a exe, if that helps.

Wait so javascript has no access to like files and other management resources?

I was gonna originally use it for full on desktop automation

My goal is to build a software that can interact with my desktop software and also my web browser like Javascript.

My goal is to build a software that can interact with my desktop software and also my web browser like Javascript

Well, in that case Python is the best way, using Selenium.
But for Windows 11 I would also recommend Microsoft Power Automate, it’s no-code and super easy to use

Wait so javascript has no access to like files and other management resources

At it’s core, no. Javascript is made for webpages, not for computer programs.

Isnt python like supper supper slow

Wouldn’t it just make more sense to learn C, C++, or C#

From my experience, it actually isn’t. Of course, it isn’t lightning fast, but it is quite OK.

Anyway, I would recommend power automate for your use case

see the issue I have with python is you can just do everything that Python does in a lower level language plus I got told it was the slowest programming language which is why I’m tempted to just go to c or do something crazy like assembly code

see the issue I have with python is you can just do everything that Python does in a lower level language plus I got told it was the slowest programming language which is why I’m tempted to just go to c or do something crazy like assembly code.

It isn’t “the slowest coding language”

See:

Power automate doesnt look like its going to work because I’m tryna have basically js code do pc automation

Power automate doesn’t look like its going to work because I’m tryna have basically js code do pc automation

You can try, but remember that Javascript is not intended to do that. Node, for example, allows you do have some basic level of interaction with your computer, but I would definitely recommend Python if you want to do automation.

alright cause I’ve gotta change ips sign in and out of accounts and all kinds of other stuff like ui and menus so its gonna be a long ride learning all this most likely

wow you are right mustve been some old out of touch people who were telling me python was the slowest

JS can run outside of a web browser and access your system resources using Node.js, Deno, or similar.

1 Like

Right but hes saying it would be less efficient then just using python and I’m saying I should just learn something like C at this point and do everything I need to do :person_shrugging:

I second the suggestion to use Node.js (or Deno) to be able to write Javascript that runs on the desktop or the command line. Code written will be cross platform to work on Linux, Windows (exe), and MacOs. For command line, simply download, but if you want a desktop GUI then use Electron. You can use any simple editor, though many use the VS Code free IDE from Microsoft.

1 Like

That’s not what I gathered. They just recommended Python for the task.

There are lighter alternatives that are starting to look like promising Electron alternatives like Tauri.

1 Like

Learning C or C++ is a good goal, though does not get you to “do everything”. Once you learn the language you then need to learn use the specific libraries and tools (Visual Studio probably since you ask about Windows) to interact with the user as a GUI desktop app. You can learn it all together, though typical first step is to learn the language.

My impression from your question is that you already know Javascript. I assume this is from some experience you have creating web pages. Node.js became popular in the past 10+ years because it allows people to use their web development javascript skills to also create applications that interact with the system. The same javascript skills, and re-used modularized code, can be contained within a browser app which also communicates with Node.js back-end system application. Typically a back-end application is a Webserver. This is what Glitch is, though the back-end can be changed (I do not know the exact details of how Glitch works).

This dual use functionality is what gave people the idea to create Electron, and other similar development environments (Tauri), to bundle frontend/backend javascript to allow you to create a single desktop app. Electron has complaints of high memory and performance issues, though still there are many desktop applications that are built with Electron. Examples are Discord, Slack, VSCode IDE, Skype, etc…

This is an endless conversation as new tools and languages evolve. Deno can be called the next generation of Node.js. Rust is a new-ish systems language that is compared to C/C++ (created by the Mozilla team for use in Firefox), and so is being used to create a new wave of applications. Python that you mentioned is also great to learn with a huge community of people to help, though I do not know about the extensions/libraries/tools used to create a single GUI Desktop that I believe you are asking in your original question.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.