Untitled
unknown
plain_text
5 months ago
681 B
3
Indexable
``` #Persistent SetTitleMatchMode, 2 WinTitle := "Bloco de notas" SetTimer, CheckApplication, 1000 SetTimer, CheckWindow, 1000 Return CheckApplication: Process, Exist, notepad.exe if ErrorLevel = 0 { Run, "C:\Windows\System32\notepad.exe" } Return CheckWindow: IfWinExist, %WinTitle% { WinGetPos, X, Y, Width, Height, %WinTitle% If (X < 200 || X > 200) { WinMove, %WinTitle%,, 200, 100 } } Return F1:: SetTimer, CheckApplication, Off Process, Close, notepad.exe MsgBox, 48, ATENÇÃO, Acesso Desabilitado.`nPressione F2 para habilitar novamente., 10 Return F2:: SetTimer, CheckApplication, On Return ```
Editor is loading...
Leave a Comment