Skip to content

Commit

Permalink
fixed twirlAE() just for Jason
Browse files Browse the repository at this point in the history
  • Loading branch information
TaranVH committed Mar 12, 2019
1 parent fb90c1f commit e039bb6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions After_Effects_Functions.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ BlockInput, MouseMove

MouseGetPos xPos, yPos
;I work on a 4k, 150% UI scaled screen. You might have to change these values to fit your own screen.
edge = 250
expanseUp = 32
expanseDown = 10
rightedge = 200 ;250 for 150% UI
expanseUp = 21 ;32 for 150% UI
expanseDown = 7 ;10 for 150% UI

CoordMode Pixel ;, screen ; IDK why but it works like this...
CoordMode Mouse, screen
Expand All @@ -48,12 +48,12 @@ CoordMode Mouse, screen

If open = 1
{
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, edge, yPos+expanseDown, %A_WorkingDir%\AE_down.png
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, rightedge, yPos+expanseDown, %A_WorkingDir%\AE_down.png

if ErrorLevel = 1 ;if that was unable to find it, try again with another image
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, edge, yPos+expanseDown, *2 %A_WorkingDir%\AE_down2.png
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, rightedge, yPos+expanseDown, *2 %A_WorkingDir%\AE_down2.png
if ErrorLevel = 1 ;if that was unable to find it, try again with another image
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, edge, yPos+expanseDown, *2 %A_WorkingDir%\AE_down3.png
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, rightedge, yPos+expanseDown, *2 %A_WorkingDir%\AE_down3.png

if ErrorLevel = 0
{
Expand All @@ -69,12 +69,12 @@ If open = 1
else if open = 0
{

ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, edge, yPos+expanseDown, %A_WorkingDir%\AE_right.png
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, rightedge, yPos+expanseDown, %A_WorkingDir%\AE_right.png

if ErrorLevel = 1 ;if that was unable to find it, try again with another image
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, edge, yPos+expanseDown, *2 %A_WorkingDir%\AE_right2.png
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, rightedge, yPos+expanseDown, *2 %A_WorkingDir%\AE_right2.png
if ErrorLevel = 1 ;if that was unable to find it, try again with another image
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, edge, yPos+expanseDown, *2 %A_WorkingDir%\AE_right3.png
ImageSearch, FoundX, FoundY, 0, yPos-expanseUp, rightedge, yPos+expanseDown, *2 %A_WorkingDir%\AE_right3.png

if ErrorLevel = 0
{
Expand All @@ -86,10 +86,10 @@ else if open = 0
goto resettwirl
}
}
tooltip, FAIL
tooltip, FAIL`, ErrorLevel is %ErrorLevel%
;msgbox, , , num enter, 0.5;msgbox, , , num enter, 0.5
resettwirl:
MouseMove, xPos-11, yPos-11, 0
MouseMove, xPos-8, yPos-8, 0 ;IDK why, but if I don't subtract a few pixels, the cursor ends up in a slightly wrong spot...
blockinput, off
blockinput, MouseMoveOff
sleep 20
Expand Down
Binary file added support_files/AE_2018/AE_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added support_files/AE_2018/AE_down2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added support_files/AE_2018/AE_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added support_files/AE_2018/AE_right2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file modified support_files/AE_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified support_files/AE_down2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified support_files/AE_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified support_files/AE_right2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e039bb6

Please sign in to comment.