Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Dalon committed Feb 28, 2024
1 parent bd08b80 commit 9934496
Show file tree
Hide file tree
Showing 11 changed files with 3,172 additions and 1,891 deletions.
28 changes: 26 additions & 2 deletions Lib/Clip.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,26 @@ GroupAdd, PlainEditor, ahk_exe Notepad.exe
GroupAdd, PlainEditor, ahk_exe notepad++.exe
GroupAdd, PlainEditor, ahk_exe atom.exe
; -------------------------------------------------------------------------------------------------------------------
Clip_Paste(sText,restore := True) {
Clip_Paste(sText) {
; Syntax: Clip_Paste(sText)
WinClip.Paste(sText)
} ; eofun

Clip_Paste2(sText,restore:=true) {
If restore
ClipBackup:= ClipboardAll
Clipboard := sText
clipwait 0
SendInput ^v
If restore {
Clip_Wait()
Clipboard := ClipBackup
}

} ; eofun
; -------------------------------------------------------------------------------------------------------------------
Clip_Set(sText){
; Syntax: Clip_Set(sText)
;
Clipboard := sText
Clip_Wait()
} ; eofun
Expand Down Expand Up @@ -224,6 +236,18 @@ If (restore)
Clipboard := ClipBackup
return sSelection
}

/*
Clip_GetSelection1() {
;#Include UIA.ahk
el := UIA.GetFocusedElement()
if el.IsTextPatternAvailable {
selectionRange := el.GetSelection()[2]
If txt:= selectionRange.GetText()
return txt
}
} ; eofun
*/
; -------------------------------------------------------------------------------------------------------------------

Clip_ReplaceSelection(sNeedle, sReplace:=""){
Expand Down
6 changes: 3 additions & 3 deletions Lib/Confluence.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ return WebRequest
; -------------------------------------------------------------------------------------------------------------------


Confluence_ViewInHierachy(sUrl :=""){ ; @fun_Confluence_ViewInHierachy@
; Confluence_ViewInHierachy(sUrl*)
Confluence_ViewInHierarchy(sUrl :=""){ ; @fun_Confluence_ViewInHierachy@
; Confluence_ViewInHierarchy(sUrl*)
If GetKeyState("Ctrl") and !GetKeyState("Shift") {
PowerTools_OpenDoc("Confluence_ViewInHierachy")
PowerTools_OpenDoc("Confluence_ViewInHierarchy")
return
}
If (sUrl="")
Expand Down
2 changes: 0 additions & 2 deletions Lib/Connections.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,8 @@ TotalCount := 0
LoopPage:
sPageUrl = %sUrl%&ps=%pagesize%&page=%pagecnt%

;sXml_page := BrowserGetPage(sPageUrl) ; will flash a browser window
sXml_page := CNGet(sPageUrl)


If (sXml_page ~= "Error.*") {
return sXml_page
}
Expand Down
2 changes: 1 addition & 1 deletion Lib/DateConv.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RegTimeZones := GetTimeZones()

DateConvZ(sDate){
global RegTimeZones
; Convert ConNext Event date to standard Format 2020-01-31T23:30:00.000Z -> 2020-01-31 23:00:00
; Convert Connections Event date to standard Format 2020-01-31T23:30:00.000Z -> 2020-01-31 23:00:00

; Convert Zulu date to Date format
sUTCDate := RegExReplace(sDate,"\.000.*","") ; independent of time zone
Expand Down
Loading

0 comments on commit 9934496

Please sign in to comment.