AutoHotkey and LightWave 3D

Disclaimer

Use at your own risk!
Don't test on a production system.
Verify possible LW bugs without AutoHotkey running (reboot to be 100% sure).


Download Link

autotohotkey.com

- Free & open source
- keyboard, joystick, and mouse remapper
- simple yet powerful hotkey scripting language for Windows, supporting both mouse and keyboard macros

Command Reference

 

Scripts

Remove the scripts from the example AutoHotkey.ini
then c
opy/paste the snippets into AutoHotkey.ini


Panic Key

Terminate the running script and AutoHotkey immediately:

+!Pause::
; Shift+Alt+Pause
ExitApp


Remap Ctrl+Shift+Mouse Button Menus

!q::
; Alt+q = LMB
IfWinActive, LightWave 3D, ,
{
Send {CTRLDOWN}{SHIFTDOWN}
MouseClick, LEFT
Send {CTRLUP}{SHIFTUP}
}
return

!a::
; Alt+a = MMB
IfWinActive, LightWave 3D, ,
{
Send {CTRLDOWN}{SHIFTDOWN}
MouseClick, MIDDLE
Send {CTRLUP}{SHIFTUP}
}
return

!z::
; Alt+z = RMB
IfWinActive, LightWave 3D, ,
{
Send {CTRLDOWN}{SHIFTDOWN}
MouseClick, RIGHT
Send {CTRLUP}{SHIFTUP}
}
return



Reload current image

Can be invoked in Photoshop (etc...).
Layout will come in front and reload the current image.

Update:
There is now a better solution:TextureReload.zip. Thanks to Mike Dailly.
(You could still use a script like this to activate LW and then send the shortcut to TextureReload... ;)

^!r::
; Ctrl+Alt+r: Reload current Image
; - Image Editor must be at default size
; - Image list must be visible
; - Image to be reloaded must be selected
;
; - it doesn't matter if the Image Editor
; open or closed when this script is
; invoked

IE_Activate=0
WinActivate, Image Editor,
IfWinNotActive, Image Editor, ,
{
IE_Activate=1
WinActivate, LightWave 3D,
;Send, {CTRLDOWN}{F4}{CTRLUP} ; LW7.5c
Send, {CTRLUP}{ALTUP}{F6} ; LW8.0
Sleep, 20
}
WinWaitActive, Image Editor, ,3
IfWinActive, Image Editor, ,
{
MouseClick, left, 315, 56
Sleep, 20
WinWait, Replace Image...,
IfWinNotActive, Replace Image..., , WinActivate, Replace Image...,
WinWaitActive, Replace Image..., ,2
Send, {RETURN}
Sleep, 20
}

If IE_Activate = 1
{
WinActivate, LightWave 3D,
;Send, {CTRLDOWN}{F4}{CTRLUP} ; LW7.5c
Send, {CTRLUP}{ALTUP}{F6} ; LW8.0
Exit
}


Using Joystick As Mouse

http://www.autohotkey.com/docs/scripts/JoystickMouse.htm

 


Contact

Reiner Schug: diver (a t) interialabs.de