Will_Robinson

Untitled

Apr 20th, 2020
1,259
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #IfWinActive Playlist
  2.     XButton2::
  3.         WinMove, %wgClass%,, A_ScreenWidth/2-306, 0, 306, 540
  4.         return
  5.     XButton1::
  6.         WinMove, %wgClass%,, 326, 0, 306, 540
  7.         return
  8.  
  9. #IfWinActive ahk_class PotPlayer64
  10.     XButton2::
  11.         WinGetPos, pX, pY, pW, pH, A
  12.         if (pY=0) and (pX=960) {
  13.             WinMove, %wgClass%,, SW/2, SH/2, SW/2, SH/2
  14.         } else {
  15.             WinMove, %wgClass%,, SW/2, 0, SW/2, SH/2
  16.         }
  17.         return
  18.     XButton1::
  19.         WinGetPos, pX, pY, pW, pH, A
  20.         if (pY=82) {
  21.             WinMove, %wgClass%,, 1482, 682, 438, 353
  22.         } else {
  23.             WinMove, %wgClass%,, 1482, 82, 438, 353
  24.         }
  25.         return
  26.  
  27. #IfWinActive AIMP ahk_class TAIMPMainForm
  28.     XButton2::
  29.         WinMove, %wgClass%,, 956,-5,366,551
  30.         return
  31.    
  32. #IfWinActive TrayControl ahk_class TAIMPTrayControl
  33.     XButton2::
  34.         WinMove, %wgClass%,, 956,-3,343,30
  35.         return
  36.    
  37. #IfWinActive TrayControlFlow ahk_class TASEScene
  38.     XButton2::
  39.         WinMove, %wgClass%,, 956,-3,343,30
  40.         return
  41.  
  42. #IfWinActive
  43.  
  44. <^>!p::
  45.     WinGetTitle, wgTitle, A
  46.     WinGetClass, wgClass, A
  47.     WinGetPos, wgX, wgY, wgW, wgH, A
  48.     FileAppend, %wgTitle% ahk_class %wgClass%`nx%wgX% y%wgY% w%wgW% h%wgH%`n`n, D:\Coding\System\Info.txt
  49.     return
  50. <^>!o::run D:\Coding\System\Info.txt
RAW Paste Data