Home AMX User Forum AMX General Discussion

how to simulate a push event

Hi again!

I think it should be a basic question, but i can?t figure out how to do this:
I need to simulate a "push" event of a button, i mean: i have a Button_event with a code, and i need to force this code to be executed from other part of the program.

I know that it can be done including the code in a function, but i would like to know if there is any keyword to do the job.

Thanks and salutes!!

Comments

  • glr-ftiglr-fti Posts: 286
    DO_PUSH(dvTP,nbutton)
  • MorgoZMorgoZ Posts: 116
    I supposed there should be something like that,
    many thanks!
  • a_riot42a_riot42 Posts: 1,624
    MorgoZ wrote: »
    I supposed there should be something like that,
    many thanks!

    You are probably better off putting that code in a function and then calling it. That way you can call it from the button event or somewhere in code.
    Paul
Sign In or Register to comment.