Jump to content

sendKeys


Xabache

Recommended Posts

I want to eliminate the need to press "F1" on autosignin

lua has this ipc.btnToggle(btn-number) but from clientside I have not made it work successfully, nor did i know the button number for "F1"

function cs2() outputChatBox("0") ipc.btnToggle(256) outputChatBox("2") end 
addEvent("cs2", true) 
addEventHandler("cs2",getRootElement(),cs) 

does mta not have sendKeys?

I also tried the signup complete function that also triggered fine but did nothing

function cs() outputChatBox("0") guiSetInputEnabled(false) guiSetVisible(sw,false) showCursor(false) outputChatBox("1") end 

I want to, after auto sign in, the player to be able to begin playing without pressing F1, which seems needless in all cases.

Link to comment

as it turns out that wasn't actually doing what i thought. It was only bypassing F1 to play on re-sign in, not first sign in. Question remains open how to send keys? Or how to connect and play without pressing the ever tedious F1...

Link to comment
as it turns out that wasn't actually doing what i thought. It was only bypassing F1 to play on re-sign in, not first sign in. Question remains open how to send keys? Or how to connect and play without pressing the ever tedious F1...

Did you even read my post?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...