topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday October 9, 2024, 9:36 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Expletive [ switch to compact view ]

Pages: [1]
1
I've got it working! To do it, open command.ahk and replace the original code with my code:

;Original Code
DefineHotkeys:
  loop,9
  {
     Hotkey, %FastMoveModifiers%%A_Index%, WinHotkeys
     Hotkey, %FastMoveModifiers%Numpad%A_Index%, WinHotkeys
  }
  Hotkey, %FastMoveModifiers%0, WinHotKey
  Hotkey, %FastMoveModifiers%Numpad0, WinHotkeys
  if FastMoveMeta <>
    Hotkey, %FastMoveModifiers%%FastMoveMeta%, WinHotkeysMeta
  return

WinHotkeys:
  StringRight,Number,A_ThisHotkey,1
  MoveToGrid(Number)
  return

;My Code
;FastMove Works with F1-F12 as grids 11-22 by Expletive
DefineHotkeys:

NewHotKeys := {1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,sc0b:10,F1:11,F2:12:F3:13:F4:14:F5:15,F6:16,F7:17,F8:18,F9:19,F10:20,F11:21,F12:22,Numpad0:10,Numpad1:1,Numpad2:2,Numpad3:3,Numpad4:4,Numpad5:5,Numpad6:6,Numpad7:7,Numpad8:8,Numpad9:9}
For key, value in NewHotKeys {
        if key
hotkey, %FastMoveMeta%%key%, WinHotKeys
}
 if FastMoveMeta <>
    Hotkey, %FastMoveModifiers%%FastMoveMeta%, WinHotkeysMeta
return

WinHotkeys:  
  StringReplace, KeyPressed, A_ThisHotKey, %FastMoveMeta%
  Number := NewHotKeys[KeyPressed]
  MoveToGrid(Number)
  return  

Edit: Ive noticed a couple of bugs:
1.) This code runs fine when run as .ahk but when compiling it, there's an error when it starts, probably because of the 0 key in newhotkeys, but I don't know why it'd only fail on compile.

Fixed:
2.) Pressing shift+3 seems to cause the window to shrink to nothing. I have no clue what's causing this. It doesn't seem to be related to %FastMoveMeta% since even when I change the meta to ^ for ctrl and restart it keeps doing it.

Edit 2:

So I fixed Error 2, and now there isn't an error message about '' not being a valid key, however it still only seems to work when ran as a script. After compiling, there is no error, but fast move has no modifer meta , and when grids are selected with the #g command, grids above 9 can't be selected.

I have no idea why there would be differences between a script and a compiled script. If anyone here has experience with autohotkey, I'd appreciate some help. But for anyone using gridmove as a .ahk, the above code should work fine for you.

2


This is with search and text fields set to clBlack and not using a .skn

I did this because I found aero_lib.ahk and I am currently on a quest to glass everything I possibly can.

3
I'm trying to change it so that when WindowWidth or WindowHeight are used in a grid file, the window is positioned so that the cursor is at the center of the grid's top edge. Since WindowWidth and WindowHeight can't be operated on like [MonitorXWidth] etc, I figured I have to edit gridmove's source, after digging around in the assortment of .ahk files, I've found only a couple of references to them, so I'm assuming their what I'd have to change. I'm just fuzzy on how. The code I found was:

Code: Autohotkey [Select]
  1. ;Line 206 of Command.ahk
  2.   If (GridLeft = "WindowWidth" AND GridRight = "WindowWidth")
  3.   {
  4.     WinGetClass,WinClass,A
  5.  
  6.     if ShouldUseSizeMoveMessage(WinClass)
  7.       SendMessage WM_ENTERSIZEMOVE, , , ,ahk_id %windowid%
  8.  
  9.     WinMove, A, ,%WinLeft%,%GridTop%, %WinWidth%,% GridBottom - GridTop,    
  10.  
  11.     if ShouldUseSizeMoveMessage(WinClass)
  12.       SendMessage WM_EXITSIZEMOVE, , , ,ahk_id %windowid%
  13.     StoreWindowState(WindowId,WinLeft,WinTop,WinWidth,WinHeight)
  14.     return
  15.   }
  16.   If (GridTop = "WindowHeight" AND GridBottom = "WindowHeight")
  17.   {
  18.     WinGetClass,WinClass,A
  19.  
  20.     if ShouldUseSizeMoveMessage(WinClass)
  21.       SendMessage WM_ENTERSIZEMOVE, , , ,ahk_id %windowid%
  22.  
  23.     WinMove, A, ,%GridLeft%,%WinTop%, % GridRight - GridLeft,%WinHeight%,    
  24.  
  25.     if ShouldUseSizeMoveMessage(WinClass)
  26.       SendMessage WM_EXITSIZEMOVE, , , ,ahk_id %windowid%
  27.     StoreWindowState(WindowId,WinLeft,WinTop,WinWidth,WinHeight)
  28.     return
  29.   }
  30.  
  31. ;line 849 of GridMoveP1.ahk
  32.  
  33.     If ShowNumbersFlag
  34.     {
  35.       If (GridTop = "WindowHeight" OR GridLeft = "WindowWidth")
  36.       {
  37.         Gui, add, text,c%shadowcolor% BackGroundTrans  X%ShadowLeft% Y%ShadowTop% ,%A_Index%
  38.         Gui, add, text,c%textcolor% BackGroundTrans  X%TextLeft% Y%TextTop% ,%A_Index%
  39.       }

Also, I'm realizing the Gridmove I've been using for years is now apparently 9 versions out of date. From 19.62 to 19.71. I really like the Aero effects, but I'm not so sure about the new icon. I may just be too set in my ways.

Pages: [1]