NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

if (MG_TB < curY) {
MG_TB := curY
}
MG_TrailDrawing := 0
}

;-------------------------------------------------------------------------------
; Clear Gesture Trails
; Implemented by Pyonkichi
;-------------------------------------------------------------------------------
MG_ClearTrail()
{
local l, t, r, b, rc, owL, owT

if (!MG_ShowTrail || !MG_TrailDrawn)
{
return
}
MG_TrailDrawn := 0
;...........................................................................
; Set Bounding Rectangle of Gesture Trail
l := MG_TL-MG_AdjustToDPI(MG_TrailWidth)-1
t := MG_TT-MG_AdjustToDPI(MG_TrailWidth)-1
r := MG_TR+MG_AdjustToDPI(MG_TrailWidth)+1
b := MG_TB+MG_AdjustToDPI(MG_TrailWidth)+1
if (MG_DrawTrailWnd) {
WinGetPos, owL, owT,,, ahk_id %MG_TrailHwnd%
l-=owL, t-=owT, r-=owL, b-=owT
}
VarSetCapacity(rc, 16, 0)
NumPut(l, rc, 0, "UInt")
NumPut(t, rc, 4, "UInt")
NumPut(r, rc, 8, "UInt")
NumPut(b, rc, 12, "UInt")
if (MG_DrawTrailWnd) {
;.......................................................................
; Clear Overwrap Window
local hDC := DllCall("GetWindowDC", "Ptr",MG_TrailHwnd, "Ptr")
local hBrush := DllCall("CreateSolidBrush", "UInt",MG_TrailTransClr2, "Ptr")
DllCall("FillRect", "Ptr",hDC, "Ptr",&rc, "Ptr",hBrush)
DllCall("DeleteObject", "Ptr",hBrush)
DllCall("ReleaseDC", "Ptr",MG_TrailHwnd, "Ptr",hDC)
Gui, MGW_Trail:-AlwaysOnTop
WinSet, Bottom,, ahk_id %MG_TrailHwnd%
} else {
;.......................................................................
; Redraw Screen
DllCall("RedrawWindow", "Ptr",0, "Ptr",&rc, "Ptr",0, "Ptr",0x0587)
}
}


;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
;
; Log Display
;
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
;-------------------------------------------------------------------------------
; Initialize Log Display
; Implemented by Pyonkichi
;-------------------------------------------------------------------------------
MG_InitLog()
{
global
if (!MG_ShowLogs) {
return
}
MG_Log := []
MG_LogPtr := MG_LogMax
Gui, MGW_LogBG:New, -Caption +LastFound +ToolWindow +E0x08000020
WinSet, Transparent, %MG_LogTranspcy%
Gui, MGW_LogBG:Color, %MG_LogBG%

local color, x, y, w, h, wa, waRight, waBottom
colorBG := MG_MakeTransColor(MG_LogFG)
Gui, MGW_Log:New, +OwnerMGW_LogBG -Caption +ToolWindow +LastFound +E0x08000020 +Delimiter`n
WinSet, TransColor, %colorBG%
Gui, MGW_Log:Font, s%MG_LogFontSize%, %MG_LogFont%
Gui, MGW_Log:Color, %colorBG%, %colorBG%
Gui, MGW_Log:Margin, 10, 0
Gui, MGW_Log:Add, Edit, y10 w%MG_LogSizeW% r%MG_LogMax% vMG_LogList -VScroll -E0x00000200 c%MG_LogFG%
Gui, MGW_Log:Show, AutoSize Hide
WinGetPos,,, w, h
SysGet, wa, MonitorWorkArea
if (MG_LogPosition==1) {
x:=0, y:=0
} else if (MG_LogPosition==2) {
x:=waRight-w, y:=0
} else if (MG_LogPosition==3) {
x:=0, y:=waBottom-h
} else if (MG_LogPosition==4) {
x:=waRight-w, y:=waBottom-h
} else {
x:=MG_LogPosX, y:=MG_LogPosY
}
Gui, MGW_LogBG:Show, x%x% y%y% w%w% h%h% NA, MouseGestureL.ahk Logs
Gui, MGW_Log:Show, x%x% y%y% NA, MouseGestureL.ahk Logs
WinSet, Bottom
SetTimer, MG_UpdateLogDisplay, %MG_LogInterval%
}

;-------------------------------------------------------------------------------
; Update Logs
; Implemented by Pyonkichi
;-------------------------------------------------------------------------------
MG_UpdateLogs(ges="")
{
global
MG_LogPtr := (MG_LogPtr<MG_LogMax) ? MG_LogPtr+1 : 1
MG_Log[MG_LogPtr] := MG_Gesture . "`t" . A_TickCount-MG_PrevTime . "ms" . "`tdX: " . MG_NowX-MG_PreX . "`tdY: " . MG_NowY-MG_PreY
if (ges) {
MG_ActionStr := ""
Gosub, MG_GetAction_%ges%
MG_Log[MG_LogPtr] .= "`t" . MG_ActionStr
}
}

;-------------------------------------------------------------------------------
; Update Log Display
; Implemented by Pyonkichi
;-------------------------------------------------------------------------------
MG_UpdateLogDisplay()
{
global MG_Log, MG_LogPtr, MG_LogMax, MG_LogMax
static prevPtr := ""
if (prevPtr == MG_LogPtr) {
return
}
prevPtr := MG_LogPtr
Loop, %MG_LogMax%
{
ptr := MG_LogPtr - MG_LogMax + A_Index
ptr := ptr<1 ? ptr+MG_LogMax : ptr
szLog .= MG_Log[ptr] . (A_Index<MG_LogMax ? "`n" : "")
}
GuiControl, MGW_Log:, MG_LogList, %szLog%
}

;-------------------------------------------------------------------------------
; Copy Logs to Clipboard
; Implemented by Pyonkichi
;-------------------------------------------------------------------------------
MG_CopyLogs() {
GuiControlGet, Clipboard, MGW_Log:, MG_LogList
}


;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
;
; Exit Process
;
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
;-------------------------------------------------------------------------------
; Exit Operation
; Implemented by Pyonkichi
;-------------------------------------------------------------------------------
MG_EndOperation()
{
global MG_hEventHook
if (MG_hEventHook) {
DllCall("UnhookWinEvent", "Ptr",MG_hEventHook)
}
}

MG_End:
#NoEnv
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.