antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
Doom

Python. Executar Ficheiro

Question

Boa noite a todos.Eu estou a criar 1 ficheiro python que executa outros 3 BOTS.2 Deles ja estao a funcionar (Estao no mesmo ficheiro, So que queria executar outro BOT mas fora do Python que é um bot de rodar que é um ficheiro .pycMas se alguem me conseguir arranjar um BOT de rodar .py com 6/7 agradecia.E quem me conseguir ajudar também agradecia e agradeço com +1Codigo: def LoadBoard(self): self.SetCenterPosition() self.SetSize(200 ,100) self.Show() self.AddFlag("movable") self.load = ui.Button() self.load.SetParent(self) self.load.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.load.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.load.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.load.SetText(" PickUP ") self.load.SetPosition(80, 40) self.load.SetEvent(ui.__mem_func__(self.pick_func)) self.load.Show() self.rodar = ui.Button() self.rodar.SetParent(self) self.rodar.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.rodar.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.rodar.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.rodar.SetText(" Rodar ") self.rodar.SetPosition(20, 40) self.rodar.SetEvent(ui.__mem_func__(self.rodar_func)) self.rodar.Show() self.bot = ui.Button() self.bot.SetParent(self) self.bot.SetUpVisual("d:/ymir work/ui/public/small_button_01.sub") self.bot.SetOverVisual("d:/ymir work/ui/public/small_button_02.sub") self.bot.SetDownVisual("d:/ymir work/ui/public/small_button_03.sub") self.bot.SetText(" bot ") self.bot.SetPosition(140, 40) self.bot.SetEvent(ui.__mem_func__(self.bot_func)) self.bot.Show() def pick_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= Dialog1() self.dialstarter.Show() IsOnScreen="1" def rodar_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= SwitchBotDialog() self.dialstarter.Show() IsOnScreen="1" def bot_func(self): global IsOnScreen if IsOnScreen=="1": self.dialstarter= Bot rodar exterior :c () self.dialstarter.Show() IsOnScreen="1"O ultimo "Bot_func" é o que não estou a conseguir fazer a ligação :c

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

fazes um ficheiro .py escreves lá: import nome_ficheiro.pycpenso ke isso resolvaou tb podes descompilar o pyc para py com o Python for Windows

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif
  • 0

Ao meter o import da-me erro depois ao abrir o metin :c.

 

Obrigado, ja arranjei 1 BOT com 6/7 Python que era utilizado no addict :)

Share this post


Link to post
Share on other sites
  • 0

Para não estar a criar outro tópico.

 

Alguém sabe se é possível ter em Python em que mostre o nome do GM etc.. Mesmo estando invisível?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this