Results 1 to 11 of 11

Thread: Mouse Clicking

  1. #1
    Join Date
    Jan 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Mouse Clicking

    Mouse doesn't click on the goblin, anyone know why?

    Simba Code:
    procedure kill;
    begin
     If P07_FindObjCustom(x, y, ['ttack', 'oblin'], [3511438, 2519700, 11908543, 5207393, 3760540, 1863248, 8097434,3357762], 5) then
     Mouse(x, y, 0, 0, false);
     ChooseOption('ake');
     repeat
       Wait(RandomRange(3500,2500));
       Until not IsUpText('oblin')
    end;
    says successfully executed though

  2. #2
    Join Date
    Feb 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Under Procedure add your x and X Var integers.

  3. #3
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    I am not sure but I think you must change Mouse to ClickMouse2

  4. #4
    Join Date
    Jan 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    That was added at the beginning of the script this is simply a snippet of the script that I assume is causing the problem

  5. #5
    Join Date
    Feb 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Zackeri View Post
    That was added at the beginning of the script this is simply a snippet of the script that I assume is causing the problem
    procedure kill;

    YOUR VAR'S ALSO GO HERE. It calls them from the top.

    begin
    If P07_FindObjCustom(x, y, ['ttack', 'oblin'], [3511438, 2519700, 11908543, 5207393, 3760540, 1863248, 8097434,3357762], 5) then
    Mouse(x, y, 0, 0, false);
    ChooseOption('ake');
    repeat
    Wait(RandomRange(3500,2500));
    Until not IsUpText('oblin')
    end;

  6. #6
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by Aarondawg View Post
    Under Procedure add your x and X Var integers.
    Ya I think that is a better answer :P

  7. #7
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Use mmouse or clickmouse2. Mouse is bad to use.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  8. #8
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by Element17 View Post
    Use mmouse or clickmouse2. Mouse is bad to use.
    cool, I said the right thing !

  9. #9
    Join Date
    Jan 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    still doesn't work, changed my colors too :/

  10. #10
    Join Date
    Jan 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Still looking for a solution

  11. #11
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    I changed it a bit and commented what I changed.

    Simba Code:
    procedure kill;
    begin
     if P07_FindObjCustom(x, y, ['ttack', 'oblin'], [3511438, 2519700, 11908543, 5207393, 3760540, 1863248, 8097434,3357762], 5) then
     begin //You forgot to put a begin/end, so it only executed the next line
       WriteLn('Found Goblin')//Will print this to debug if it finds the goblin
       MMouse(x, y, 0, 0); //Changed to MMouse
       ClickMouse2(False);  //And ClickMouse2
       ChooseOption('ake');
       repeat
         Wait(RandomRange(3500,2500));
       Until not IsUpText('oblin')
     end else //I added this to match the begin I added, you could also use end; if you don't want the debug message
       WriteLn('Could not find Goblin'); //Will print this to debug if it doesn't find the goblin
    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
  •