[Solved]Pausing then Resuming

Get help with using AutoHotkey and its commands and hotkeys
SkrillexAkaCraft
Posts: 119
Joined: 25 Dec 2015, 10:01

[Solved]Pausing then Resuming

09 Feb 2018, 17:50

IS there a way to make a TrayTip that the script is either paused or resumed?

i tried

Code: [Select all] [Download] GeSHi © Codebox Plus

F11::
Pause:
TrayTip,Paused, Typer has been paused.
Pause
TrayTip, Resumed, Typer has been resumed.
return


but it seems like it only does the first TrayTip but then you cant resume the script when either of these 2 are added.


code which is needed is:

Code: [Select all] [Download] GeSHi © Codebox Plus

Pause::
Pause, Toggle, 1
TrayTip, % (A_IsPaused ? "Paused" : "Resumed"), % "Typer has been " (A_IsPaused ? "Paused" : "Resumed") "."
return


thanx to cap'n odin
Last edited by SkrillexAkaCraft on 09 Feb 2018, 18:15, edited 1 time in total.
User avatar
Nextron
Posts: 1173
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: Pausing then Resuming

09 Feb 2018, 18:15

Try something like:

Code: [Select all] [Download] GeSHi © Codebox Plus

#MaxThreadsPerHotkey 2
F11::
TrayTip,Paused, % "Typer has been " (!A_ispaused ? "paused." : "resumed.")
Pause
Return
The more I know:
The more I know,
I know nothing.

Return to “Ask For Help”

Who is online

Users browsing this forum: trafalgar30 and 55 guests