PDA

View Full Version : One-key Render (AHK)



truevis
2009-12-16, 11:19 PM
Works in 2009. Saves the rendered image in c:\temp\ with a time stamp.

AutoHotKey code to start with Win-r:


SetTitleMatchMode, 2

#IfWinActive, Revit
#r:: ; hotkey Start Render
IfWinNotExist, Rendering
Send, rr
WinWait, Rendering, Uncompressed image s
IfWinNotActive, Rendering, Uncompressed image s, WinActivate, Rendering, Uncompressed image s
WinWaitActive, Rendering, Uncompressed image s
Sleep, 100
Send, {TAB}{ALTDOWN}r{ALTUP}
Sleep, 3000
WinWaitClose, Rendering Progress
Sleep, 300
WinWait, Rendering, Uncompressed image s
WinActivate, Rendering, Uncompressed image s
WinWaitActive, Rendering, Uncompressed image s
Send, {TAB 3}{ALTDOWN}x{ALTUP}
WinWait, Save Image, Previous folder(Alt+
Sleep, 400
Send, !n
Sleep, 400
Sendplay, c:\temp\Render-%A_Now%.png
Send, !s
SoundPlay, %A_WinDir%\Media\ding.wav
return