Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 35 Replies) Ill put it here.. cuz... who cares? (Read 8113 times)
Vendui
Releaser Of Exploits
*
Offline


Dare to tempt your fates?
Everything has a price.

Posts: 2492
Location: Central WI
Joined: Oct 31st, 2013
Gender: Male
Ill put it here.. cuz... who cares?
Jun 5th, 2014 at 11:36am
Print Post  
Nothing to see here... lil help from the devil made it all so much easier.... thankies mr devil man... (and thank you Dickie for trying to help :c)
« Last Edit: Jun 5th, 2014 at 12:20pm by Vendui »  
Back to top
 
IP Logged
 
Dickbutt
Titan Demolisher
****
Offline


Richard Butkus

Posts: 386
Joined: Aug 18th, 2011
Re: Ill put it here.. cuz... who cares?
Reply #1 - Jun 5th, 2014 at 11:53am
Print Post  
Simple psuedo code.

Code
Select All
Step := 0;
while(true){
    Time := A_Tickcount;
    switch(Step){
    case 0:
        //First step here
        Step++;
        break;
    case 1:
        while(true){
            if(A_Tickcount - Time > 1000){
                Step--;
                break; //Failure (1 second without success), repeat previous step
            }
            //Step 2 here, increment Step and break if found
        }
       
        break;
    }
    if(Step = NumSteps){
        break;
    }
}

 

« Last Edit: Jun 5th, 2014 at 11:57am by Dickbutt »  
Back to top
 
IP Logged
 
�ed
Dragon Raider
***
Offline


WTB Souls, PST

Posts: 227
Joined: May 8th, 2012
Re: Ill put it here.. cuz... who cares?
Reply #2 - Jun 5th, 2014 at 11:59am
Print Post  
pixelgetcolor ?

I can't get imagesearch to work at all, returns the background texture every time. Same with pixelgetcolor =(
  
Back to top
 
IP Logged
 
Vendui
Releaser Of Exploits
*
Offline


Dare to tempt your fates?
Everything has a price.

Posts: 2492
Location: Central WI
Joined: Oct 31st, 2013
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #3 - Jun 5th, 2014 at 12:09pm
Print Post  
image search works, and is faster than pixel.. now... to decipher the "simple" code... and put it in to work... hms.... ^-^
  
Back to top
 
IP Logged
 
Dickbutt
Titan Demolisher
****
Offline


Richard Butkus

Posts: 386
Joined: Aug 18th, 2011
Re: Ill put it here.. cuz... who cares?
Reply #4 - Jun 5th, 2014 at 12:28pm
Print Post  
Place your first while loop where I marked the first step. Add the contents of your second loop to where I marked the second step, but increase the step variable in your if block. Copy the case 1 template for each remaining while loop. Assign the number of steps (one higher than the last case x) to the NumSteps variable where the Step variable is first assigned. Adjust the 1000 value in each step to a suitable millisecond timeout.

I would type it out, but I'm on a mobile device at the moment. Typing out the spaces for the code formatting was bad enough.
« Last Edit: Jun 5th, 2014 at 12:31pm by Dickbutt »  
Back to top
 
IP Logged
 
Mr
Titan Demolisher
****
Offline



Posts: 361
Joined: Apr 20th, 2011
Re: Ill put it here.. cuz... who cares?
Reply #5 - Jun 5th, 2014 at 8:41pm
Print Post  
I don't get it...
  

Back to top
 
IP Logged
 
Dickbutt
Titan Demolisher
****
Offline


Richard Butkus

Posts: 386
Joined: Aug 18th, 2011
Re: Ill put it here.. cuz... who cares?
Reply #6 - Jun 5th, 2014 at 10:00pm
Print Post  
Mr wrote on Jun 5th, 2014 at 8:41pm:
I don't get it...


Olath's original post, because I'm feeling chaotic:

alright... so... im almost done with my own script... however... i want to put in an  If "yxz" is found, then do {THIS} Else do "{ThIs}... naturally.. its easier to see what i want.. done.. so... here..

Code
Select All
enterquest()
{
     ; Locate Door Loop
     while (1=1)
     {
         ImageSearch, PX,PY,0,0,%A_ScreenWidth%,%A_ScreenHeight%, *60 %A_Desktop%\ddobot\Door.png
         if ErrorLevel = 0
         {
               Click %PX%, %PY%
               break
         }
     }

     ; Find the EE Button
     while (1=1)
     {
         ImageSearch, PX,PY,0,0,%A_ScreenWidth%,%A_ScreenHeight%, *60 %A_Desktop%\ddobot\EEButton.png
         if ErrorLevel = 0
         {
               Click %PX%, %PY%
               break
         }
     }

     ; Find the Enter Button
     while (1=1)
     {
         ImageSearch, PX,PY,0,0,%A_ScreenWidth%,%A_ScreenHeight%, *60 %A_Desktop%\ddobot\EnterButton.png
         if ErrorLevel = 0
         {
               Click %PX%, %PY%
               break
         }
     }

     ; Wait until instance loads
     ; Find the In Button
     while (1=1)
     {
         ImageSearch, PX,PY,0,0,%A_ScreenWidth%,%A_ScreenHeight%, *60 %A_Desktop%\ddobot\In.png
         if ErrorLevel = 0
         {
               break
         }
     }

}
  



Alright.. as you can see.. this will open the door Ui, click EE button, click enter.. and then wait until image search finds an image, indicating you have loaded in...


What i want.. is if perchance lag causes the door to NOT open after clicking it (lag yah know.. badass bitch it is Cheesy) then to repeat the sequence until it does open... Anyone?.... i did all the hard work.... i just want to make it better....  Undecided
  
Back to top
 
IP Logged
 
Some Guy Here On The Boards
Ghostbaned
*****
Offline


Somewhere on Korthos Island

Posts: 528
Location: Thelanis
Joined: Nov 3rd, 2013
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #7 - Jun 5th, 2014 at 11:59pm
Print Post  
Hmm... this script looks strangely familiar...  Cheesy
  
Back to top
 
IP Logged
 
Alex DeLarge
Epic Poster
*****
Offline


Get ready for some of
the 'ol in-out, in-out

Posts: 3481
Location: Foggy Albion
Joined: May 11th, 2013
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #8 - Jun 6th, 2014 at 12:24am
Print Post  
Some Guy Here On The Boards wrote on Jun 5th, 2014 at 11:59pm:
Hmm... this script looks strangely familiar...   Cheesy



Shush you!  Grin
  

Back to top
 
IP Logged
 
Vendui
Releaser Of Exploits
*
Offline


Dare to tempt your fates?
Everything has a price.

Posts: 2492
Location: Central WI
Joined: Oct 31st, 2013
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #9 - Jun 6th, 2014 at 1:04am
Print Post  
Some Guy Here On The Boards wrote on Jun 5th, 2014 at 11:59pm:
Hmm... this script looks strangely familiar...



i would hope so... you damn leech... >.> ^-^


(also.. its working almost flawlessly now... i STILL need to incorperate a failsafe.. in a few places.. but.. too tired.. might screw it up xD)
  
Back to top
 
IP Logged
 
BAMBIBEER
Dragon Raider
***
Offline


Stink puss

Posts: 275
Location: At some bar .
Joined: Feb 14th, 2014
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #10 - Jun 6th, 2014 at 1:26am
Print Post  
AH , all Devils where are great fun . Great XP and you have to think about what you are going to do. Remember at LV ,Epic at at 20  . This was the hardest Quests to do .  Cheesy
  
Back to top
 
IP Logged
 
skitz
Waterworks Kobold
**
Offline


I Love Drama!

Posts: 174
Joined: Jun 5th, 2014
Re: Ill put it here.. cuz... who cares?
Reply #11 - Jun 6th, 2014 at 2:00am
Print Post  
Are you that ignorant guy? You have already gotten to 100 posts. Please stop the retard shit now. Thanks
  
Back to top
 
IP Logged
 
NOTdarth
Puppy Farmer
****
Offline


Save the Planet, Kill
Yourself

Posts: 1495
Joined: Oct 15th, 2012
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #12 - Jun 6th, 2014 at 3:13am
Print Post  
he's not acting that he's retarded. he really is
  

Back to top
 
IP Logged
 
deftest
Titan Demolisher
****
Offline


I Love Drama!

Posts: 314
Joined: Jul 13th, 2011
Re: Ill put it here.. cuz... who cares?
Reply #13 - Jun 6th, 2014 at 12:41pm
Print Post  
bambibeer is the first step in uplifting koala bears to sentinence.....hes doing pretty well considering
  
Back to top
 
IP Logged
 
fr8o
Dragon Raider
***
Offline



Posts: 274
Joined: Mar 17th, 2014
Re: Ill put it here.. cuz... who cares?
Reply #14 - Jun 6th, 2014 at 3:34pm
Print Post  
I never was able to get this working with image search >_< so I just gave it x/y for where the button would be and go for it.  Less error checking since I can't check if I am in the quest, however it gets the job done at least.
  
Back to top
 
IP Logged
 
Some Guy Here On The Boards
Ghostbaned
*****
Offline


Somewhere on Korthos Island

Posts: 528
Location: Thelanis
Joined: Nov 3rd, 2013
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #15 - Jun 6th, 2014 at 6:57pm
Print Post  
Vendui wrote on Jun 6th, 2014 at 1:04am:



i would hope so... you damn leech... >.> ^-^


(also.. its working almost flawlessly now... i STILL need to incorperate a failsafe.. in a few places.. but.. too tired.. might screw it up xD)


