Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Boydon

Pages: 1 [2] 3 4 5
16


What am I supposed to do? :)

17
Stealth archive / Re: Stealth Documentation
« on: October 06, 2014, 05:19:33 AM »
Nice post. :)

If you have time and will I also reccomend you to update the official stealth Wiki. :P

18
Stealth archive / Re: Stealth Python Console
« on: October 05, 2014, 10:36:44 AM »
I doubt this will ever work as from stealth you don't have way to interactively read line input from the user.

It was a nice idea indeed. :)

19
Scripting Chat / Re: Cascading subs
« on: September 22, 2014, 01:10:58 PM »
Once upon a time, when EasyUO 1.4 ruled the world of scripting, there used to be the #subrec variable. Now, in EasyUO 1.5, this is not a variable anymore, so I guess there limitation has been lifted or the maximum number of allowed recursion is very high. :)

20
Programming / Operating Systems / Re: Has anyone upgraded to Windows 8 yet?
« on: September 01, 2014, 04:26:11 AM »
Windows 9 is rumored to be announced by the end of September: maybe it will be better...

21
New member introductions / Re: Greetings from Iolo of Yew
« on: August 30, 2014, 11:53:20 PM »
Very nice introduction and it remembered my about Wing Commander. :D

22
Script Debug / Re: Notification Scripting
« on: August 24, 2014, 02:38:42 AM »
You may also consider Miranda NG with the CmdLine plugin for more complicated stuff.

23
Stealth archive / Re: Stealth Python Reference
« on: August 23, 2014, 10:09:21 AM »
In my mind I have something really similar and somewhere on my HD i also have a draft for this. My problem is that i never have time to work on making stealth APIs more Pythonic. :)

24
Stealth archive / Re: Stealth Python Reference
« on: August 21, 2014, 02:11:04 PM »
As Chrome said, they are the same and when I had the chance I also added pythos samples.

Anyway you should have a look at the pydoc module, at the hep() built-in function, at the dir() built-in function and at the inspect module.

You can also output the list in the format you like with a snippet like this:

Code: [Select]
import stealth

stealth_funcs = [stealth.__dict__.get(func) for func in dir(stealth)]

for func in stealth_funcs:
    if callable(func):
        print (func.__doc__)

If you want to contribute, you can add Python samples where missing (as example refer to FindType).

25
Wrapper is updated.

@Vlek
What exactly do you want to know? I am not sure if you want to know how to use it (see below) or why it has been done in that way (as you probably guess there is a reason behind ;)).
Anyway feel free to use my code as you like. :D

Here is a snippet that shows you how to use it (beware that it is untested! :P):

Code: [Select]
#!python2
from __future__ import print_function
import os
import sys
from py_stealth import *

#this only works if you freeze with cx_freeze
exe_name = os.path.basename(sys.executable)
print(exe_name)

StartStealthSocketInstance(exe_name)

def OnSpeech(text, senderName, senderID):
    AddToSystemJournal('[{}] {} has just said: {}'.format(senderID, senderName, text))

AddToSystemJournal('test')
SetEventProc('evSpeech', OnSpeech)
SetEventProc('evUnicodeSpeech', OnSpeech)

#20 seconds
for x in range(0, 401):
    Wait(50)

CorrectDisconnection()

To have a list of events and parameters, have a look here.

26
Try again. :)

27
Stealth archive / Re: Stealth Client Won't Close Because of Error
« on: August 03, 2014, 01:57:24 PM »
I've added you, but lately my presence on ICQ is rare. :)

28
Wrapper is updated.

29
Stealth archive / Re: Stealth Client Won't Close Because of Error
« on: July 28, 2014, 12:56:08 AM »
About steal.cfg: it has to be saved within the Ultima folder, so if you have a normal install this folder will be in the "Program Files" folder that by default requires admin privileges to write in it.

About the error: the "ScriptTerminated" is raised every time a script is stopped and can be ignored so far. The other one needs further investigation an probably should be reported on official Stealth forum or in the bug tracker.

30
It should work with Python 2.7.

What kind of error do you have?

Pages: 1 [2] 3 4 5