Skip to content

Instantly share code, notes, and snippets.

@tdalon
tdalon / confluence_macro_recent_updates_table.txt
Last active July 3, 2026 15:09
Confluence Recent Updates Table
## Macro title: Recent Updates Table
## Description: Displays recently updated content in a table with optional filters and pageId-based scope handling.
## Body processing: No macro body
## Output format: HTML
## @param scope:title=Scope|type=string|required=false|default=@currentspace|desc=Comma-separated: @currentpage, @currentspace, @all, SPACEKEY, or PAGEID:123456789
## @param labels:title=Filter Labels|type=string|required=false|default=|desc=Optional comma-separated labels; content must contain at least one
## @param authors:title=Authors|type=string|required=false|default=|desc=Optional comma-separated creators; supports @current
## @param lastModifiers:title=Last Modifiers|type=string|required=false|default=|desc=Optional comma-separated last modifiers; supports @current
## @param types:title=Types|type=string|required=false|default=page|desc=Comma-separated list: page, blog, blogpost, post, @all
## @param limit:title=Max Results|type=int|required=false|default=20|desc=Number of content items to show
@tdalon
tdalon / confluence_macro_task_user_currentpage.txt
Last active July 3, 2026 14:09
Confluence User Macro Task Report - Current Page
## Source https://community.atlassian.com/forums/Confluence-questions/Can-quot-Current-Page-quot-be-used-in-a-Task-Report/qaq-p/1375109?referer=https://community.atlassian.com/forums/Confluence-questions/Can-quot-Current-Page-quot-be-used-in-a-Task-Report/qaq-p/1375109
## Developed by: Davin Studer
## Date created: 05/12/2020
## @param Label:title=Label(s)|type=string|required=false|desc=Only show tasks on pages with this label
## @param Assignees:title=Assigned to|type=username|required=false|multiple=true|desc=Only show tasks assigned to these people
## @param Creators:title=Created by|type=username|required=false|multiple=true|desc=Only show tasks created by these people
## @param Created:title=Created after|type=string|required=false|desc=Only show tasks created on or after this date. Dates must be entered as dd-mm-yyyy.
## @param Status:title=Task status|type=enum|enumValues=complete,incomplete|default=incomplete|desc=
## @param PageSize:title=Number of tasks per page|type=enum|enumValues=10,20,40|defaul
@tdalon
tdalon / ToggleTeamsSharingControlBar.ahk
Last active April 29, 2026 14:59
Teams Toggle Sharing Control Bar
#Requires AutoHotkey v1
#NoEnv
#NoTrayIcon
#SingleInstance Force
SetTitleMatchMode, 1
Names := ["Sharing control bar", "Freigabesteuerungsleiste"]
for _, Name in Names
{
@tdalon
tdalon / OpenTeamsMeetingChat.vba
Last active October 9, 2025 06:56
Outlook VBA: Open Teams Meeting
Sub OpenTeamsMeetingChat()
Dim Item As Object
Set Item = GetCurrentItem()
If Item Is Nothing Then
MsgBox "No Item selected"
Exit Sub
End If
If Not TypeOf Item Is Outlook.AppointmentItem Then
Exit Sub
@tdalon
tdalon / Main.bas
Last active November 28, 2024 07:52
Excel VBA global property example
Private pLocalPath As String
Public Property Get LocalPath() As String
If pLocalPath = "" Then
pLocalPath = GetLocalPath(ThisWorkbook.Path)
End If
LocalPath = pLocalPath
End Property
' Using Property somewhere else in VBA - example
@tdalon
tdalon / CopyMeeting.bas
Last active November 12, 2024 11:36
Outlook VBA to copy a Meeting
Sub Duplicate()
Dim Item As Object
Set Item = GetCurrentItem()
If Item Is Nothing Then
MsgBox "No Item selected"
Exit Sub
End If
If Not TypeOf Item Is Outlook.AppointmentItem Then
Exit Sub
@tdalon
tdalon / Confluence_GetVerLink.ahk
Created February 26, 2024 10:38
Confluence: Get Version Information
@tdalon
tdalon / AddNumbers.js
Created February 7, 2024 10:31
Confluence Bookmarklets for Numbered Headings
function addIndex() {
var indices = [];
jQuery(".ak-editor-content-area .ProseMirror").find("h1,h2,h3,h4,h5,h6").each(function(i,e) {
var hIndex = parseInt(this.nodeName.substring(1)) - 1;
if (indices.length - 1 > hIndex) {
indices= indices.slice(0, hIndex + 1 );
}
if (indices[hIndex] == undefined) {
indices[hIndex] = 0;
@tdalon
tdalon / PasteImageLink.ahk
Last active February 7, 2024 09:07
Paste web image link in Confluence Cloud Fabric Editor
@tdalon
tdalon / Teams_Mute.ahk
Last active November 3, 2023 13:43
Teams Mute AutoHotkey
Teams_Mute(State := 2,showInfo:=true,restoreWin:=true){
; State:
; 0: mute off, unmute
; 1: mute on
; 2*: (Default): Toggle mute state
WinId := Teams_GetMeetingWindow()
If !WinId ; empty
return