Directional keys (Script & Button Panel)

Post Reply
NotTeamTonka
Posts: 9
Joined: Fri Aug 21, 2020 8:05 pm

Directional keys (Script & Button Panel)

Post by NotTeamTonka » Sun Jan 24, 2021 10:47 pm

If you are wanting to make a set of Directional keys for background toons, or toons that are on another computer this will hopefully get you started. This script comes with a button panel as well. If you change any of the Hotkey triggers make sure you make the same changes for the corresponding button!
6.jpg
6.jpg (6.91 KiB) Viewed 1968 times
If you want to, the easiest way to implement this into your script would be to copy/paste into a .txt file, make the necessary changes and place it into your scripts folder. Then open your script and at the bottom you can type "#Include FileName.txt"

Code: Select all

Hotkey ( LCTRL LALT F1 press)
{
Sendto ( 1 )
   Key ( UP press)
}

Hotkey ( LCTRL LALT F2 press)
{
Sendto ( 1 )
   Key ( LEFT press)
}

Hotkey ( LCTRL LALT F3 press)
{
Sendto ( 1 )
   Key ( DOWN press)
}

Hotkey ( LCTRL LALT F4 press)
{
Sendto ( 1 )
   Key ( RIGHT press)
}

Hotkey ( LCTRL LALT F1 release)
{
Sendto ( 1 )
   Key ( UP release)
}

Hotkey ( LCTRL LALT F2 release)
{
Sendto ( 1 )
   Key ( LEFT release)
}

Hotkey ( LCTRL LALT F3 release)
{
Sendto ( 1 )
   Key ( DOWN release)
}

Hotkey ( LCTRL LALT F4 release)
{
Sendto ( 1 )
   Key ( RIGHT release)
}

Panel
{
  Label ("Directionals")
  Position (1179 180)
  QtyRows(2)

Button 
{ 
DoHotkey(0) 
Label (" ") 
BackgroundColor (#646464) 
TextColor ( #ffffff ) 
FontWeight(bold)
}

Button 

{ 

DoHotkeyOnPress(LCTRL LALT F1 Press)

DoHotkeyOnRelease(LCTRL LALT F1 Release)

Label ("UP") 

BackgroundColor (#646464) 

TextColor ( #ffffff ) 

FontWeight(bold)

}

Button 
{ 
DoHotkey(0) 
Label (" ") 
BackgroundColor (#646464) 
TextColor ( #ffffff ) 
FontWeight(bold)
}

Button 
{ 
DoHotkeyOnPress(LCTRL LALT F2 Press)

DoHotkeyOnRelease(LCTRL LALT F2 Release)

Label (" LEFT ") 
BackgroundColor (#646464) 
TextColor ( #ffffff ) 
FontWeight(bold)
}

Button 
{ 
DoHotkeyOnPress(LCTRL LALT F3 Press)

DoHotkeyOnRelease(LCTRL LALT F3 Release)

Label (" DOWN ") 
BackgroundColor (#646464) 
TextColor ( #ffffff ) 
FontWeight(bold)
}

Button 
{ 
DoHotkeyOnPress(LCTRL LALT F4 Press)

DoHotkeyOnRelease(LCTRL LALT F4 Release)

Label (" RIGHT ") 
BackgroundColor (#646464) 
TextColor ( #ffffff ) 
FontWeight(bold)
}
}

Post Reply