Scripting help for dcexel

Do you have trouble to set-up your emulator for a platform?, need a script?...ask here, we might be able to help you!
User avatar
te_lanus
ECC Support
Posts: 265
Joined: 25 May 2009, 05:00
Location: Port Elizabeth, South Africa

Scripting help for dcexel

Unread post by te_lanus » 03 Jun 2009, 14:12

Hi Phoenix & co.

I just need a little help. I'm busy adding the Exelvision EXL100 to ECC. using DCEXEL

There is no command-line support, so a script is needed. I've started a script to be able to use the emulator, but it seems to need a mouse click to load software/cartridges.:no: Is there a way to add a mouse click to the script?
Spoiler: show

Code: Select all

; Platform       	: exelvision
; Script for     	: dcexel
; Script version 	: v0.0.0.1
; Last changed   	: 2009.06.03
;
;
; Author :  te_lanus (ECC forum member)
;
; NOTES:
;
;
;

; ==============================================================================
; You need to implent this block in every script, this changes the workfolder to
; the folder where this script is executed, and loads the 'eccScriptSystem' script.
FileChangeDir(@ScriptDir)
#include "..\eccScriptSystem.au3"
; ==============================================================================

; ------------------------------------------------------------------------------
; BEGIN OF SCRIPT
; ------------------------------------------------------------------------------
EmuWindowControl("DCEXEL - Exelvision computer emulator")

; Load Image
;
Send("{ALT}")
Send("{DOWN}")
Send("{ENTER}")
Sleep(1000)
Send("{ENTER}") ;problem is here ](*,) 
Send(chr(34) & $eccFileRomPath & $eccFileRomFile & chr(34))
Send("{ENTER}")

; ------------------------------------------------------------------------------
; END OF SCRIPT
; ------------------------------------------------------------------------------
Exit
emu is available at:
(http://dcexel.free.fr/) :music:
they've got a good selection (almost all) software for the system.

te_lanus
Busy with:
image packs:
- EPOCH Super Cassette Vision, Exelvision EXL100
Platforms:
- Cybiko Xtreme
- Matsushita (Panasonic) National JR-200
- PDP-8, PDP-11, TRS-80 Model 100
- Tangerine Microtan 65, Terminal Computer SOL-20, Wang VS

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Scripting help

Unread post by Phoenix » 03 Jun 2009, 22:24

Hi te_lanus

You can try "MouseMove" for more docs visit the autoit3 webpage here: http://www.autoitscript.com/autoit3/docs/functions.htm

I can help you if possible ;)
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
te_lanus
ECC Support
Posts: 265
Joined: 25 May 2009, 05:00
Location: Port Elizabeth, South Africa

Re: Scripting help

Unread post by te_lanus » 03 Jun 2009, 23:48

hi phoenix.

thanx for the linx. looks like i'm in for a crash course this weekend. :-)

te_lanus
Busy with:
image packs:
- EPOCH Super Cassette Vision, Exelvision EXL100
Platforms:
- Cybiko Xtreme
- Matsushita (Panasonic) National JR-200
- PDP-8, PDP-11, TRS-80 Model 100
- Tangerine Microtan 65, Terminal Computer SOL-20, Wang VS

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Scripting help

Unread post by Phoenix » 04 Jun 2009, 00:09

I also tried it, it seems you also can't use the TAB button :O, so in my vision, this app is crappy programmed.... ;)
Attachments
ecc_dcexel.png
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Scripting help for dcexel

Unread post by Phoenix » 04 Jun 2009, 00:45

Hi te_lanus,

I got the solution for your part :smartass:, since the window (to load roms) will not always appear on the same section of the screen, you need to get the X & Y position of it first, so:

1. Get the X & Y values of the top of the window.
2. then mousemove a certain of pixels from that location to a button.

I have tried to explain it here:
dcexel_solution.png
This would be the EXAMPLE code:
Spoiler: show

Code: Select all

If Not WinActive(" DCEXEL périphériques","") Then WinActivate(" DCEXEL périphériques","")
WinWaitActive(" DCEXEL périphériques","")

$coord = WinGetPos(" DCEXEL périphériques")

; Cartouche
MouseMove($coord[0] + 370, $coord[1]+ 70)

; Exelmemoire
MouseMove($coord[0] + 370, $coord[1]+ 100)

; Disque A
MouseMove($coord[0] + 370, $coord[1]+ 130)

; Disque B
MouseMove($coord[0] + 370, $coord[1]+ 160)

; Cassette
MouseMove($coord[0] + 370, $coord[1]+ 190)
The same goes for the "OK" button to be pressed. If you don't understand, feel free to ask ;)
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
te_lanus
ECC Support
Posts: 265
Joined: 25 May 2009, 05:00
Location: Port Elizabeth, South Africa

Re: Scripting help for dcexel

Unread post by te_lanus » 04 Jun 2009, 11:42

Hi Phoenix

Thanx for the info. If I have a problem I will give you a shout.

I'm away from the computer and home this weekend :swing: , so will only be able to get back to programming on Sunday.

te_lanus
Busy with:
image packs:
- EPOCH Super Cassette Vision, Exelvision EXL100
Platforms:
- Cybiko Xtreme
- Matsushita (Panasonic) National JR-200
- PDP-8, PDP-11, TRS-80 Model 100
- Tangerine Microtan 65, Terminal Computer SOL-20, Wang VS

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest