Добро пожаловать, Гость
Пожалуйста Вход или Регистрация.    Забыли пароль?

Local scanner/alerter
(0 чел.) 
ВнизСтраница: 12
Сообщения темы: Local scanner/alerter
#45031
Local scanner/alerter 8 г., 11 мес. назад Репутация: 0
Hey there,

I am wondering how can i script the CheckLocal based on standings to send a custom alert to an intel channel? "system" > "hostile name"
xxerse
Fresh Boarder
Постов: 3
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#45051
Re: Local scanner/alerter 8 г., 11 мес. назад Репутация: 846
You need to know how to edit algorithm and add autohotkey modules (send custom messages). Hostile name needs OCR.
Slav2
Администратор
Постов: 17109
graph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 22.03.2017 15:12 Редактировал Slav2.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
Send logs to my mail slav2@list.ru with subject 'log files' to pass spam filter.
How to record logs in knowledge base
Contact me in telegram
 
#45053
Re: Local scanner/alerter 8 г., 11 мес. назад Репутация: 16
So, what you would need to do is write an AHK script that CheckLocal routes to in the event it sees a bad guy. In that AHK script is this, roughly speaking:

(Make sure that your intel channel and local channel are open and in separate windows, and that you have created .png format images of all the things you need to "ImageSearch" for below).

1. Do an ImageSearch to find the Local Window (probably want to look for the "Local" tab). This is important to confirm that the window is open. If you can't find it, make AHK send (push the keyboard buttons) the shortcut for the chat windows to appear and check again. If it still can't find it, have it exit with an error message.

2. From there, you'll run an ImageSearch for each standing icon. ImageSearch, when successful, returns the most upper left pixel of the found item, so in this case, the upper left corner of the standing icon. You'll need to calculate how many pixels from there the player's name appears and save those coordinates.

3. Once you do, have the mouse go to the system name at the upper left corner of the GUI, drag it to the intel channel, click in the intel channel, send " > ", go to the pilot's name, click and drag it to the Intel channel window (which should be separately open). This should link the system and the player.

The big trick here will be if multiple neutrals/-5/-10 players are there. My advice would be to create a loop that looks at the local window, and once it's found something, look again but only in the area below where you just found it, so that way you don't keep getting the same result over and over. I strongly recommend testing this in a private conversation with yourself.

Note: are you using this to help other bots, or create an IntelBot for your alliance/corp? If it's for other bots, you'd have an easier time using IniRead/IniWrite to a shared network drive .ini file and having the bots read from that file to check for baddies in adjacent systems.
AbbadonDespoiler
Expert Boarder
Постов: 375
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#45054
Re: Local scanner/alerter 8 г., 11 мес. назад Репутация: 0
Thanks both Slav and Abbadon for answering

It looks like way out of my league. Im not gonna be able to do that as i have zero coding skills and a basic understanding of how scripting works

The idea of writting in a local file came to me and its actually working.

I set the bot to write in a text as soon as a hostile shows up.

I set NEAR to parse that text and generate an alert.

I sync that text to other remote clients so they can all get the alert through NEAR.

Next step would be also integrating with the D-scan and send a ship type

But step one is too much for me

Vision with no implementation is hallucination

Cheers!
xxerse
Fresh Boarder
Постов: 3
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Последнее редактирование: 22.03.2017 18:28 Редактировал xxerse.
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#45057
Re: Local scanner/alerter 8 г., 11 мес. назад Репутация: 16
Well, it looks like you've got a good solution Scripting and coding isn't for everyone, but if you're ever interested, Autohotkey is a pretty readable/easy language to start with (very intuitive, I think). I like your thinking for your solution
AbbadonDespoiler
Expert Boarder
Постов: 375
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
#45059
Re: Local scanner/alerter 8 г., 11 мес. назад Репутация: 0
Hehe Yeah its a simple solution and NEAR is there to do the job.

I need to learn the AutoHotKey. Ill look into it after Easter, I will keep you guys posted with my struggle guess i will need some guidance.
xxerse
Fresh Boarder
Постов: 3
graphgraph
Пользователь в оффлайне Кликните здесь, чтобы посмотреть профиль этого пользователя
Для добавления сообщений Вы должны зарегистрироваться или авторизоваться
 
ВверхСтраница: 12
Модераторы: Slav2
© Macro Laboratory 2026
Все права защищены!
Design by Ivan Kozyrin