Possible to access another script with the main script? Topic is solved
Possible to access another script with the main script?
In imkira3Keys I have 2 similar scripts running in tandem, one using AutoHotkey64 and the other using AutoHotkey32. I am trying to create a new tray icon (using a third script) with identical options to the AutoHotkey tray icon menu plus my own imkira3Keys options, but to make this work I have to be able to access one script with another. For example I have to be able to make the "Pause Script" option pause both the 32-bit and 64-bit scripts, but not necessarily every single script the user is running, just the imkira3Keys scripts so I'll have to specify the script name. Basically to summarize I'm making a single tray icon to control both applications but I can't figure out how to control one script with another, is there a function for that?
-
- Posts: 4326
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: Possible to access another script with the main script? Topic is solved
All this sounds overcomplicated. Is it really necessary?
In any case, you can exchange information between scripts using SendMessage.
In any case, you can exchange information between scripts using SendMessage.
Re: Possible to access another script with the main script?
Thanks man, that sounds like exactly what I needed. I'll probably make a basic version people can use in their own scripts too. Already made an exe launcher to launch both the 32 and 64bit versions of AutoHotkey in a single click, people seemed to like that but I think having one icon instead of two would be helpful as well.teadrinker wrote: ↑08 Feb 2023, 13:51All this sounds overcomplicated. Is it really necessary?
In any case, you can exchange information between scripts using SendMessage.
-
- Posts: 4326
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: Possible to access another script with the main script?
Good luck, feel free to ask if anything is unclear.