BBO Discussion Forums: OKScript - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

OKScript

#1 User is offline   stansllee 

  • PipPip
  • Group: Members
  • Posts: 48
  • Joined: 2004-February-11
  • Gender:Male
  • Location:Sydney Australia
  • Interests:Travel

Posted 2004-April-07, 20:50

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?
Never growl at your partner. You never know what fine player is watching and would have asked you to play.
0

#2 User is offline   1eyedjack 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,575
  • Joined: 2004-March-12
  • Gender:Male
  • Location:UK

Posted 2004-April-07, 23:50

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
Psych (pron. saik): A gross and deliberate misstatement of honour strength and/or suit length. Expressly permitted under Law 73E but forbidden contrary to that law by Acol club tourneys.

Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mPosted ImagesPosted ImagetPosted Imager-mPosted ImagendPosted Imageing) tr. v. - Any bid made by bridge player with which partner disagrees.

"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"

"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users