Author Topic: Does anyone have a chess profile  (Read 6254 times)

Josh01

  • Guest
Does anyone have a chess profile
« on: November 22, 2017, 10:45:30 PM »
Does anyone have a chess game profile.

I would much appreciate a upload or help doing so as i need to use voice to type so its kinda hard to do it solo.

Thank you
« Last Edit: November 22, 2017, 11:07:23 PM by Josh01 »

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Does anyone have a chess profile
« Reply #1 on: November 23, 2017, 01:18:01 AM »
The way the profile would work depends on how the game expects input. If you're using a chess engine that allows direct input(E.G. "E7 to B6"), it may be relatively straightforward to either paste or autotype things.

If you're targeting a chess game that uses cursor keys, you'd need to home the cursor first to a known position, so VoiceAttack can keep track of it. Depending on whether the game has wraparound(I.E. hitting the edge and continuing in that direction would move to the opposing edge), you'd either run the cursor into a corner where it can't move further on one direction in both X and Y, or manually specify the position(E.G. "cursor currently at A3").

A chess game that uses mouse control exclusively would be near impossible, unless the camera is entirely static.


If you have a specific engine/game in mind, I could have a look at putting together a basic profile.

Josh01

  • Guest
Re: Does anyone have a chess profile
« Reply #2 on: November 23, 2017, 05:58:16 PM »
Hi thank you so much for replying do you know how to find a direct input chess game. So i can pick one and send you a link?

Ill start googling now

thnx again

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Does anyone have a chess profile
« Reply #3 on: November 24, 2017, 12:32:01 AM »
Unfortunately I do not.

I looked into Tarrasch , Arena Chess, and Fritz. Supposedly they allow for text input, but as I'm not familiar with the system, I'm not sure how to use that in a live game, rather than just for setting up the board.
Though, while it's not ideal, 2D systems like these could be set up to use mouse control. The main issue there is that the position of control elements within the application in relative to window size and position; You'd have to "calibrate" it so the mouse cursor moves to the correct position on all squares.

I did come across this online app, which is supposed to allow for voice input directly, but apparently requires you to use a Chrome-based browser.


It's a bit rough around the edges to say the least, but the attached profile should allow you to play a basic game of 2D chess.
Tested with Arena Chess and working fine. Tested with Fritz as well, but for whatever reason it would let me move some pieces but not others, despite the same delay.

First, make sure you have the game/browser window selected, and calibrate the system by moving the mouse cursor to the approximate center of one of the corner squares and say "calibrate corner 1", then move the cursor to the approximate center of the diagonally opposed corner(E.G. A1 to H8, or H1 to A8) and say "calibrate corner 2".
This should allow interpolation between those two points to figure out where any given square is located

To play, say the initial position of the piece you wish to move, followed by "to", and the target position of the piece you wish to move(E.G. "A2 to A3").

There's also a "click" command, which clicks any target square once(E.G. "click A1").
This is useful in Arena Chess if the selection box is currently on the wrong square(which happens when you try an illegal move, like moving one of your own pieces on top of a square occupied by another of your pieces).

If you rotate the board, and wish to play in that orientation, say "rotate board".
If the board rotation is incorrect, specify which square is now in the top right corner(E.G. "rotate board alpha 1 top right")

There is a command included to set the movement delay, which affects the general delay between each action of moving the cursor and clicking.
If the chess application doesn't accept the move, you can try increasing this(E.G. "movement delay 300" sets it to 300ms; Valid values go from 100 to 900 in 100ms steps).


I didn't have much luck getting individual letters recognized, so the NATO alphabet is also an option(E.G. "Alpha 2 to Alpha 3).


If the chess window retains the same placement between VoiceAttack restarts, there should be no need to recalibrate, calibration data is stored with the profile(though initial calibration is of course required).
The board rotation is not retrieved, as Arena Chess doesn't save it either, but you can re-enable that in the "Profile Setup" command if needed.


As a side note, I ended up using C# because VoiceAttack won't convert fractional numbers that use a comma as the decimal separator(which is a known issue).
« Last Edit: November 25, 2017, 12:25:23 PM by Pfeil »

Josh01

  • Guest
Re: Does anyone have a chess profile
« Reply #4 on: November 25, 2017, 05:19:20 AM »
Thank you so much i appreciate it alot as it is extremely hard to do it myself as i cannot use a mouse anymore.

Thank you. ;)

Antaniserse

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 87
    • My VA plugins
Re: Does anyone have a chess profile
« Reply #5 on: November 27, 2017, 09:24:43 AM »
Hi,
I do have a small profile that I created for browsing games in Chessbase... never really completed it, since I moved to a different type of approach for voice control (a custom made PGN chess reader that I'm writing, with voice commands and TTS) but it could be a good starting point

It should work with Chessbase and also other UI from the Fritz/Komodo/Houdini family, since they share the same interface

If you need help fixing something or adding some new functions to it, feel free to ask.
"I am not perfect and neither was my career. In the end tennis is like life, messy."
Marat Safin

Josh01

  • Guest
Re: Does anyone have a chess profile
« Reply #6 on: November 28, 2017, 07:09:09 AM »
Thank you ill download it and give it a shot
 :D ;D