Mailstor commnand on right click

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

Mailstor commnand on right click

Postby Somnus » 07 Nov 2010, 03:37

I am trying to configure the following command:

Mailstored(Player),mailstor -1,1,1

For my right click menu, but it sends this command:

mailstor -1 Peter

Instead of

mailstor Peter -1

How can I change this to get it to work?
Somnus
 
Posts: 54
Joined: 26 Dec 2004, 03:12
Location: Edmonton, Alberta, Canada

Re: Mailstor commnand on right click

Postby H.G.Muller » 07 Nov 2010, 11:37

I don't think the current version can handle that. When you specify the command should include the right-clicked word, that word is always appended to the end of the command. If you want to have any fixed text behind it, there is no alternative but to type it yourself.

To redesign this to do what you want, would require some marker in the command text that would tell WB where to insert the clicked word. We could make it for instance such that %s inside the command text would be replaced by the clicked word, and only when no %s is present, the word would be appended at the end. As it seems unlikely that people are now actually sending commands with '%s' in it, this seems backward compatible enough.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Mailstor commnand on right click

Postby H.G.Muller » 07 Nov 2010, 12:13

OK, it seems to work. I included the modified binary in the http://hgm.nubati.net/Spartan.zip package, you could dish it out of there. To define the command you want, use

Mailstored(Player),mailstor %s -1,1,1

in the /icsMenu string.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 8 guests