NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

global SellChosen =
global ItemAmtSell =
global ItemTotalSalesPrice =
global AmtOfAucToPost =
global ItemFoundYes =
global X3 =
global Y3 =
global X11 =
global Y11 =
global count = 0

global test1 := []
global test2 := []
global test3 := []

global ItemAddedCount = 0
global ItemPutOnSale = 0
global CurrentItemOn = 0
global CurrentItemOn2 = 0

global CustomItemDate =
global CustomItemTotalSalesPrice =
global CustomItemAmtSell =
global CustomSellChosen =

global CustomSellChosenBtn =
global CustomItemAmtSellBtn =
global CustomItemDateBtn =
global CustomItemTotalSalesPriceBtn =

global SelectedDeleteItem =
global deletedItemNumber =

global RowNumber =

global CustomLV =

Gui, Add, Tab2, W700 H500, General|Settings|Daily Tasks

Gui, Tab, Daily Tasks
Gui, Color, White
Gui, +AlwaysOnTop
Gui, font, s7
Gui, Add, Text,, Sell Item Creator
Gui, Add, Text,, Choose Item To Sell
Gui, Add, DropDownList, x155 y58 vCustomSellChosen, radiantshards|pearlwisdom|infiniumore|primordialflame|bleachedbone|goldensoul|faeriedust|roboticsalvage|meteoritefragment|blankscroll|formiciteore|glacialshard|crystallizedcloud|cinnabar|sombersoul|steedfeed|bottle|enchantedwood|chestnut|sunlightbulb|pumpkin|twice-forged|thrice-forged|quad-forged|penta-forged|forgedradiantsoul|eyeofqbthulhu|tentacleofqbthulhu|shapestone
Gui, Add, Text, x20 y80, Select Item Amount
Gui, Add, Edit, x155 y80 vCustomItemAmtSell gCustomItemAmtSellLbl,
Gui, Add, Text, x20 y100, Select Total Price For Items
Gui, Add, Edit, x155 y100 vCustomItemTotalSalesPrice gCustomItemTotalSalesPriceLbl,
Gui, Add, Text, x20 y120, Select Day To Post
Gui, Add, DropDownList, x155 y120 vCustomItemDate gCustomItemDateLbl, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
Gui, Add, Button, x155 y160 gCustomAddAction, Add Action To Perm Que
Gui, Add, ListView, x300 y160 w350 vCustomLV, Item Name|Amount To Post|Price Per Post|Day To Post
Gui, Add, Button, x155 y185 gCustomAddToLV, Update Tasks List
Gui, Add, Button, x155 y210 gCustomDailyTasksBtn, Do Daily Tasks
Gui, Add, Text, x20 y235, Only 1 Action At A Time
Gui, Add, Button, x155 y235 gCustomDailyTasksDeleteBtn, Delete Selected Task

Gui, Tab, Settings
Gui, Color, White
Gui, +AlwaysOnTop
Gui, font, s15,
Gui, Add, Text,, Nothing Yet... :)
Gui, font, s7


Gui, Tab, General
Gui, Color, White
Gui, +AlwaysOnTop
Gui, font, s7
Gui, Add, Text,, Select Item To Snipe For
Gui, Add, Text, x20 y100, Select Max Price Per Item
Gui, Add, ListBox, x155 y30 H80 W150 vItemChosen, Radiant Shard|Shapestone Ore|Infinium Ore|Primordial Flame|Bleached Bone|Faerie Dust|Formicite Ore|Steed Feed|Robotic Salvage|Meteorite Fragment|Blank Scroll|Primordial Flame|Crystallized Cloud|Somber Soul|Bottle|Enchanted Wood|Glacial Shard|Golden Soul|Chestnut|Sunlight Bulb|Pumpkin|Twice-Forged|Thrice-Forged|Quad-Forged|Penta-Forged|Forged Radiant Soul|Eye of Q'bthulhu|Tentacle of Q'bthulu
Gui, Add, Edit, x155 y100 vPriceUnder gPriceEA,
Gui, Add, Button, x270 y100 vStartBtn gStartBtnLbl, Start

Gui, font, s15,
Gui, Add, Text, x20 y120, Sell Item
Gui, font, s7
Gui, Add, Text, x20 y160, Select Item
Gui, Add, DropDownList, x155 y155 vSellChosen, radiantshards|pearlwisdom|infiniumore|primordialflame|bleachedbone|goldensoul|faeriedust|roboticsalvage|meteoritefragment|blankscroll|formiciteore|glacialshard|crystallizedcloud|cinnabar|sombersoul|steedfeed|bottle|enchantedwood|chestnut|sunlightbulb|pumpkin|twice-forged|thrice-forged|quad-forged|penta-forged|forgedradiantsoul|eyeofqbthulhu|tentacleofqbthulhu|shapestone
Gui, Add, Text, x20 y180, Select Item Amount
Gui, Add, Edit, x155 y180 vItemAmtSell gItemAmtSellLbl,
Gui, Add, Text, x20 y200, Select Total Price For Items
Gui, Add, Edit, x155 y200 vItemTotalSalesPrice gItemTotalSalesPriceLbl,
Gui, Add, Button, x155 y245 vAddToQue gAddToQueLbl, Add Item To Que
Gui, Add, Button, x155 y270 vClearQue gClearQueLbl, Clear Item List
Gui, Add, Button, x155 y295 vSellBtn gSellBtnLbl, Sell Items
Gui, Add, Button, x155 y320 vCancelAllBtn gCancelAllBtnLbl, Cancel All Auctions
Gui, Add, Button, x155 y345 vClaimAllBtn gClaimAllBtnLbl, Claim All Auctions
Gui, Add, ListView, vNormalLV x300 y160 w350, Item Name|Amount To Post|Price Per Post
Gui, Add, Button, x155 y370 vConfigBtn gConfigBtnLbl, Configure Trove Window


Gui, Show, x0 y0 W700 H500,

WinSet, AlwaysOnTop, toggle, Trove.ahk

AddToListViewCustom()

return

ESC::ExitApp

return

^p::Pause

^5::

AddToListViewCustom()

return

----------------------------------Labels------------------------------------------------------------
CustomDailyTasksDeleteBtn:

Gui, ListView, CustomLV

Gui, Submit, NoHide

RowNumber := LV_GetNext(RowNumber)

RemoveDailyTask()

return

CustomDailyTasksBtn:

DailyTasksFunc()

return

CustomAddToLV:

AddToListViewCustom()

return

CustomItemDateLbl:


return

CustomAddAction:


Gui, Submit, NoHide
CustomSellItemsStore()

return

CustomItemTotalSalesPriceLbl:

return

CustomItemAmtSellLbl:

return

ClaimAllBtnLbl:

ClaimAll()

return

CancelAllBtnLbl:

CancelAuctions()

return

ClearQueLbl:

ClearItemList()

return


AddToQueLbl:

Gui, Submit, NoHide

AddToList()

return

ConfigBtnLbl:

ConfigTroveWindow()

return


StartBtnLbl:
Gui, Submit, NoHide

BuyAndSearchLoop(ItemChosen)

loop
{


Click, 577, 799

sleep, 1000

TempFile := A_Temp . "temp_capture.txt"
FileDelete, %TempFile%
RunWait, C:UsersEjerDesktopTroveMarketPlaceBotCapture2Text_v4.4.0_64bit/Capture2Text_CLI.exe -d -s "727 373 804 385" -o %TempFile%,,Hide
FileRead, CaptureText, %TempFile%
FileDelete, %TempFile%


SaveNumber := CaptureText



StringTrimLeft, var1, SaveNumber, 12

StringTrimRight, var2, var1, 5



StringReplace, var3, var2, ., `,







if (var3 = )
{
break
}

if (var3 < PriceUnder)
{
Click, 773, 369
sleep, 500
Click, 876, 344
sleep, 500
FileAppend, %var3%`, , log.txt

ImageSearch, X10, Y10, 863, 311, A_ScreenWidth, A_ScreenHeight, okbtn.png

if ErrorLevel = 0
{
Click 967, 345
sleep, 500
}

ImageSearch, X10, Y10, 863, 311, A_ScreenWidth, A_ScreenHeight, okbtn2.png

if ErrorLevel = 0
{
Click 967, 345
sleep, 500
}

clipboard = 99999999
clipboard = 99999999
}
}

return

PriceEA:

return

ItemAmtSellLbl:

return

ItemTotalSalesPriceLbl:

return

-----------------------------sell btn---------------------------

SellBtnLbl:

Gui, Submit, NoHide

sleep, 500

WinActivate, ahk_exe Trove.exe

sleep, 2500



CheckIfMarketOpen()
sleep, 250
CheckIfBagsOpen()

; MsgBox % test1.Length()

loop {


ItemPutOnSale := ItemPutOnSale + 1
PostToMakeVar := test4[ItemPutOnSale]
; MsgBox % test4[ItemPutOnSale]

CheckForDc()

FindItem()
MoveItemToMarket()


} Until ItemPutOnSale >= test1.Length()

sleep, 500


return




--------------------------------sell btn end--------------------------------


-----------------------------------functions--------------------------------------------------------

BuyAndSearchLoop(ItemName) {
Click, 588, 700
sleep, 450
Click, 670, 700
sleep, 450
Send, %ItemName%
}

return

CheckIfBagsOpen() {

ImageSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, invcheck2.png

if ErrorLevel = 1
{
Send b
sleep, 250
}

if ErrorLevel = 2
{
MsgBox, Search For Bags Failed
return
}

ImageSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, invcheck.png

if ErrorLevel = 1
{
Click, 1529, 404
sleep, 250
}

if ErrorLevel = 2
{
MsgBox, Search For Bags Failed
return
}

}

return

CheckIfMarketOpen() {

ImageSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, marketopen.png

if ErrorLevel = 1
{
Send u
sleep, 250
Click, 603, 276
}

if ErrorLevel = 2
{
MsgBox, Search For Bags Failed
return
}

return

}

return

FindItem() {

global CurrentItemOn2 := CurrentItemOn2 + 1
global CurrentItemOn := CurrentItemOn + 1
global SellChosenVar := test1[CurrentItemOn2]


loop {

ImageSearch, X3, Y3, 0, 0, A_ScreenWidth, A_ScreenHeight, %SellChosenVar%.png

if ErrorLevel = 0
{
SetDefaultMouseSpeed, 20
sleep, 250
MouseClick, Left, 1715, 411
ItemFoundYes = 1
}

if ErrorLevel = 1
{

; MsgBox, Item Not Found
Click, 1715, 411

loop, 5 {
Send {WheelDown}
sleep, 500
}
}

} Until ErrorLevel = 0
ImageSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, %SellChosenVar%.png

if ErrorLevel = 1
{
MsgBox, Item Could Not Be Found
}
}

return

MoveItemToMarket() {

global AmountToPostVar := test2[CurrentItemOn]
global PricePerPostVar := test3[CurrentItemOn]
global SearchCount := 0

MouseMove, X3, Y3
Sleep, 250
Click down
Sleep, 250
MouseMove, 773, 335
sleep, 250
Click up

sleep, 500

ImageSearch, X4, Y4, 0, 0, A_ScreenWidth, A_ScreenHeight, confirm.png

if ErrorLevel = 0
{
SetDefaultMouseSpeed, 2
sleep, 500
; MsgBox, %AmountToPostVar%
Send, %AmountToPostVar%
Click, 868, 597
sleep, 450
Click, 496, 683
sleep, 450
Send, %PricePerPostVar%
Click, 574, 795
sleep, 250
Click, 877, 342
sleep, 250
Click, 877, 341
sleep, 2000
CurrentItemOn := 0
return
}

if ErrorLevel = 1
{
MoveItemToMarket()
}
}

return

ConfigTroveWindow() {

WinActivate, ahk_exe Trove.exe
sleep, 250
WinMove, ahk_exe Trove.exe, , -8, -8, 1936, 1056

}

return

AddToList() {

test1.Insert(SellChosen)
test2.Insert(ItemAmtSell)
test3.Insert(ItemTotalSalesPrice)

Gui, ListView, NormalLV

ItemAddedCount := ItemAddedCount + 1

LV_Add("", test1[ItemAddedCount], test2[ItemAddedCount], test3[ItemAddedCount])

}

return

ClearItemList() {

global test1 := []
global test2 := []
global test3 := []
ItemAddedCount := 0
CurrentItemOn := 0

LV_Delete()
}

return

CancelAuctions() {

WinActivate, ahk_exe Trove.exe

Click 772, 389
sleep, 600
Click 924, 389
sleep, 600
Click 1079, 390
sleep, 600
Click 1231, 388
sleep, 600
CheckForDc()
Click 1382, 389
sleep, 600
Click 775, 586
sleep, 600
Click 927, 585
sleep, 600
Click 1077, 584
sleep, 600
CheckForDc()
Click 1231, 585
sleep, 600
Click 1383, 586
sleep, 600
Click 773, 783
sleep, 600
Click 924, 781
sleep, 600
CheckForDc()
Click 1078, 782
sleep, 600
Click 1231, 782
sleep, 600
Click 1381, 783
sleep, 600
Click 1389, 844 ; Click Next Page
Sleep, 1000
CheckForDc()
Click 772, 389
sleep, 600
Click 924, 389
sleep, 600
Click 1079, 390
sleep, 600
Click 1231, 388
sleep, 600
CheckForDc()
Click 1382, 389
sleep, 600
Click 775, 586
sleep, 600
Click 927, 585
sleep, 600
Click 1077, 584
sleep, 600
CheckForDc()
Click 1231, 585
sleep, 600
Click 1383, 586
sleep, 600
Click 773, 783
sleep, 600
Click 924, 781
sleep, 600
CheckForDc()
Click 1078, 782
sleep, 600
Click 1231, 782
sleep, 600
Click 1381, 783
sleep, 600
CheckForDc()

}

return

CheckForDc() {

ImageSearch, X6, Y6, 0, 0, A_ScreenWidth, A_ScreenHeight, dcokbtn.png

if ErrorLevel = 0
{
WinActivate, ahk_exe Trove.exe
Click, %X6%, %Y6%
sleep, 20000
}

if ErrorLevel = 2
{
MsgBox, Search Failed
}

}

ClaimAll() {

WinActivate, ahk_exe Trove.exe

Click 1052, 843

}

return

CustomSellItemsStore() {

IniRead, deletedItemNumber, config.ini, functionality, deletedItemNumber

if deletedItemNumber = 0
{

IniRead, indexCountRead, config.ini, functionality, indexcount
IniWrite, %CustomSellChosen%, config.ini, %IndexCountRead%, CustomSellChosen
IniWrite, %CustomItemAmtSell%, config.ini, %IndexCountRead%, CustomItemAmtSell
IniWrite, %CustomItemTotalSalesPrice%, config.ini, %IndexCountRead%, CustomItemTotalSalesPrice
IniWrite, %CustomItemDate%, config.ini, %IndexCountRead%, CustomItemDate

indexCountRead := indexCountRead + 1
IniWrite, %indexCountRead%, config.ini, functionality, indexcount
}

if deletedItemNumber = 1
{
deletedItemNumber = 0
IniRead, RowNumber2, config.ini, functionality, deletedItemRow
MsgBox, %RowNumber2%
IniWrite, %CustomSellChosen%, config.ini, %RowNumber2%, CustomSellChosen
IniWrite, %CustomItemAmtSell%, config.ini, %RowNumber2%, CustomItemAmtSell
IniWrite, %CustomItemTotalSalesPrice%, config.ini, %RowNumber2%, CustomItemTotalSalesPrice
IniWrite, %CustomItemDate%, config.ini, %RowNumber2%, CustomItemDate

}


}
return

AddToListViewCustom() {

Gui, ListView, CustomLV
LV_Delete()

IniRead, indexCountRead, config.ini, functionality, indexcount

loop %indexCountRead% {

if A_Index = %indexCountRead%
{
break
}

IniRead, CustomSellChosenLV, config.ini, %A_Index%, CustomSellChosen
IniRead, CustomItemAmtSellLV, config.ini, %A_Index%, CustomItemAmtSell
IniRead, CustomItemDateLV, config.ini, %A_Index%, CustomItemDate
IniRead, CustomItemTotalSalesPriceLV, config.ini, %A_Index%, CustomItemTotalSalesPrice

Gui, ListView, CustomLV
LV_Add("", CustomSellChosenLV, CustomItemAmtSellLV, CustomItemTotalSalesPriceLV, CustomItemDateLV)





}

}

return

DailyTasksFunc() {

; MsgBox, Func Start Succes

IniRead, indexCountRead, config.ini, functionality, indexcount

loop %indexCountRead% {

if A_Index = %indexCountRead%
{
break
}

IniRead, CustomSellChosenBtn, config.ini, %A_Index%, CustomSellChosen
IniRead, CustomItemAmtSellBtn, config.ini, %A_Index%, CustomItemAmtSell
IniRead, CustomItemDateBtn, config.ini, %A_Index%, CustomItemDate
IniRead, CustomItemTotalSalesPriceBtn, config.ini, %A_Index%, CustomItemTotalSalesPrice


; MsgBox, %CustomSellChosenBtn%
; MsgBox, Read File Succes

day = A_Now
FormatTime, TodayDayNumber, day, WDay

if CustomItemDateBtn = Monday
{
TodayDayNumber1 = 2
}

if CustomItemDateBtn = Tuesday
{
TodayDayNumber1 = 3
}

if CustomItemDateBtn = Wednesday
{
TodayDayNumber1 = 4
}

if CustomItemDateBtn = Thursday
{
TodayDayNumber1 = 5
}

if CustomItemDateBtn = Friday
{
TodayDayNumber1 = 6
}

if CustomItemDateBtn = Saturday
{
TodayDayNumber1 = 7
}

if CustomItemDateBtn = Sunday
{
TodayDayNumber1 = 1
}

if TodayDayNumber = %TodayDayNumber1%
{

DailyTasksFindItem()
sleep, 500
DailyTasksMoveItem()

}

}



}

return

DailyTasksFindItem() {

global CurrentItemOn3 := CurrentItemOn3 + 1
global CurrentItemOn4 := CurrentItemOn4 + 1

WinActivate, ahk_exe Trove.exe

sleep, 2500

CheckIfMarketOpen()
sleep, 250
CheckIfBagsOpen()

; MsgBox, %CustomSellChosenBtn%

loop {

; MsgBox, Loop Succes
; MsgBox, %CustomSellChosenBtn%

ImageSearch, X11, Y11, 0, 0, A_ScreenWidth, A_ScreenHeight, %CustomSellChosenBtn%.png

if ErrorLevel = 0
{
SetDefaultMouseSpeed, 20
sleep, 250
MouseClick, Left, 1715, 411
ItemFoundYes = 1
}

if ErrorLevel = 1
{

; MsgBox, Item Not Found
Click, 1715, 411

loop, 5 {
Send {WheelDown}
sleep, 500
}
}

if ErrorLevel = 2
{
MsgBox, Search1 Failed
}

} Until ErrorLevel = 0
ImageSearch, X11, Y11, 0, 0, A_ScreenWidth, A_ScreenHeight, %CustomSellChosenBtn%.png

if ErrorLevel = 1
{
MsgBox, Item Could Not Be Found
}
}

return

DailyTasksMoveItem() {

global AmountToPostVar3 := CustomItemAmtSellBtn
global PricePerPostVar4 := CustomItemTotalSalesPriceBtn
global SearchCount4 := 0

MouseMove, %X11%, %Y11%
Sleep, 250
Click down
Sleep, 250
MouseMove, 773, 335
sleep, 250
Click up

sleep, 500

ImageSearch, X12, Y12, 0, 0, A_ScreenWidth, A_ScreenHeight, confirm.png

if ErrorLevel = 0
{
SetDefaultMouseSpeed, 2
sleep, 500
; MsgBox, %AmountToPostVar%
Send, %AmountToPostVar3%
Click, 868, 597
sleep, 450
Click, 496, 683
sleep, 450
Send, %PricePerPostVar4%
Click, 574, 795
sleep, 250
Click, 877, 342
sleep, 250
Click, 877, 341
sleep, 2000
CurrentItemOn := 0
return
}

if ErrorLevel = 1
{
DailyTasksMoveItem()
}
}

return

RemoveDailyTask() {

deletedItemNumber = 1

IniWrite, %deletedItemNumber%, config.ini, functionality, deletedItemNumber

IniRead, indexCountRead2, config.ini, functionality, indexcount

DeleteIndexCount := indexCountRead2 - 1
MsgBox, %DeleteIndexCount%

IniDelete, config.ini, %RowNumber%
IniWrite, %RowNumber%, config.ini, functionality, deletedItemRow

}

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.