Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
pasar el parámetro de javascript a c ++ cuando ambos se ejecutan al mismo tiempo

Tengo un script java (panel cep) que funciona dentro de Adobe Premiere Pro.

Cuando se hace clic en el botón de mi interfaz de usuario, puedo leer la posición del control deslizante de tiempo. Por el momento, puedo enviar un evento js con event.data que arroja esta posición.

Al mismo tiempo, tengo un proceso .exe separado con una interfaz de usuario adicional (myPlugin.exe). myPlugin.exe es para escuchar este evento, y debo introducir este event.data en él. myPlugin.exe está escrito en C++.

¿Cuál es la mejor manera de hacer que c ++ capture este evento y lea la posición del control deslizante?

Por el momento, mi código javascript se ve así: (fragmento del archivo .js):

 var insertButton = document.querySelector("#insert-button"); insertButton.addEventListener("click", openDocument); var sliderEvent = new CSEvent("slider", "APPLICATION"); function openDocument(){ csInterface.evalScript('openDocument('+')', function(response) { sliderEvent.data = JSON.parse(response); new csInterface.dispatchEvent(sliderEvent); alert(sliderEvent.data); // this sliderEvent.data should be passed into my c++ file }) }

y el script .jsx:

 function openDocument(){ var CTI_seconds = app.project.activeSequence.getPlayerPosition().seconds;// player position in seconds; return CTI_seconds; }

¿Puede ser que deba usar stdout en javascript en lugar del evento de envío? ¿Cuál es la mejor manera de lograr el tiempo de transferencia en ayunas?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!