Skip to main content
русланк80553678
Participant
August 16, 2019
Question

ALLWAYS CHEK ON PREVIEW in EFFECTS AND OTHER WINDOWS

  • August 16, 2019
  • 3 replies
  • 464 views

Hello!
Many people have asked Adobe to implement the chek allways preview function in effects and other dialog boxes.
I present to you a small script made using the AutoHotKey program, which performs this functionality.
If you wish, you can use the program itself to make exe out of it and add it to startup.
! !Waiting for your criticism and improvement.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.

; #Warn  ; Enable warnings to assist with detecting common errors.

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.

SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#Persistent

If !WinExist("Illustrator")

{

SetTimer, WatchCursor, 100

return

}

WatchCursor:

   

If WinActive("Transform Each") or WinActive("Gaussian Blur")

{

st := 4

}

else

{

st := 3

}

If WinActive("Options") or WinActive("Move") or WinActive("Rotate") or WinActive("Reflect") or WinActive("Scale") or WinActive("Shear")

{

chek := 1

}

If WinActive("ahk_class #32770") and chek = -1

{

Send, !p

Loop, %st%

{

Send, {TAB}

}

chek := 1

}

If not WinActive("ahk_class #32770")

{

chek := -1

}

return

This topic has been closed for replies.

3 replies

русланк80553678
Participant
August 18, 2019

"ahk_class # 32770" is the general name of the effects window and other moments in illustrator, but in good tone, it would be better to use the names of dialog boxes everywhere, since in many windows the switch position is remembered in others, and you need to do a filter by name. This is just an alpha version of the script. I'll do it in the next version. As for the exe file, right-click on the script file and select Compile Script.

русланк80553678
Participant
August 18, 2019

"ahk_class #32770" это общее название окна эффектов и других моментов в illustrator, но по хорошему тону, было бы использовать имена диалоговых окон везде, так как во многих окнах положение переключателя запоминаются в других нет, и нужно делать фильтр по имени. Это лишь альфа версия скрипта. Сделаю в следующей версии. Что касается exe файла нажмите правой кнопкой на файле скрипта и выберите Compile Script.

Silly-V
Legend
August 20, 2019

Пасибки

Silly-V
Legend
August 18, 2019

Great work, helpful in illustrating multiple AHK features!

My questions are:

  1. What is "ahk_class #32770" and is there a reason you chose to use the dialog names in some parts of the script but the ahk_class in others?
  2. Can you specify instructions for turning an AHK script into an exe?