Beas: Can I emulate a keystroke? Respondida

John Slaats

I have 8 scrips in my calculation schema.
When I create a pre-calculation I have to press the Calculate button 3 til 5 times before everything is calculated correctly.

Question: Can I call a (re)calculate routine from a script?

or

Can I emulate this click on the Calculate button?

Regards,
John

Comentarios

1 comentario

  • Comment author
    Martin Heigl
    • Comentario oficial

    You can do it with a small customizing script
    (in this window: Crtl + N + U

     

    In debug protocol you can see the commands

    The button have 3 objects

    calc_b, calc_p and calc_t
    you must create a script for every object

    Example

    // all 3 objects call function calculate
    windowevent click calc_b
    calculate()
    end event
    windowevent click calc_p
    calculate()
    end event
    windowevent click calc_t
    calculate()
    end event


    // global function calculate execute the calculation via post (behind the first calculation)
    global function calculate
    post=manualcalculate
    post=manualcalculate
    post=manualcalculate
    post=manualcalculate
    end event

Iniciar sesión para dejar un comentario.