Jump to content

Ativar Alt + [F4] Para Fechar O Cliente


Dynamic Things

Recommended Posts

Ativar alt + F4 para fechar o cliente.

Descompactamos o root.

Abrimos game.py

E procuramos por:

def __PressQuickSlot(self, localSlotIndex):

Será algo mais ou menos assim:

def __PressQuickSlot(self, localSlotIndex):
	if localeInfo.IsARABIC():
		if 0 <= localSlotIndex and localSlotIndex < 4:
			player.RequestUseLocalQuickSlot(3-localSlotIndex)
		else:
			player.RequestUseLocalQuickSlot(11-localSlotIndex)
	else:
		player.RequestUseLocalQuickSlot(localSlotIndex)	

Adicionamos estas seguintes linhas:


	if app.IsPressed(app.DIK_LALT):
		app.Exit()
	else:

e o nosso resultado final será este:

def __PressQuickSlot(self, localSlotIndex):
	if app.IsPressed(app.DIK_LALT):
		app.Exit()
	else:
		if localeInfo.IsARABIC():
			if 0 <= localSlotIndex and localSlotIndex < 4:
				player.RequestUseLocalQuickSlot(3-localSlotIndex)
			else:
				player.RequestUseLocalQuickSlot(11-localSlotIndex)
		else:
			player.RequestUseLocalQuickSlot(localSlotIndex)	

Atenção, não aconselho o uso deste tutorial, pois os segundos a qual tem que se aguardar, antes de terminar a sua sessão, têm um porquê.

Cumprimentos DynamicThings

Link to comment

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
×
×
  • Create New...