COM interface

Apr 17, 2012 at 10:39 AM
I'm trying the COM interface but one question came in my mind: The release date of Wabbitemu and Wabbitemu dll are not the same. Does this mean that the dll is outdated and that it can't be used with the latest version of wabbitemu ? Is the wiki documentation about the COM interface outdated ? Thanks for answers.
Developer
Apr 17, 2012 at 10:45 AM

The DLL contains the same code as the EXE only provided as a link library. This means you can use it without the EXE. It also means the code is slightly out of date, but since most of the changes have been to the GUI, there is no reason to release a new DLL. The wiki is probably a little out of date, but the basics are all there. The sample project should contain plenty to get you started.

Apr 17, 2012 at 4:12 PM
Edited Apr 17, 2012 at 6:15 PM

 

Thanks for the answer.
My will is to do the following:
[no admin rights]
--> Load a rom into WabbitEmu
--> Wait for the ROM to be loaded
--> Load an assembly program in WabbitEmu
--> Wait for the asm prgm to be loaded
--> Type the following depending on calculator: Asm( or Send(9
--> Optional: Type the program's name
--> Let the user do what he wants to do

Does your COM interface support all of these actions ? If yes, what dll call should I do to do the following ?

How can I make sure ROM/program loading is finished before trying to simulate a keypress ?

Is there a function to simulate a keypress without manually virtualy press/release the key ?

Currently, I'm using the command line to directly send a file to the calculator but I need the COM interface for steps 1, 3 and 4.

Thanks for answer.

Btw: Is it possible to update Wabbitemu/dll to add an action in COM interface allowing to create a rom "Using an open-source software" and save it with the name we want. Thanks.

Ps: Tell me if I'm wrong but the dll is actually the same as the exe (GUI etc) but we can do dll calls on it ?

 

EDIT: For test purpose, I added the dll to COM objects using regsvr32 WabbitEmu.dll

Now, I opened "Object browser", a software designed to browse through registred COM functions.

The only one I can find is Wabbit.Wabbitemu and this doesn't hold any function :/

How can I get the functions and be sure that they are up-to-date ?

Apr 18, 2012 at 1:41 PM
lesolutionneur120 wrote:

 

Thanks for the answer.
My will is to do the following:
[no admin rights]
--> Load a rom into WabbitEmu
--> Wait for the ROM to be loaded
--> Load an assembly program in WabbitEmu
--> Wait for the asm prgm to be loaded
--> Type the following depending on calculator: Asm( or Send(9
--> Optional: Type the program's name
--> Let the user do what he wants to do

Does your COM interface support all of these actions ? If yes, what dll call should I do to do the following ?

How can I make sure ROM/program loading is finished before trying to simulate a keypress ?

Is there a function to simulate a keypress without manually virtualy press/release the key ?

Currently, I'm using the command line to directly send a file to the calculator but I need the COM interface for steps 1, 3 and 4.

Thanks for answer.

Btw: Is it possible to update Wabbitemu/dll to add an action in COM interface allowing to create a rom "Using an open-source software" and save it with the name we want. Thanks.

Ps: Tell me if I'm wrong but the dll is actually the same as the exe (GUI etc) but we can do dll calls on it ?

 

EDIT: For test purpose, I added the dll to COM objects using regsvr32 WabbitEmu.dll

Now, I opened "Object browser", a software designed to browse through registred COM functions.

The only one I can find is Wabbit.Wabbitemu and this doesn't hold any function :/

How can I get the functions and be sure that they are up-to-date ?

I tried to not use the COM interface simulating key presses like "c" to open programs etc. The problem is that each computer doesn't have the same speed that means that the waiting time between key presses change between computers...

So I need to use the COM interface to avoid problems so please answer to my questions in the quote.

Many thanks for your support.