Likurg Posted March 16, 2010 Share Posted March 16, 2010 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. Link to comment Share on other sites More sharing options...
martin Posted March 16, 2010 Share Posted March 16, 2010 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. Link to comment Share on other sites More sharing options...
Likurg Posted March 17, 2010 Author Share Posted March 17, 2010 I've found a solution.Here it is:Link to another postAnd 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now