I have script tooltip.ahk and I need to pause it:
Code: Select all
a := 0
Loop, {
a := a + 1
ToolTip, %a%
}
Code: Select all
PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey ; Pause
Code: Select all
a := 0
Loop, {
a := a + 1
ToolTip, %a%
}
Code: Select all
PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey ; Pause
Code: Select all
detectHiddenWindows, On
PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey ; Pause.
Code: Select all
detectHiddenWindows, On
a := 0
Loop, {
a := a + 1
ToolTip, %a%
}
I made:RHCP wrote:You also need "SetTitleMatchMode, 2". I thought it might work without it, but i forgot the hidden script window title includes the full path of the script. You only need to place these commands in the script which is posting the message.
Code: Select all
SetTitleMatchMode, 2
detectHiddenWindows, On
PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey ; Pause.
I dont understand. Can you please explain more? I need to actually pause tooltip.ahk .RHCP wrote: Note that this toggles the pause state, it doesn't explicitly pause it.
Code: Select all
#NoEnv
#SingleInstance force
a := 0
Loop, {
a := a + 1
ToolTip, %a%
}
Code: Select all
f1::
detectHiddenWindows, On
SetTitleMatchMode, 2
PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey ; Pause.
return
Thank you for help. You are right. This is bug of SciTE4AutoHotkey. When I run by double clicking files they are working as intended.trismarck wrote:I guess what happens here is when Run Script button is pressed in Scite upon launching Pause.ahk when Tooltip.ahk is already running, is that Scite restarts _all_ currently running scripts, which Scite has explicitly launched earlier.
I checked example from http://www.autohotkey.com/board/topic/1 ... ntry634811 it pauses and suspends the script. But is the difference between "pause" and "explicitly pause" ?RHCP wrote:Well this works for me, but it's identical to what you have....
tooltip.ahkCode: Select all
#NoEnv #SingleInstance force a := 0 Loop, { a := a + 1 ToolTip, %a% }
Another script.If i press f1 the script is paused. If i press it again, the script is unpaused. So it doesn't explicitly pause the script.Code: Select all
f1:: detectHiddenWindows, On SetTitleMatchMode, 2 PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey ; Pause. return
The function i linked will explicitly pause the script. Lexikos previously posted this example.
Code: Select all
PostMessage, 0x111, 65306,,, tooltip.ahk - AutoHotkey
Users browsing this forum: ht55cd3 and 262 guests