This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: LUA code for pressing keys in-game?  (Read 972 times)

Method

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 78
    • View Profile
LUA code for pressing keys in-game?
« on: October 19, 2016, 07:26:42 pm »
Looking for code that will automatically press a key upon login to the game.

Anyone know how to do this?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Big Protodrake Gifs are really annoying aren\'t they?

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: LUA code for pressing keys in-game?
« Reply #1 on: October 20, 2016, 12:10:55 am »
to force some component to use "Click" Event on itself is just like this

ClassTrainerTrainButton:Click()
QuestFrameCompleteQuestButton:Click()
GossipTitleButton1:Click()

to see what component is called like use ingame "/framestack"

if you want to use smth in GLUE screen look into LUA files for names
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9