    

 ## On this page

  

 

 # getMacroTimeout

 Last update: 30.07.2026 

public [getMacroTimeout](get-macro-timeout.md)(macroName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)

get the timeout for a macro if the macro exists

#### Return

the number of seconds to allow a script to run before canceling it; -1 indicates no timeout

#### Parameters

macroNamethe name of the macro