Possible to access another script with the main script? Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
imkira3
Posts: 84
Joined: 10 Jan 2023, 13:57
Contact:

Possible to access another script with the main script?

Post by imkira3 » 08 Feb 2023, 13:39

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?

teadrinker
Posts: 4326
Joined: 29 Mar 2015, 09:41
Contact:

Re: Possible to access another script with the main script?  Topic is solved

Post by teadrinker » 08 Feb 2023, 13:51

All this sounds overcomplicated. Is it really necessary? :)
In any case, you can exchange information between scripts using SendMessage.

imkira3
Posts: 84
Joined: 10 Jan 2023, 13:57
Contact:

Re: Possible to access another script with the main script?

Post by imkira3 » 08 Feb 2023, 14:06

teadrinker wrote:
08 Feb 2023, 13:51
All this sounds overcomplicated. Is it really necessary? :)
In any case, you can exchange information between scripts using SendMessage.
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
Posts: 4326
Joined: 29 Mar 2015, 09:41
Contact:

Re: Possible to access another script with the main script?

Post by teadrinker » 08 Feb 2023, 14:08

Good luck, feel free to ask if anything is unclear.

Post Reply

Return to “Ask for Help (v2)”