Jump to content

Recommended Posts

Posted

Hello.

I have two autoit scripts. I want to pause one script from another. As I know, it is possible by clicking on a tray action of a script.

But how to click on a tray icon from another script??

Any help would be highly appreciated.

Posted

Hello.

I have two autoit scripts. I want to pause one script from another. As I know, it is possible by clicking on a tray action of a script.

But how to click on a tray icon from another script??

Any help would be highly appreciated.

I don't know, but you would also need to read the state of pause. It might be better to send a mssage from one script to the other to set a pause flag and get an answer on the pause state. It isn't quite the same as pausing from the tray icon but you have more control.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Posted

I've found a solution.

Here it is:

Link to another post

And by the way, as I know, you have to close the handle, so you have to insert one line of code to both methods _ResumeExe and _SuspendExe:

DllCall("kernel32.dll", "ptr", "CloseHandle", "ptr", $hwnd)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...