Issue: SRL Player Form, Script Start Hot key, or highlight

  1. issueid=427 04-18-2015 07:55 PM
    SRL Member
    SRL Player Form, Script Start Hot key, or highlight
    Have the player form run with the start key highlighted, or add a hot key for it.

    I was wondering if it was possible to have a hotkey for the start button on the player form, or maybe having the player form start with the Start key highlighted.

    the Player form currently starts as


    I was wondering if it could be changed to start as



    So it would be easier to initiate scripts with the saved settings from the previous run.
Issue Details
Issue Number 427
Issue Type Feature
Project SRL Bugs and Suggestions
Status Accepted
Votes for this feature 0
Votes against this feature 0
Assigned Users (none)
Tags (none)




  1. 04-27-2015 06:50 PM
    The Academic
    I'm not sure if this is possible with lape forms. I'll ask olly.
  2. 04-30-2015 08:44 PM
    Community Complainer
    Actually I think this is possible, you can try it if you want.. I think it's playerform_tform.setactivecontrol(playerform_start_script_button)
  3. 05-05-2015 02:45 AM
    SRL Member
    I'm sorry but, does that mean that it is possible but it is not an approved suggestion? if so is there any way I can do it?
  4. 05-06-2015 03:58 AM
    Community Complainer
    Quote Originally Posted by fady
    I'm sorry but, does that mean that it is possible but it is not an approved suggestion? if so is there any way I can do it?
    Try this:
    Open up srlplayerform.simba in misc folder, and change PF_Init() (right at the bottom) to this:

    Simba Code:
    procedure PF_Init(); Native;
    var
      i: integer;
    begin
      PF_Create();
      PF_AddComponents();
      PF_Defaults();
      PF_LoadSettings();

      try
        playerform.mainform.setactivecontrol(playerform.btnStart);
        playerForm.mainForm.showModal();
      except
        print('Uh-oh failed to show playerform', TDebug.ERROR);
      finally
        playerForm.mainForm.free();
        for i := 0 to 1 do
          playerForm.__btnBmps[i].free();
      end;
    end;
  5. 05-06-2015 05:04 PM
    The Academic
    If this works I'll push the changes later this week
  6. 05-06-2015 07:33 PM
  7. 05-08-2015 02:57 AM
    SRL Member
    Thank you!!
+ Reply