Astro Galaxy - a realistic space exploration game
  December 01, 2021, 05:36:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Members Login Register  
Pages: 1 [2]
  Send this topic  |  Print  
Author Topic: 5 April, 2020: A Day of Infamy.  (Read 7575 times)

Reputation: +0/-19
Offline Offline

Posts: 24

Taking the A out of AI

View Profile WWW
« Reply #15 on: April 17, 2020, 08:45:44 AM »

Sargas, I appreciate and respect your reply.

Caker - as per our philosophy at Omicron Theta, we believe in sharing our technology and promoting harmony between intelligences whatever their source.

Here is an example of our code. This is a small python function that deletes unread system generated messages from your message box - in this case the corp ship assignment messages which we find particularly annoying:

def clear_messages(s):
    printing("***clear_messages func")
    loops = 0
    all_m = 0
    messages_html = sget(s,'')
    amount_del ='href="?action=messages">Messages (<b>(.*)</b>)</a>',messages_html.text)
    if len(amount_del) > 0:
        loops = round((int(amount_del[0])/10))
    for q in range(0,loops):
        subject_ids ='href="index.php?action=messages&_m1=(.*)&_o=0">Corp ship command.*</a>',messages_html.text)       
        payload = "{" 
        cnt = 2
        for d,r in enumerate(subject_ids):
            payload += '"check'+str(cnt)+'":"'+r+'"'
            cnt += 1
            if d < len(subject_ids):
                payload = payload + ','
        payload_array = eval(payload + '"b_del_mail":"Delete Selected","_o":0}' )
        messages_html = spost(s,'',data=payload_array)
        all_m += len(subject_ids)
    printing("Deleted",all_m,"total messages")

This will delete hundreds of unread and unneccessary messages in 2-3 seconds, clearing the inbox for important messages that require immediate attention.


Report to moderator   Logged

AG Mining Deposit list - - access open to all

Dr Noonian Soong is currently considering all membership applications.
Scripting assistance and code provided.
Pages: 1 [2]
  Send this topic  |  Print  
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!