Page 1 of 1

Не работает evTimer1, evTimer2 в Питоне (внешний)

Posted: 06.03.2016 1:46
by chernysh
Не работает evTimer1, evTimer2 в Питоне (внешний).

Вообще ничего не происходит. При этом, если юзать внутренний питон - все ОК

По коду py_stealth.py вроде ошибок нету.

Код для проверки:

Code: Select all


# -*- coding: utf-8 -*-
#! python3

import sys, os

external_stealth = False
try:
    import py_stealth as stealth
    print("Use external stealth")
    external_stealth = True
except ImportError:
    import stealth
    print("Use internal stealth")


def f():
    print(111)


def main():
    stealth.SetEventProc('evTimer1', f)
    while True:
        stealth.Wait(100)


if __name__ == '__main__':
    print("Started")
    if external_stealth:
        stealth.StartStealthSocketInstance(os.path.basename(sys.executable.encode()))
    main()
    if external_stealth:
        stealth.CorrectDisconnection()

Re: Не работает evTimer1, evTimer2 в Питоне (внешний)

Posted: 06.03.2016 12:06
by Vizit0r

Re: Не работает evTimer1, evTimer2 в Питоне (внешний)

Posted: 06.03.2016 12:53
by chernysh
Понял, жду 7-ю версию для тестирования.

Re: Не работает evTimer1, evTimer2 в Питоне (внешний)

Posted: 06.03.2016 12:57
by Vizit0r
изменил))))