Author Topic: How do I know if vfb is on or off?  (Read 522 times)

2023-10-20, 18:17:28

SRY

  • Active Users
  • **
  • Posts: 12
    • View Profile
we know the interface :CoronaRenderer.CoronaFp.showVfb false.Please Please let me know if vfb is on or off? In other words, what is vfb state.

2023-10-23, 16:45:11
Reply #1

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 561
    • View Profile
Hi,

The mentioned command just opens (true) and closes (false) the VFB.
Do you want to know, regardless of the VFB state, if the VFB is rendering or not? Is this what you mean by "what is vfb state"?
Aram Avetisyan | chaos-corona.com
Chaos Corona Support Representative | contact us

2024-04-11, 16:22:25
Reply #2

SRY

  • Active Users
  • **
  • Posts: 12
    • View Profile
I need an interface to control the maximization and minimization of the VFB, Although I can achieve this through other Way , the response is a little slow. Or tell me to get a handle (HWND) to the instance of "CoronaRenderer.CoronaFp"

2024-04-12, 13:45:56
Reply #3

SRY

  • Active Users
  • **
  • Posts: 12
    • View Profile
When the VFB window is maximized, and rendering. The following script is invalid.
CoronaRenderer.CoronaFp.stopRender()
CoronaRenderer.CoronaFp.showVfb (false)

can anybody help me ?

2024-04-12, 15:02:10
Reply #4

Frood

  • Active Users
  • **
  • Posts: 1922
    • View Profile
    • Rakete GmbH
Hi,

what do you mean by "invalid"? Just checked, works as expected here (v9 to 11). Which Corona version are you using?

Is this what you mean by "what is vfb state"?

It is about being visible, maximized, minimized or even about getting position and size (and the currently displayed channel at best). In one of the first macros I created for Corona (10 years old) I have found a note, that it is "unfortunately not possible" to get the state of the VFB, and as a result, the macro button cannot react to the current VFB state (isChecked).


Good Luck



Never underestimate the power of a well placed level one spell.

2024-04-14, 15:31:17
Reply #5

SRY

  • Active Users
  • **
  • Posts: 12
    • View Profile
Hi Frood , First of all thank you for your reply. I need to be clearer about my intentions, First normalize the maximized VFB window in the rendering state with the shortcut keys,
then stop Render. At first I just wanted to know if the VFB window had been showed, so I can omit a piece of code: CoronaRenderer.CoronaFp.showVfb (true), Unfortunately, my clients' demands have increased further, Hence the next few calls for help! Although I could have done it with this script, it is :windows.sendmessage hwnd WM_SYSCOMMAND SC_RESTORE 0 ,But I can't use the shortcut keys to control the maximized VFB in rendering, Forgive me for being so long-winded.

2024-04-15, 15:07:40
Reply #6

Frood

  • Active Users
  • **
  • Posts: 1922
    • View Profile
    • Rakete GmbH
Hi,

yes, hotkeys to call a macro script seem to be blocked when Corona is rendering unfortunately (invoking from the scripting listener works though). I don't know why, sorry.


Good Luck



Never underestimate the power of a well placed level one spell.