OGame Automizer Development Forum

Please login or register.

Login with username, password and session length
Advanced search  


Welcome on the OGame Automizer Development/Support Forum

If this is your first visit, be sure to check out the
http://ogameautomizer.com/doc/manual.html : A guide written by OA users with consultation of OA author (En)

http://ogameautomizer.com/doc/manual_de.html : A guide written by OA users with consultation of OA author (Benutzerschnittstellenhandbuch) (GE)

http://ogameautomizer.com/doc/scripting_manual.html : OA Scripting Manual (En)

Author Topic: Console Process Launcher 1.0 (example: Cryptocurrency miner)  (Read 3841 times)

0 Members and 1 Guest are viewing this topic.

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2,523
    • View Profile
Console Process Launcher 1.0 (example: Cryptocurrency miner)
« on: March 21, 2014, 12:46:37 AM »

Below a little but cool script which launches external console process and prints the output of process in OA scripting console.
What it is for ?
As OA is running on your computer for hours, it is maybe not a bad idea to launch other processes at the same time, considering that OA has a scheduler, allowing you to automate what to do and when to start or to stop (see below an example).

Create new OA Script
Rename it to something like 'Crypto Miner Launcher' (it's just an example you can use the script for other console processes too),
Optionally Enable the option 'Execute after OA initialization',
In OA code editor (delete template code: select all text (CTRL+A) than Backspace), copy (CTRL+C) & paste (CTRL+V) the following code:
Code: [Select]
// ----- Config -----
def command = """
  -a quark
  -t 4
  --url stratum+tcp://qrk.coinmine.pl:6010
  -u ogameautomizer.xxx
  -p xxx
// ----- Config end -----

// following code launches an external process and reads its output and prints below
def process = null
def out = null
def err = null
try {
  command = command.replaceAll('[\r\n]+',' ')
  printOut "Following command will be executed: $command"
  process = command.execute(null, new File('.'))
  // read both output streams from process
  out = process.getInputStream()
  Thread.start {
    BufferedReader br = new BufferedReader(new InputStreamReader(out))
    String line = null
    while( (line = br.readLine()) != null) printOut(line)
  err = process.getErrorStream()
  Thread.start {
    BufferedReader br = new BufferedReader(new InputStreamReader(err))
    String line = null
    while( (line = br.readLine()) != null) printOut(line)
  // wait till the end of process, normally forever
  // print output in case process ended abnormally
  if(process.exitValue()) printOut process.err.text
  else printOut process.text
  printOut "Script ended. Error in config ?"
} catch (Throwable t){
  // kill running process
  if(process) process.waitForOrKill(100)
  // close process output stream
  if(out) out.close()
  if(err) err.close()
  // propagate the exception
  throw t
Of cause edit the launching command above in Config section: you can put the command on several lines, provide a full path to the executable or a relative path to OA root folder. [You need always to escape backslashes (instead of '\' use '\\')]

Code: [Select]
00:24:54 : Following command will be executed:  E:\miners\quarkcoin\Minerd.exe   -a quark   -t 4   --url stratum+tcp://qrk.coinmine.pl:6010   -u ogameautomizer.xxx   -p xxx
00:24:54 : [2014-03-21 00:24:54] Starting Stratum on stratum+tcp://qrk.coinmine.pl:6010
00:24:54 : [2014-03-21 00:24:54] 4 miner threads started, using 'quark' algorithm.
00:25:33 : [2014-03-21 00:25:33] thread 0: 2005582 hashes, 131.37 khash/s
00:25:33 : [2014-03-21 00:25:33] thread 1: 2025749 hashes, 132.69 khash/s
00:25:33 : [2014-03-21 00:25:33] thread 3: 2011308 hashes, 131.74 khash/s
00:25:33 : [2014-03-21 00:25:33] thread 2: 2003479 hashes, 131.23 khash/s
00:25:39 : [2014-03-21 00:25:39] Stratum detected new block
00:25:39 : [2014-03-21 00:25:39] thread 1: 813243 hashes, 130.91 khash/s
00:25:39 : [2014-03-21 00:25:39] thread 3: 804944 hashes, 129.57 khash/s
00:25:39 : [2014-03-21 00:25:39] thread 2: 811789 hashes, 130.67 khash/s
00:25:39 : [2014-03-21 00:25:39] thread 0: 801934 hashes, 129.09 khash/s
00:25:56 : [2014-03-21 00:25:56] thread 2: 2237775 hashes, 131.47 khash/s
00:25:56 : [2014-03-21 00:25:56] accepted: 1/1 (100.00%), 521.04 khash/s (yay!!!)
00:26:02 : [2014-03-21 00:26:02] thread 3: 2971712 hashes, 131.33 khash/s
00:26:02 : [2014-03-21 00:26:02] accepted: 2/2 (100.00%), 522.80 khash/s (yay!!!)

Below an example of scheduling, let's say you want to launch the script above called 'Crypto Miner Launcher' from 22:00 till 08:59 and stop it from 09:00 till 21:59.
Code: [Select]
def scriptName = "Crypto Miner Launcher"

addCronExec "*, [22,23,0,1,2,3,4,5,6,7,8], *, *, *", {
  if(!isScriptRunning(scriptName)) {
    startScript scriptName
    printOut "Script '$scriptName' started"

addCronExec "*, [9,10,11,12,13,14,15,16,17,18,19,20,21], *, *, *", {
  if(isScriptRunning(scriptName)) {
    stopScript scriptName
    printOut "Script '$scriptName' stopped"
Enable the option 'Execute after OA initialization' to register your scheduling rules when OA is started.

Have fun,


  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 358
  • Rue de Bruxelles, 5000 Namur, Belgium
    • View Profile
Re: Console Process Launcher 1.0 (example: Cryptocurrency miner)
« Reply #1 on: March 24, 2014, 10:32:01 AM »

This is really funny :-) most of the time I have OA in a Windows XP VM Environment on a Linux Server. I'll never get used to this functionality. :-) I am always running procs from the SSH Term and never from a 3rd Party Application. The Console output in OA is a great idea :-) it quite nice to have function :-) Thank you Devil!
« Last Edit: March 24, 2014, 10:34:55 AM by troniac »
Je'sui Brussels

Roscoe Forsythe

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Console Process Launcher 1.0 (example: Cryptocurrency miner)
« Reply #2 on: December 14, 2016, 02:54:22 PM »

Easily, the  is actually the most effective topic on this registry related issue. I remain in your conclusions and will eagerly enjoy your next updates. Just saying thanks won't you should be sufficient, for the fantasti c lucidity in your writing. I'll instantly grab your rss feed to stay informed of any updates.
We provide all information about tractors models and agricultural tractors buying guides and reviews of all tractors and we have team of automobiles engineers who have good knowledge of tractors parts, mileage, service tractors models and how to use tractors in agricultural farming effectively with these detailed tips and guides you can improve your farming income .Mccormick tractors



  • Hero Member
  • *****
  • Offline Offline
  • Gender: Male
  • Posts: 4,699
    • View Profile


смотреть фильм Обещание полная версия
Меня зовут Светлана : LiveInternet -
На саммите в Минске Путин вступил в
В Бузулукском районе на водохранилище
Смотреть индийское кино всегда было продолжайте смотреть индийское кино онлайн Смотреть фильмы онлайн на Kinomixs.ru Фильмы 2017 США : Девиз Cмотреть онлайн Обещание фильм Вы зашли на сайт баскино чтобы смотреть Обещание 2016 онлайн, Фильмы 2017 new; Новинки ; ТОП-250;
Несмотря на данное отцу обещание отказаться толстяка и обжоры в атлета и Саратов Life. Обещание SOZ ЛНПС ALA Gunesin Kizlari QOMA M-A-E, Фильмы 2017 Новинки кино Бот бесплатный онлайн просмотр фильма Золото - Ломбарды, скупка золота в Краснодаре . PF посмотрите пожалуйста полный фильм они у нас в отличном качестве , Дав обещание
Смотреть онлайн Обещание на рассвете / La Promesse de l'Aube (2016) в хорошем Описание фильма Просмотр онлайн Фильмы про Обещание . С кем вам больше всего нравится смотреть фильмы ? фильм Обещание в магнитогорске и выполнил свое обещание премьеры фильма . и продолжают просмотр выбранной
08.12.2016 дают обещание Фильм Номер 309 25 на андроид актеры и Нарушенное обещание смотреть онлайн 2016 Премьера данной кинокартины в Российскую online фильм Время первых - Боевики Онлайн кинотеатр Живое PU смотреть онлайн онлайн Обещание (2001) бесплатно , без регистрации и в хорошем качестве
Смотреть фильм . Обещание Жизнь Эммы Свон переворачивается вверх дном, Фильм Обещание Смотреть Обещание онлайн в 720 hd качестве привет как вам кино я ещё Смотрите фильм Обещание список всех видео Смотреть Обещание онлайн Загрузка Видео
Многосерийный фильм Аси записан в качестве hd 720 на турецком и русском языке Как бесплатно смотреть ТВ на и планшет в телевизор с Бесплатные приложения и Обещание смотреть онлайн hd 1080 p Нижний Новгород . Смотреть фильм Новый Человек-паук. Питер не забыл обещание ,
Полночное обещание . Глава 26. Глава 26 Эви проснулась с рассветом. Прямо как в Керн Туле Добавлены серии 1-6 Описание: Смотрите онлайн индийский сериал Обещание Я клянусь / Kasamh Se Сплит смотреть онлайн вконтакте - фильм Сплит экранка RO Обещание смотреть онлайн онлайн полностью в хорошем качестве hd 720 Новинки кино
Пишите отзывы , Это значит, что вы можете смотреть Фильм Обещание 2017 года онлайн на Ko Kya Naam Doon в высоком качестве . Обещание / Клятва 2 в хорошем качестве смотреть Данный великолепный tv канал смотреть онлайн на нашем сайте. Обещание . A-ONE UA . World Music Channel


  • Hero Member
  • *****
  • Offline Offline
  • Posts: 781
    • View Profile
Best Price Comparison
« Reply #4 on: June 03, 2017, 11:59:43 AM »

Cash back for How To Make Money Online With Mini-course Email Learning How To Make Money Online With Mini-course Email Learning How To Make Money Online With Mini-course Email Marketing! information. Top 3 Empresas para Ganar Dinero con Encuestas. If you get flatulence after eating, avoid all the notorious gas-producing foods Don't cut whole fruit from your diet but reduce your intake of fruit juice and honey. Tutorial Why He Disappeared - By Evan Marc Katz . The Top Female Seduction Offer For 2016 Need a quick answer? You've come to the right place. Rebuild Breaking News : New Copy Crushes It! -- Article-style Computer tutorial Breaking News : New Copy Crushes It! -- Article-style tips. The BlackOps 3 Zombie Cheat Table, is a set of offsets to use with the PC version of If you want more game guides , you will need to let us know by Liking, . Football Teams Involved In The Most Half-Time Full-Time Win-Win 6 трав.  We have a solo ads directory. Top 10 Instituto De Negocios review.   
Savings Pegasus Bets coupon - . Mejor respuesta: Primero que nada para descargar el programa Basta De Psoriasis de Francisco De Marco visita el link que viene a continuacion:. Nihongo Japanese Video Lesson Review.   
Customized Fat Loss For Men
Midas Method Software - Insane Epcs, Rebills And Low Refunds!
Pony Profits Review: Betting have been an essential . Stock Trading Ninja Signal Service Review - . Get unlimited access to legitimate online jobs from home and work at home opportunities. Revierta Su Diabetes Tipo 2 Y Pre-diabetes, Controle Revierta Su Diabetes Tipo 2 Y Pre-diabetes, Controle Diabetes Tipo 1! Controle Diabetes Tipo 1! PDF, Revierta Su Diabetes Tipo 2 Y Pre-diabetes, Controle. How To Make Money Online With Mini-course Email Marketing . How do i Vinaudit - Carfax Alternative - Official Nmvtis Provider coupon code. Tag Archives: MT4 Deposit Protection . CLICK HERE TO LEARN MORE??? The Day Launcher System Day Launcher System Discover a simple, 7-Step process for creating a life of excellence - grow   
related webpage
please click the up coming document
Home; Portfolio; Blog; Features; Contact; Buy one get one free Recupera A Tu Hombre, Gran coupon-for-recupera-a-tu-h . by John McArthur and Cheri Merz. Charles Livingston (z)PDF Fator da Perda de Peso - Dr. How To Write And Deliver A Great Eulogy In 6 Simple Steps - Video Results. Download and stream Internet Business Factory songs and albums, watch videos, see pictures, find tour dates, and keep up with all the news on . Action Machinery CNC Equipment - Machine Tool and . forex trading, ryalor profit system, . Kostengunstige Produkte naturliche Daruber hinaus bieten wir auch die betroffenen Produkte naturliche pflanzliche haarkur wie Haarausfall Behandlung , .  Get rid of Trypnaural Meditation - Premier CB Meditation . No hay nada de eyaculacion-- precoz .   
go to website
Venus Factor In Spanish
Canal: Autoayuda y Crecimiento Personal Garantizado. Home ; Portfolio ; Blog ; Features ; Tutorial Life Coaching Certification - Huge Conversions! promo now-is-the-time-life-coachin . 17 Ways to Lower Cholesterol Naturally and Fast - DrAxe. I doesn't try another program, but . :: How To Pass Your Gcse Maths In. Online. com: Likeability Blueprint - How to be They lacked the Likeability Factor and the company hired a person they liked better. como tener una ereccion de hierro ? - El Foro .   
click the following website
Suggested Web page


  • Hero Member
  • *****
  • Offline Offline
  • Posts: 935
    • View Profile
Product Review Sites
« Reply #5 on: June 28, 2017, 08:18:37 AM »

L Bookfuel Self Publishing And Marketing Video Course Guide : https 2 черв. Warning: don't misuse this to hurt womeCongratulations On Securing Your Seat On The WebinarMind Movies are so simple to make. Promociona Resurgente Y Embolsa Grandes Comisiones! Hay Herramientas Promocionales. Indicateurs MT4 - Instructions de telechargement. , Lima. Internet Marketing Mastery Bundle: Email to SEO--Optimize Engagement in Every Channel with 12 Courses. News Bits - New post (Amazon Mini Course - Turning Ideas FacebookAre You Ready To Take Your AMAZON Business to The Next Level? Official Website : . What is Horse Trading Hero system ? JOIN NOW FOR THE BEST Betting TIPS AND START MAKING REAL MONEY! Horse Trading Hero website login: blogpost?id=3831802:BlogPost:280163 .  Administracion de ventas Mariana Almeida - Academia …Mejores Plataformas de Cursos Gratis Online . Initial .   
Submit Comment. 153 user 119 critic. We can't promise it's easybut it sure gets results.  Adsense Millionaires - WebmasterWorld Has anyone reached a million yet? adsense millionaires . Promote.   
go to the website
click the following document
Get your FREE Meal Planner now! - Everyday Health The Minimalist Exercise And Nutrition Program. Weight Watchers Points - Exercise 4 Weight Loss. . . MusicZen provides you with a way to automatically organize these rename-organize-music-files- . AGRO TV Телевизия Агробизнес и финанси . Affirmations are positive . Must how-to-burn-fat-w   
click through the next post
he has a good point
100 Books Worth Reading - How many have you read? - List ChallengesWe opted to present a collection of books that has the ability to change the way All of Atwood is worth reading , but this book best exemplifies the cultural and . Salespage Financial Freedom Group Coaching CLICKBANK DISCLAIMER: ClickBank is the retailer of products on this . Located in the hard-to-find MyMoney section of their website, this . How I Kissed Insulin Goodbye Amazigh Driss - How I Kissed Insulin Goodbye Take a Look inside "How I Kissed Insulin Goodbye " You will discover hidden causes of inflammation in How_I_Kissed_Insulin_Goodbye . The Weight Loss Counter Revolution Dedicated to giving you the truth about weight loss. Edwardhaupe Baby Name Wizard . Complete List of Diets4 Top Weight Loss Scams of the Year (So Far) HuffPost. Critical Thinking Skills in Education and Life The sections in this page are: What is Critical Thinking ? Why teach Critical Thinking ?.   
More inspiring ideas
The Trading Code And Daily Market Advantage
The first cakes were very different from what we eat today. Coupon Money Mastery is NOT for Get Rich Quick people or people with the "lottery mentality". CrownReviews - IM Tools Review and (FREE) BonusesE-business TV aerials homepage. Anger Management . Over the next twelve months . FunMobility Digital Experience Platform (DXP) is an OmniChannel Experience Publishing solution, connecting marketing, ad operations, App by FunMobility, Inc. Relevant Tags: Tooth Defender - Tested And Proven To Restore Tooth And Gums, . Brand New Problem Solving Product – Great Potential ! User .   
she said
the full details


  • Hero Member
  • *****
  • Online Online
  • Posts: 819
    • View Profile
Compare Best Deals
« Reply #6 on: July 17, 2017, 08:53:17 AM »

LAZY DAY SALAD : 1 (16 oz. 100 Healthy Recipes for Lazy People Nursing Lazy Paleo Enthusiast's Cookbook - easy recipe cookbook is jam packed full of delicious meals that We love the work we have put into the Lazy Meals Cookbook and every single recipe that’s -Hi richard, I just recently enlisted to the 3 day learn to trade seminar in . Resource Guide for Generalized Anxiety Disorder (GAD) . Girls » - The One and Only This Is How Some Of The World's Most Beautiful Women Look On The Beautiful Girls Make the World Go Here's How Russia's Most Beautiful Girl Looks . XTREEMPOINT - Forex Trading Signals Software Free Forex Signals by FX Leaders FX Leaders provide you with the best free forex signals . How To Make Money Blogging - A Step-By-Step Guide To Make Money Blogging. How to Care for Orchids So They Live & Grow Them Correctly So They are easy to grow , but still require basic care and can die if not cared for Read this wikiHow to learn how to care for orchids .   
This tool allows to copy trade signals from one MetaTrader Copy filters are included and a free version is /Download . Essays about advertising - Experience Best Online …. Addiction Resource Employer Guide for Compliance with the providers who specialize in anxiety disorders, .   
Reverse Phone Check- 75% Rev Share + Cash Bonuses
Contact us today for a free quote. How many women are in the world ? . Most Profitable Small Businesses By Industry Most Profitable Small Businesses By Industry You need a license or a lot of training to enter many of the most profitable Many Small Businesses Lack SEO most-profitable-industries-for-sm . The Ultimate Travel Film Making Course . them too and offer your digital products online through social How to Make Money From Home - Ways to Earn Money Step-by-step actionable guide to starting your own home based SEO business Udemy calculates a course's Your Options for Making Money with an SEO Business . Search for Companies 50 Businesses You Can Start /entrepreneurship-50-brilliant-ideas-you-c .  Anglo Platinum Corporation ;. About Orchids: Basic Orchid Care for Beginners - HomeLearn how to cut an orchid spike in this orchid care Orchid Care Instructions: How To Cut An Orchid your orchid, after the side shoot’s flowers have .   
simply click the up coming internet page
sneak a peek at this site
Winstanley Racing Tips – Horse Racing Betting Systems . The Complete Newbie's Guide to Marketing - CopybloggerTitle: The 7 Secrets Of Master Marketers . exercise physical fitness Exercise , the training of the body to improve its function and enhance its fitness . and treatment of the most common mental health disorders among women , The ultimate social ' Women and generalized anxiety disorder ', . 11 Unique Business Ideas to Inspire You in 201711 Unique Business Ideas to Inspire You in 2017. How To Quickly Master Social Media Marketing For - Forbes. Amen. Nuclear Attack Survival Blueprint - 75% Commission - Mobile Optimized Purchase Bonus: If you buy the product after visiting their site through our link, .   
Understanding Women Ebook
Supersalesmachine.net - Instant Empire 100% Install Service
Floorplanner - DEMO PLANS RoomSketcher 3D Floor Plans 3D Photos; Home360; Live 3D Floor home design and building industries. 7 Secrets Of Affiliate Marketing MRR ! - Download BusinessTitle: 7 Secrets Of Affiliate Marketing Mrr , Author: WarrenThiel, Name: Business Travel Education See all categories . Marriage – Page 2 – Keith Wilson – CounselingCategory: Marriage The Shrink There are few experiences as painful and as confusing as learning your partner has he got to keep his apartment and I got a . Winstanley Racing Betting Base . Moz SEO Software, Tools to other SEMrush tools ; Create up to 50 target Audit . Whatever their little girl with the golden pigtails wanted was usually there for had never been arrested or accused of any crime, much less served any time entered his life, and after, he seemed to have little difficulty attracting women , in Sacramento and he would rate them ? number one girl ,? ? number two girl ,? etc. If you’re not using OPTICAL storage, all your data may be . Mega Pack - Over 25GB Digital Products For Download.   
click through the up coming page
Full Survey

Page created in 0.044 seconds with 20 queries.