Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request template for save, load, execute, and stop ahk macro scripts. #3

Open
MatteCrystal opened this issue Jun 18, 2020 · 1 comment

Comments

@MatteCrystal
Copy link

MatteCrystal commented Jun 18, 2020

I'm thinking of using Neutron as a way to make a nice GUI interface capable of creating macros using ahk scripts.

I'm pretty good with HTML, CSS, and JS so I'm not overly concerned about that. All I really need to get started is an understanding/example of how to write and to tie the following functions to a button click or checkbox

  1. How to save textbox to file as .ahk script
  2. How to execute .ahk script
  3. How to detect if a specific .ahk script is already running
  4. How to stop the execution of a running .ahk script
  5. How to read a folder with multiple .ahk scripts and populate page with label and button for each

I think this functionality would effectively lay the groundwork for a variety of different use cases of Neutron that I don't think was initially considered. But I'm not totally sure how to go about doing this myself or if this is even possible at this time.

@G33kDude
Copy link
Owner

G33kDude commented Jul 8, 2020

I don't think the examples included with Neutron are the appropriate place for these tasks, most of them have nothing to do with Neutron, and the Neutron-related portions of the rest are already demonstrated.

Item 1 can be done by reading the textbox's value as demonstrated in an example, then using that text in FileAppend/with a file object.
Item 2 can be done with the Run command, and is unrelated to Neutron.
Items 3 and 4 are, I believe, documented in the AutoHotkey documentation and are unrelated to Neutron.
Item 5 would be a file reading loop plus some page generation code, and dynamic page generation is already demonstrated by an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants