Thanks for the tip!
I'm still having a bit of trouble though.
So far, I can get Script_B to send a message to Script_A to pause Script_A.
However, once paused, it seems that Script_A will no longer recieve messages and cannot be unpaused by Script_B.
Code:
;Script_A
Loop{
;Long and Boring highly repetitive task
;Blah
;Blah
;Blah
}
OnMessage(0x4a,"Receive_WM_COPYDATA")
Receive_WM_COPYDATA()
{
Pause Toggle
}
Code:
;Script_B
TargetScriptTitle=Script_A.ahk ahk_class AutoHotkey
SetTitleMatchMode 2
DetectHiddenWindows On
Loop{
SendMessage, 0x4a, 0, &CopyDataStruct,, %TargetScriptTitle% ;To pause Script_A (Works great!)
;Short but complex timer and image search based task
;BlahBlahBlah
SendMessage, 0x4a, 0, &CopyDataStruct,, %TargetScriptTitle% ;To unpause Script_A (Will not recieve message)
;Sleep some unit of time
}
The only things I know of that work while a script are paused are hotkeys and hot strings.
Is there anyway to get a script to accept a message while it is paused?
Thanks again!