elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  Java
| | | |-+  Libreria Jacob
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Libreria Jacob  (Leído 1,920 veces)
mapers


Desconectado Desconectado

Mensajes: 638


Ver Perfil
Libreria Jacob
« en: 28 Abril 2015, 18:35 pm »

Buenas gente del foro necesito de sus sabios conocimientos, lo que sucede esque trato de utilizar la libreria jacob para poder levantar el ejemplo java que viene en ByteScout para grabar el escritorio del cliente el ejemplo es el siguiente :

Código
  1.  
  2. /*
  3. If you are running your Java application on Windows then you may use Screen Capturing SDK from Java using the Jacob library ( you may get it from http://danadler.com/jacob/ )
  4.  
  5. The final code (using Jacob) code should look like this
  6. */
  7. import com.ms.com.*;
  8. import com.ms.activeX.*;
  9.  
  10. public class DispatchTest
  11. {
  12. public static void main(String[] args)
  13. {
  14.   ActiveXComponent captureLib = new ActiveXComponent("BytescoutScreenCapturing.Capturer");
  15.   Object capturer = captureLib.getObject();
  16.   try {
  17.     // output file name
  18.     Dispatch.put(capturer, "OutputFileName", "EntireScreenCaptured.wmv");
  19.    // output width
  20.    Dispatch.put(capturer, "OutputWidth", 640);
  21.    // output height
  22.     Dispatch.put(capturer, "OutputHeight", 480);
  23.    // setting the capturing type to 3 (entire screen)
  24.     Dispatch.put(capturer, "CapturingType", 3);
  25.  
  26.    // run the recording
  27.     Variant f = new Variant(false);
  28.     Dispatch.call(workbook, "Run", f);
  29.  
  30.     // record for 5 seconds
  31.     Thread.sleep(4000);
  32.  
  33.   } catch (Exception e) {
  34.     e.printStackTrace();
  35.   } finally {
  36.           ;
  37.   }
  38. }
  39. }
  40.  
  41.  

Trato de compilar pero no se puede.

El problema esta que no reconoce al objeto workbook o es que la libreria esta desfasada, gracias por su tiempo .


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Libreria DLL « 1 2 »
Programación Visual Basic
sp26 11 4,185 Último mensaje 30 Octubre 2006, 20:20 pm
por sircid
Librería « 1 2 3 »
Programación C/C++
@synthesize 25 11,156 Último mensaje 27 Junio 2010, 05:12 am
por @synthesize
Libreria VNC
Programación C/C++
paju1986 0 2,790 Último mensaje 10 Diciembre 2010, 18:54 pm
por paju1986
Libreria GD PHP
PHP
charl1 1 1,568 Último mensaje 22 Septiembre 2012, 16:14 pm
por EFEX
Jacob Barnett, ¿niño autista, “el nuevo Einstein” o qué? « 1 2 »
Foro Libre
El_Andaluz 12 4,160 Último mensaje 9 Mayo 2016, 16:46 pm
por PalitroqueZ
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines