Suggestions for features or improvements
#34105 by Spaceman Wed Aug 05, 2015 11:53 am
Some ideas

* Separate container for unopened artefacts.
* Sorting function that moves unopened artefacts to the top of the list.
* Settings feature that disables recycling opened artefacts.
* Add an option to apply a property to artefacts that protects them from recycling using select max function.

#34137 by Draconis Wed Aug 05, 2015 9:28 pm
there are two ways to protect artifacts from select max, buy art setups and store them in there and by placing an upgrade on them.

u use this to quickly reveal all artifacts http://pastebin.com/Nkhauc1r

and this will double click on 40 unrevealed arts http://pastebin.com/3qGZKFYA

to use them for yourself you would need to install AutoIt and then adjust the coordinates for your screen

#40615 by Spaceman Wed Dec 23, 2015 3:13 am
After seeing your recent video on how you view hidden arts, I revisited this post. I tried to use your script but I couldn't understand how it worked. I made a script too and I'm posting the code here.

Code: Select all#include <AutoItConstants.au3>
HotKeySet("+{BACKSPACE}","Reveal")
HotKeySet("^{BACKSPACE}","Scroll")
HotKeySet("{PAUSE}","Terminate")
; Rectangle area of artefacts. Substitute your values here.
const $l_coord = 630, $t_coord = 410, $r_coord = 990, $b_coord = 780, $art_color = 0x43B705;
;---------------------------------------------------------------------------------;
;---------------------------------------------------------------------------------;
; Rectangle area for grabbing scroll bar. Substitute your values here.
const $l_sbar = 995, $t_sbar = 425, $r_sbar = 1005, $b_sbar = 775, $sbar_color = 0x1A4966;

;static variables for switching activity of the functions with hotkey presses
global $g_bReveal = false;
global $g_bScroll = false;

while 1
   sleep(100)
WEnd

Func Reveal(); Reveals hidden arts that are present on screen
   $g_bReveal = Not $g_bReveal;
   $g_bScroll = false;
   MouseUp( "primary" )
   while $g_bReveal
     $coord = PixelSearch( $l_coord, $t_coord, $r_coord, $b_coord, $art_color )
     If Not @error Then
        MouseClick( "primary", $coord[0], $coord[1], 1, 0 )
        sleep(900)
     EndIf

  ; Uncomment the below line to make the script pause between clicks, the value is in milliseconds
     Sleep(100)
   WEnd
   MouseUp( "primary" )
EndFunc;==>reveal

Func Scroll(); Grabs the slider bar and drags it down slowly
   $g_bScroll = Not $g_bScroll;
   $g_bReveal = false;
   MouseUp( "primary" )
   $scrollstep = 1;
   $coord = PixelSearch( $l_sbar, $t_sbar, $r_sbar, $b_sbar, $sbar_color, 5 )
   $dragfrom = $coord[1];
   $dragto = $dragfrom + $scrollstep;
   while $g_bScroll
     if $dragto <= $b_sbar Then
        if Not @error Then
           MouseMove( $coord[0], $dragfrom )
           MouseDown( "primary" )
           MouseMove( $coord[0], $dragto )
           $dragfrom += $scrollstep;
           $dragto += $scrollstep;
           sleep(100)
        EndIf
     Else
        sleep(100)
     Endif
   WEnd
   MouseUp( "primary" )
EndFunc;==>scroll

Func Terminate()
   Exit
EndFunc;==>Terminate

#40618 by Draconis Wed Dec 23, 2015 4:32 am
rather than dragging the scrollbar mine just clicks the bottom of the scrollbar to make it jump a page at a time. it searches for the arts and if none are found it clicks the scrollbar to flip a page down and checks again, if it doesnt find any after a few pages of arts then it goes into sleep mode waiting for the hotkey to be pressed again at a later time.

so i had an idea on your script, to make it do everything in one run removing the need for 3 hotkeys.
Code: Select allFunc Reveal(); Reveals hidden arts that are present on screen
   $g_bReveal = Not $g_bReveal;
   $g_bScroll = false;
   MouseUp( "primary" )
   while $g_bReveal
      If $scrolled >= 5 Then; if the script scrolls down 5 pages and finds no arts to reveal it will exit itself
         Exit
      Else
         Sleep(100)
      EndIf
   $sbar = PixelSearch( $l_sbar, $t_sbar, $r_sbar, $b_sbar, $sbar_color, 5 )
   $arts = PixelSearch( $l_coord, $t_coord, $r_coord, $b_coord, $art_color )
     If Not @error Then
        MouseClick( "primary", $arts[0], $arts[1], 1, 0 )
        sleep(900)
    Else
      MouseClick("primary",$sbar[0],$sbar[1]+43,1); if it hasnt found an art it will search for the scrollbar and click 43 pixels below it jumping 1 whole page
      $scrolled += 1
     EndIf
   WEnd
   MouseUp( "primary" )
EndFunc

since the scrollbar is 40px long the adding +43 to the horizontal coords will make it click just below the bar and scroll down 1 page in between checks, but only if it hasnt found something to click the previous time.

#40619 by Spaceman Wed Dec 23, 2015 5:18 am
I get it now thank you Drac. i'll check at the end of the scrollbar for the blue handle every time I move a page down on the arts. When the blue handle is all the way down I'll close the script.

Here's the script.

Code: Select all#include <AutoItConstants.au3>
HotKeySet("+{BACKSPACE}","Reveal")
HotKeySet("{PAUSE}","Terminate")
; Rectangle area of artefacts. Substitute your values here.
const $l_coord = 630, $t_coord = 410, $r_coord = 990, $b_coord = 780, $art_color = 0x43B705;
;---------------------------------------------------------------------------------;
;---------------------------------------------------------------------------------;
; Lowest point that blue handle goes when it reaches end of scrollbar. Substitute your values here.
const $x_sbar = 1002, $y_sbar = 775, $handle_color = 0x1A4966;

;static variable for toggling activity of the function with hotkey presses
global $g_bReveal = false;

while 1
   sleep(100)
WEnd

;----------------------------------------------------------------------------------
; Reveals hidden arts and scrolls down the arts list. It reveals hidden arts on screen, then
; scrolls down to reveal the next set of arts. It does this until it reaches the end of the arts list.
;----------------------------------------------------------------------------------
Func Reveal()
   $g_bReveal = Not $g_bReveal;
   local $EndsbarColor = PixelGetColor( $x_sbar, $y_sbar )
   while $g_bReveal
     $coord = PixelSearch( $l_coord, $t_coord, $r_coord, $b_coord, $art_color )
     If Not @error Then
        MouseClick( "primary", $coord[0], $coord[1], 1, 0 )
        sleep(750)
     Else
        $EndsbarColor = PixelGetColor( $x_sbar, $y_sbar )
        MouseClick( "primary", $x_sbar, $y_sbar, 1, 0)
        if $EndsbarColor == $handle_color Then
           Exit
        EndIf
     EndIf

  ; Uncomment the below line to make the script pause between clicks, the value is in milliseconds
     Sleep(100)
   WEnd

EndFunc;==>reveal

Func Terminate()
   Exit
EndFunc;==>Terminate
Last edited by Spaceman on Wed Dec 23, 2015 7:02 am, edited 2 times in total.

#40620 by Draconis Wed Dec 23, 2015 5:31 am
Joe wrote:I get it now thank you Drac.

np, glad it helped someone.

i like the way your script works, only issue i had with wrapping things in one function is that i couldnt keep it running nonstop. so i put the triggers in a function and those would turn the while loop on and off.

Code: Select allHotkey yadayda
$on = 0

Func toggle()
If $on = 1 Then
   $on = 0
Else
   $on = 1
Endif
EndFunc
While 1
Switch $on
         Case 1
       If $scrolled >= 5 Then
          Exit
       Else
          Sleep(100)
       EndIf
$sbar = PixelSearch( $l_sbar, $t_sbar, $r_sbar, $b_sbar, $sbar_color, 5 )
$arts = PixelSearch( $l_coord, $t_coord, $r_coord, $b_coord, $art_color )
     If Not @error Then
        MouseClick( "primary", $arts[0], $arts[1], 1, 0 )
        sleep(900)
    Else
      MouseClick("primary",$sbar[0],$sbar[1]+43,1)
      $scrolled += 1
     EndIf
          Case 0
                Sleep(1000)
EndSwitch
WEnd

#40621 by Spaceman Wed Dec 23, 2015 7:57 am
xiaolindraconis wrote:np, glad it helped someone.

i like the way your script works, only issue i had with wrapping things in one function is that i couldnt keep it running nonstop. so i put the triggers in a function and those would turn the while loop on and off.



I understood the triggers part. I wasn't aware that clicking the scrollbar would make it scroll down a page. I read through the AutoIt help file and followed their examples on how to handle hotkeys to make the script.

#76832 by Relentless Sat Jan 12, 2019 9:02 pm
any way to recy dozens of arts upgrade to 10 ive got too many and i hate to recy fully upgraded arts

Draconis wrote:
Joe wrote:I get it now thank you Drac.

np, glad it helped someone.

i like the way your script works, only issue i had with wrapping things in one function is that i couldnt keep it running nonstop. so i put the triggers in a function and those would turn the while loop on and off.

Code: Select allHotkey yadayda
$on = 0

Func toggle()
If $on = 1 Then
   $on = 0
Else
   $on = 1
Endif
EndFunc
While 1
Switch $on
         Case 1
       If $scrolled >= 5 Then
          Exit
       Else
          Sleep(100)
       EndIf
$sbar = PixelSearch( $l_sbar, $t_sbar, $r_sbar, $b_sbar, $sbar_color, 5 )
$arts = PixelSearch( $l_coord, $t_coord, $r_coord, $b_coord, $art_color )
     If Not @error Then
        MouseClick( "primary", $arts[0], $arts[1], 1, 0 )
        sleep(900)
    Else
      MouseClick("primary",$sbar[0],$sbar[1]+43,1)
      $scrolled += 1
     EndIf
          Case 0
                Sleep(1000)
EndSwitch
WEnd

Who is online

Users browsing this forum: No registered users and 3 guests

About

Welcome to the AstroFlux forum! This forum is here to provide you with a friendly environment where you can ask questions and receive helpful information from experienced players. Please Join the discussions in the Astroflux forums. The game developers are active here and are happy to hear what you think!

AstroFlux is a MMO space shooter with numerous weapons, upgrades and abilities. Explore the galaxy and collect space junk to gain resources for new technologies.