Results 1 to 4 of 4

Thread: Need Help Using APPA

  1. #1
    Join Date
    Jan 2012
    Location
    Classified
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Need Help Using APPA

    I've made a few scripts for private servers and I have no way of running them without the script using my mouse. I searched through the forums and came across APPA. Unfortunately I have no idea how to work this, so if someone could help me that would be great.
    There is no 'Ctrl' button on 's computer. is always in control.

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    You place the dll into your plugins folder and import it into your simba script.
    When I started typing a short sample code, I remembered Home made a nice include for scar (which should need little to no edits for simba), which this example originates from:

    Simba Code:
    {$i SRL/srl.simba}
      {$loadlib Appa_Simba}
    begin
      appa_ShowForm; //Show the form
      appa_NavigateTo('', 10000); //Wait until it's fully loaded
      appa_NavigateTo('http://www.google.com', 10000); //Navigate
    end.

  3. #3
    Join Date
    Jan 2012
    Location
    Classified
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I always get "Invalid number of parameters" at
    appa_Navigate('', 10000); //Wait until it's fully loaded
    appa_Navigate('http://www.google.com', 10000); //Navigate
    There is no 'Ctrl' button on 's computer. is always in control.

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Quote Originally Posted by Kerk View Post
    I always get "Invalid number of parameters" at
    appa_Navigate('', 10000); //Wait until it's fully loaded
    appa_Navigate('http://www.google.com', 10000); //Navigate
    Oops, that's because it's not in the dll, try searching for Home's include.

    Here's the snippet that makes appa_Navigate() work;
    Simba Code:
    function appa_NavigateTo(URL: string; TimeOut: Integer): Boolean;
    var
      t: Integer;
    begin
      Result := False;
      if (not appa_Showing) then
        Exit;

      if (URL <> '') then
        appa_Navigate(URL);
      t := GetSystemTime + TimeOut;
      while (not appa_PageLoaded) and appa_Showing and (GetSystemTime < t) do
        Wait(250);

      Result := appa_PageState >= 3;
    end;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •