You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: SECOND KEYBOARD Premiere functions in AutoHotKey.ahk
+9-9
Original file line number
Diff line number
Diff line change
@@ -1481,7 +1481,7 @@ else if (track = "left")
1481
1481
;msgbox, this is for the LEFT audio track
1482
1482
}
1483
1483
Send^!+a ;control alt shift a --- ; audio channels shortcut, asigned in premiere - dont use this key combo anywhere else
1484
-
;sleep 600
1484
+
; fun fact, if you send this keystroke AGAIN, it does NOT close the panel, which is great... that means you can press the button anytime, and it will always result in an open panel.
1485
1485
sleep15
1486
1486
1487
1487
;this doesn't work, the panel thinks its loaded even before any controls appear on it.
@@ -1501,7 +1501,7 @@ sleep 15
1501
1501
MouseGetPos, xPosAudio, yPosAudio
1502
1502
1503
1503
;/*
1504
-
MouseMove, 2222, 1600, 0 ;moved the mouse onto the expected location of the "okay" box, which has a distinct white color when the cursor is over it, which will let us know the panel has appeared.
1504
+
MouseMove, 2222, 1625, 0 ;moved the mouse onto the expected location of the "okay" box, which has a distinct white color when the cursor is over it, which will let us know the panel has appeared.
1505
1505
1506
1506
; msgbox where am i, cursor says
1507
1507
MouseGetPos, MouseX, MouseY
@@ -1514,7 +1514,7 @@ loop
1514
1514
tooltip, waiting = %waiting%`npixel color = %thecolor%
1515
1515
MouseGetPos, MouseX, MouseY
1516
1516
PixelGetColor, thecolor, MouseX, MouseY, RGB
1517
-
if (thecolor = "0xF0F0F0"|| thecolor = "0xF1F1F1")
; For me, the default brightness of all panels is 313131 and/or 2B2B2B
1550
1550
1551
1551
;msgbox, kolor = %kolor%
1552
-
If (kolor = "0x2b2b2b"|| kolor = "0x464646") ; "kolor" is the variable name rather than "color" because "color" might be already used for something else in AHK.
1552
+
If (kolor = "0x1d1d1d"|| kolor = "0x333333") ; This is the color of an EMPTY checkbox. The coordinates hsould NOT lead to a position where the grey of the checkmark would be. Also, "kolor" is the variable name rather than "color" because "color" might be already used for something else in AHK.
1553
1553
{
1554
1554
;msgbox, box is empty
1555
1555
; click left
1556
1556
;sendinput, LButton
1557
1557
MouseClick, left, , , 1
1558
1558
sleep10
1559
1559
}
1560
-
else if (kolor = "0x9a9a9a"|| k2 = "0xcdcdcd") ;this coordinate, of course, should be directly on top of the box, but NOT where there is a checkmark, since the check mark is now the same color as the bare panel...
1560
+
else if (kolor = "0xb9b9b9") ;We are now looking for CHECK MARKS. This coordinate, should be directly on top of the box, but NOT directly on top of the GRAY checkmark itself. You need to detect telltale WHITE color that means the box has been checked.
1561
1561
{
1562
1562
; Do nothing. There was a checkmark in this box already.
1563
1563
}
@@ -1569,7 +1569,7 @@ sleep 10
1569
1569
PixelGetColor, k2, %Xkolor2%, %Ykolor2%
1570
1570
sleep30
1571
1571
;msgbox, k2 = %k2%
1572
-
If (k2 = "0x2b2b2b"|| k2 = "0x464646")
1572
+
If (k2 = "0x1d1d1d"|| k2 = "0x333333") ;both of these are potential dark grey background panel colors
0 commit comments