if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT' /* lock GUI, gain access */
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------ INSERT YOUR CODE HERE: ------------------- */
'REQUEST BODY="A new API client has been installed.|Do you want to have this client added|to the list of active clients ?" BUTTON="_START NEW CLIENT|no"'
if (RESULT = 1) then do
'REQUEST HIDE=TRUE'
'API FIND="NextStep"'
if (RC > 0) then do
'API ADD GOLDED:API/NextStep/DOCK'
'RUN WAITPORT DOCKSERVER'
end
'REQUEST STATUS="Waiting for dock startup ..."'
'RUN CMD="WAIT 5 sec"'
'REQUEST STATUS="" HIDE=FALSE BODY="API client has been added - save|new configuration ?" BUTTON="_SAVE|no"'
if (RESULT = 1) then
'PREFS SAVE'
'KEY EVENT="<ctrl shift r>"'
'REQUEST BODY="You can toggle the dock on/off using the|hotkey <ctrl shift r>. Do you want to have|the hotkey assigned to a mouse event (e.g.|a doublelick) ?" BUTTON="_ASSIGN TO MOUSE|no"'
if (RESULT = 1) then do
'REQUEST BODY="Select a mouse button ..." BUTTON="doubleclick|doublelick+SHIFT|left+CTRL|middle|none"'