Back Reply to topic
Argorn 
(started thread)
Blue-Ribbon Chicken 
Topics: 5
Posts: 19
Playing:  Age of Conan
Ingame:  Argorn
Years registered: * * * * * * * * * * * * * * * * *
Start the bot as windows service? Posted: Post 09:23 Tue - Oct 07, 2008

Well, my pc is online all around the clock, my DSL 16k is fast enough and flatrate makes me forget about volumes, but the little task of the bot, dunno, I dont like it.

Is there a way to start the bot minimized to system tray (near windows clock) and get it out of the taskbar?


Regards
Reply with quote



_________________

Argorn (80) : Miezekatze (80) ::: NR Guild Leader
Chaly 
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
Posted: Post 11:31 Wed - Oct 08, 2008

in general: it is possible to send a php-gtk applicaiton to your systemtray:
Code:
// setup main application
$window = new GtkWindow();
$window->set_size_request(240, 120);
$window->connect_simple('destroy', array('Gtk','main_quit'));
$label = new GtkLabel('Hello World, GtkStatusIcon!');
$window->add($label);
$window->hide_all();

as ragebot isn't a php-gtk application you have to workaround and "hide" your php.exe:
1. freeware
i've just tested this one: drag&drop the "appaway" icon from the taskbar over any application (ragebot window) and it is hidden, rightklick the "appaway" icon to recover the window: http://www.johnmacintyre.ca/AppAway.asp
here's another freeware tool that seems to be designed to schedule hidden/systemtray tasks http://4t-tray-minimizer-free.4t-niagara-software.qarchive.org/ (untested)
2. windows scheduled tasks
use the windows task schedule to ragebot. the schedule shouldn't show tasks that are started "on systemstart". you won't have a chance to recover this window on the fly..
3. vbs
i bet there is a way to minimize your program... i've never tried this
Code:
Dim objWshShell, objExec, strAppExe
Set objWshShell = CreateObject("Wscript.Shell")
strAppExe = "c:\windows\system32\cmd.exe /c c:\ragebot\bot.cmd"
Set objExec = objWshShell.Exec(strAppExe)

'missing code to
'1. get window handle of "objExec" and hide it
'2. create a systemtray icon to recover the windows
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Argorn 
(started thread)
Blue-Ribbon Chicken 
Topics: 5
Posts: 19
Playing:  Age of Conan
Ingame:  Argorn
Years registered: * * * * * * * * * * * * * * * * *
Posted: Post 04:34 Wed - Oct 08, 2008

Awesome, I took AppAway for now and it works great. Thx dude...


Regards
Reply with quote



_________________

Argorn (80) : Miezekatze (80) ::: NR Guild Leader
Back Reply to topic