Jump to content

Recommended Posts

OKScript is widely used to create a button bars for okbridge (and other online) players. It greatly simplifies the alerting process.

In okbridge, the target window is OKbridge

Can someone tell me what's the target window in BBO?

Link to comment
Share on other sites

Hi

I cut and paste below the opening lines of my okscript files. Hope this helps.

Final 2 lines below are examples of specific button and menu definitions.

I have been trying to use OKScript to attach explanations to bids in the bidding history window but this has turned out to be unstable (not sure why), so this method simply sends explanations to both opponents in the chat window.

 

pragma filehelpoff

pragma hintson

-MACRO dir c:\Program files\OKS40\scripts\

-bboTW = Target Window on BBO

MACRO bboTW Bridge Base Online

-bboECTW = Target Window for bidding explanations on BBO

MACRO bboECTW Explain call:

-okbTW = Target Window on OKB

MACRO okbTW OKbridge

-blcTW = Target Window on BCL

MACRO bclTW Bridge Club Live

-Test = Target Window for testing (default Notepad)

MACRO Test Notepad

-okbLC = Leading Character to speak to opponents on OKB

MACRO okbLC =

-bboLC = Leading Character to speak to opponents on BBO

MACRO bboLC ^o

-bboECLC = Leading Character to Explain call on BBO

MACRO bboECLC ^a

-bclLC = Leading Character to speak to LHO on BCL

MACRO bclLC

-LC = Leading Character to speak to opponents

MACRO LC

-TW = Target Window

MACRO TW

MACRO enter {enter}

STARTUP

LET LC %bboLC%

LET TW %bboTW%

PROC Submit

onerror flagonce

Window %TW%

if value %-err% EQ 1

Message Target window missing: %TW%

else

PUT %LC%%-arg1% = %-arg2%%enter%

fi

Proc Table

onerror flagonce

Window %TW%

if value %-err% EQ 1

message Target window missing: %TW%

else

Put %-args%%enter%

fi

BUTTON "Thanks" Black

call table \THANK YOU!!

MENU "Uncontested|1C|Definition of 1C" *Submit \1C\NF, (1) nat or (2) 15-20 bal

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...