Hmm... What failed for you with the other one? Works flawlessly for me, in exactly 1 minute 11 seconds. If you want, I can take a look at the script again. Just PM it tome. And... "leech" ? Aww, olath, that hurts Sad
  
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Ill put it here.. cuz... who cares?
Reply #16 - Jun 6th, 2014 at 7:23pm
Print Post  
deftest wrote on Jun 6th, 2014 at 12:41pm:
bambibeer is the first step in uplifting koala bears to sentinence.....hes doing pretty well considering


As a proxy representative of sentient Koalas, we resent the implied association of your message.
Please desist and choose something more appropriate like .... beavers, because that's a double entendre.
Koala's simply aren't funny, well except when we get drunk and fall out trees, but that is another matter.  We don't drunk post or go surfing as said protagonist does.

Also, what is sentinence?  Not sure, but it doesn't sound good....
Grin
  
Back to top
 
IP Logged
 
fr8o
Dragon Raider
***
Offline



Posts: 274
Joined: Mar 17th, 2014
Re: Ill put it here.. cuz... who cares?
Reply #17 - Jun 6th, 2014 at 7:30pm
Print Post  
Derp, got it working turns out all the images I tried were just not liked Tongue
  
Back to top
 
IP Logged
 
Some Guy Here On The Boards
Ghostbaned
*****
Offline


Somewhere on Korthos Island

Posts: 528
Location: Thelanis
Joined: Nov 3rd, 2013
Gender: Male
Re: Ill put it here.. cuz... who cares?
Reply #18 - Jun 6th, 2014 at 7:38pm
Print Post  
fr8o wrote on Jun 6th, 2014 at 7:30pm:
Derp, got it working turns out all the images I tried were just not liked Tongue


I put error messages to break and exit the app whenever an imagesearch fails... Most of the time, the image just needs to be redone, for whatever reason, and then script works again. The images are very... sensitive. Change settings at all, and probably have to redo your images.
  
Back to top
 
IP Logged
 
SwashbucklerHater
Titan Demolisher
****
Offline


I Love Drama!

Posts: 337
Joined: Sep 2nd, 2013
Re: Ill put it here.. cuz... who cares?
Reply #19 - Jun 6th, 2014 at 7:54pm
Print Post  
@Dickbutt: How about a loop around finding the quest entrance and finding the EE button?
If you don't find the EE button just search for the door again?

  
Back to top
 
IP Logged
 
Dickbutt
Titan Demolisher
****
Offline


Richard Butkus

Posts: 386
Joined: Aug 18th, 2011
Re: Ill put it here.. cuz... who cares?
Reply #20 - Jun 6th, 2014 at 8:52pm
Print Post  
SwashbucklerHater wrote on Jun 6th, 2014 at 7:54pm:
@Dickbutt: How about a loop around finding the quest entrance and finding the EE button?
If you don't find the EE button just search for the door again?


That's what my instructions would have made. case 0 is finding the quest entrance and clicking it. After doing this, it increments the step variable. case 1 is finding the EE button and clicking it. If the button is found, step is incremented and it moves to case 2. If it is not found, step is decremented and it moves back to case 0.
  
Back to top
 
IP Logged
 
Fire Foot
Ex Member


Re: Ill put it here.. cuz... who cares?
Reply #21 - Jun 6th, 2014 at 8:55pm
Print Post  
it is so funny that on the index it shortens this thread and with Dickbutt the last poster all I saw was:

I'll put it here...cuz  Dickbutt


juvenile but oh so funny!  Grin

  
Back to top
 
IP Logged
 
fr8o
Dragon Raider
***
Offline



Posts: 274
Joined: Mar 17th, 2014
Re: Ill put it here.. cuz... who cares?
Reply #22 - Jun 7th, 2014 at 1:55am
Print Post  
So, just for fun I have worked in reading the x/y loc from memory and moving accordingly to fine tune my movements to end up in the same spots even with lag Smiley
  
Back to top
 
IP Logged
 
DropBear
Dropbear Awareness Society
*
Offline


Don't forget to look up....

Posts: 4377
Location: Landdownunder
Joined: Oct 11th, 2013
Re: Ill put it here.. cuz... who cares?
Reply #23 - Jun 7th, 2014 at 3:03am
Print Post  
fr8o wrote on Jun 7th, 2014 at 1:55am:
So, just for fun I have worked in reading the x/y loc from memory and moving accordingly to fine tune my movements to end up in the same spots even with lag Smiley


Very nice.   Cool
That's a nice way to overcome lag.

  
Back to top
 
IP Logged
 
OneUpGamer
Dragon Raider
***
Offline



Posts: 226
Joined: Mar 10th, 2014
Re: Ill put it here.. cuz... who cares?
Reply #24 - Jun 7th, 2014 at 10:03am
Print Post  
My home grown script works just fine. It accounts for lag in key places and in others where it doesn't it simply runs the course of the script and starts over.

Smiley
« Last Edit: Jun 7th, 2014 at 10:03am by OneUpGamer »  

~~~~~~~~~~~
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint