Добро пожаловать, Гость
Пожалуйста Вход или Регистрация.    Забыли пароль?
ВнизСтраница: 12345678...13
Сообщения темы: Corp Bookmarking Miners
*
#43325
Corp Bookmarking Miners 8 г., 1 мес. назад Репутация: 33
Merry X-Mas people! "And now, YOU TOO can have a looter that doesn't warp to empty belts needlessly!"
Прикрепленный файл
Имя файла: CorpBookmark.zip
Размер файла: 8943


This will make a bookmark every 25 minutes and before it leaves a belt so that the miner doesn't miss any cans.

Requirements:
You need to install AutoHotkey (choose Unicode 32 bit).
Unzip file to "%localappdata%\MacroLab\Eve Pilot\Scripts"
Inside both AHK scripts, add the character name in the quotes to the right of the "CharacterNm" field.
Setup the Save Location hotkey to be "Cntrl+Shift+B" (in Navigation tab).
Set looter to use Corp Bookmarks
If you use more than one miner on the same OS/System, then you should:
1. Create a uniquely named copy of both AHK files for each character.
2. Within each of the AHK files created in step 1, change the name of "TimeOfLastBM" to be unique for each miner. (Once in Belt and twice in Can.)
3. Create a uniquely named copy of the MinerCorpBMV1.txt algorithm for each character, and within it change the AHK filenames to match those made in step 1.
4. In the Eve Pilot GUI, make sure the custom algorithm is used by only one miner
(I suppose I could have avoided you having to do those steps by getting a pixel color from your character's portrait, but then you'd have bookmarks named 11:25-0xFE69 and such...)

Let me know how it works, please.

Please feel free to reuse or adapt the code as you want. The screenshots that the bot uses to find GUI objects are simply PrintScreens pasted into Paint, then I select/cut/save the small picture as a PNG. If you feel like getting fancy, Paint also makes it easy to count pixel spacing. Just use the select tool to click/drag from the start to end point and the gray bar at the bottom left tells you how many X and Y pixels you've selected.

(Note: I haven't thoroughly tested this because this is an extremely dumbed down version of what I use, as I don't want to share my code-base. This is just something I threw together over 2 hours. I offer no warranty or promise that I'll keep it updated. In fact I tried to add notes within the code so that anyone can understand what's going on and can easily understand how to start their own AHK projects.)
innominate
Gold Boarder
Постов: 632
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 15.12.2016 19:33 Редактировал innominate.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#43360
Re: Corp Bookmarking Miners 8 г., 1 мес. назад Репутация: 16
!!!!

Thank you for releasing this! I will be testing it as soon as possible.

Pre-test questions:
1. When you say to setup the Save Location hotkey, does that mean we need to re-do the First Run to make sure that's saved permanently? Is there a way to alter the hotkeys after First Run?
2. Just to be clear, when you say "on the same OS/System" you're only talking about multiclient, right? Bots in isolated VMs are fine as-is?

I am really very excited to go through the code and get an understanding on how to make scripts like this. I am really grateful that you documented it so well! A great X-mas gift indeed
AbbadonDespoiler
Expert Boarder
Постов: 375
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#43362
Re: Corp Bookmarking Miners 8 г., 1 мес. назад Репутация: 33
1. You can change your Eve client settings without doing another first run. Click on the link in my signature and read number 1 under "Eve Pilot Settings".
2. Yes
innominate
Gold Boarder
Постов: 632
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 15.12.2016 19:23 Редактировал innominate.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#43365
Re: Corp Bookmarking Miners 8 г., 1 мес. назад Репутация: 16
Right! Yes! I've even done that before, just forgot >_<

AHK seems pretty human-readable (nearly Pythonic ), your code is pretty straightforward and makes sense to me. It seems like the only main impediment in replicating this personally with other functions would be learning the function parameters, but that doesn't seem to be difficult either. Kudos to you for readable variable names and comments! When it comes to carving out the images for ImageSearch, do they have to be accurate to within the pixel, or do you just want as little extra space as possible to assist detection? Now I just need to model what I want to do with it.... mining drones of my own, perhaps??

PS. If you happen to look at this thread before the other "Recent Discussions," I had a question for you regarding Miner income. Thanks again!
AbbadonDespoiler
Expert Boarder
Постов: 375
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#43367
Re: Corp Bookmarking Miners 8 г., 1 мес. назад Репутация: 33
When dealing with pictures, smaller is much faster in all cases. Smaller search area, if your certain, and smaller image to find both make for faster processing.

Why don't you try to make something useful and share it with people like I did? Help the community?
innominate
Gold Boarder
Постов: 632
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 18.05.2017 23:55 Редактировал innominate.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#43395
Re: Corp Bookmarking Miners 8 г., 1 мес. назад Репутация: 16
You got yourself a deal! Now I just have to think of something that people would find useful (that is not a prohibitively difficult issue like Mining Crystals and MTUs).... I wonder if I could make a Looter-Deliverer of sorts that could take ore to a POS, compress it, then deliver it to a station or Citadel... If anyone else reads this and has ideas for me, by all means let me know
AbbadonDespoiler
Expert Boarder
Постов: 375
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
ВверхСтраница: 12345678...13
Модераторы: Slav2
© Macro Laboratory 2025
Все права защищены!
Design by Ivan Kozyrin