PDA

View Full Version : How to make shortcut for... ;]



MarcusM
05-21-2014, 01:44 AM
How to make shortcut for button from image. In not "official" way? Under left Ctrl...

erikals
05-21-2014, 02:09 AM
you should be able to edit faulknermano's AHK script, i would think...

https://www.youtube.com/watch?v=uG3KqxI-V74
http://www.tinyurl.com/d66thzm

but no, no native LightWave way to do this...

for more AHK info, see >
http://forums.newtek.com/showthread.php?135083-Autohotkey-A-Starter-guide-video

erikals
05-21-2014, 03:48 AM
agh, seems to me a bit trickier than that, did some mini-edits to it...


#IfWinActive Modeler
!^MButton::
BlockInput On
WinGetPos, X, Y, W, H, A
MouseGetPos, xpos, ypos, myWindow
WinActivate, ahk_id %myWindow%
ifWinNotActive Modeler
{
BlockInput Off
return
}
myX := W - 50
myY := 50
PixelGetColor, color, %myX%, %myY%
if(color = 0x8F8F8F)
myX := W - 380

MouseGetPos, xpos, ypos


MouseMove %myX%, %myY%, 0
SendEvent {Click Down}
BlockInput Off
Send ^{RButton}
SendEvent {Click Up}
Sleep, 20
MouseMove %xpos%, %ypos%, 0

return

...however, should be possible... i think... :
http://youtu.be/0CguGLZsPSA

MarcusM
05-21-2014, 04:43 AM
With help my mate from work it's done :)

AutoHotkey
LightWave version: Modeler™ NewTek LightWave™ 11.6 (Win64)
Possition on screen, my is: 2518, 58
If window active then use "Alt" key.

In attached file, extension should be changed to "*.ahk".
Alt+Crtl also working good :]

erikals
05-21-2014, 04:47 AM
Beautiful..! http://erikalstad.com/backup/misc.php_files/king.gif

Good stuff...!

MarcusM
05-21-2014, 04:50 AM
Hmm Alt should be changed to another key, it collide with move and zoom...;p

MarcusM
05-22-2014, 02:28 AM
Here is updated script. Working with Alt+Shift and Alt+Ctrl, mouse also go back on previous position :)

MarcusM
05-22-2014, 02:58 AM
New version ;]
Now rotation working with left Alt+Windows and not collide wit other shortcuts.

Ryan Roye
05-22-2014, 06:35 AM
Autohotkey is a beautiful thing. I just can't recommend it highly enough.

...a very "pimp-worthy" program... a program that is every other program's best friend :)