cjddmut / Blender-Transforms-in-Unity3D

Use Blender-like hot keys to manipulate the transform (position, rotation, and scale) of objects in Unity 3D.
MIT License
46 stars 7 forks source link

Mouse keys, Ahk script below to match current mouse keys. Needs some work but decent #9

Open maessof91 opened 2 years ago

maessof91 commented 2 years ago

Got a hacky feel currently, an in engine alternative would be better if possible.

Requires autohotkey program, throw the below in a *.ahk file and double click.

#If WinActive("ahk_exe unity.exe") 
MButton::
     sendinput {alt down}       
     sendinput {LButton  down}
return

MButton up::
    sendinput {LButton  up}     
    sendinput {alt up}
return

#InstallKeybdHook

+MButton::  
     send {Shift up}
     sendinput {MButton  down}
return

+MButton up::   
    sendinput {MButton  up} 
return

#Persistent
^MButton::
    sendinput {alt down}    
     sendinput {RButton  down}

     SetMouseDelay -1
    MouseGetPos x, oldy     
     SetTimer InvertMouseJob, 1
return

InvertMouseJob:
    BlockInput MouseMove
   MouseGetPos x, y
   MouseMove 0, 8*(oldy-y), 0, R       
   MouseGetPos x, oldy
   BlockInput MouseMoveOff
return

^MButton up::           
     Settimer, InvertMouseJob, OFF

    sendinput {RButton  up} 
    sendinput {alt up}
return
#If
wozhdal commented 1 month ago

ahah good :) but as a autoit user, i must do it with autoit :p