[XP][VX][VXA] Prevent Window Deactivation

Started by ForeverZer0, July 11, 2014, 02:11:15 pm

Previous topic - Next topic

Sylphe

Yes I just tried and it doesn't fix it, it's like the game don't recognize the keyboard anymore
blindly follow his heart can lead to the loss

Sylphe, descendant of Zoldik Family.
Quote from: TedBearTRY KEEP UP

R5GAMER

In Windows 8.1 :



and :



My config:

Spoiler: ShowHide
Quote
System
Windows 8.1 Professionnel ‎(X64)‎
Date d'installation: 01/09/2014

Proc
Intel Core i7 950 Cadencé à 4.00 GHz
Nombre de coeurs: 4 physique(s), 8 logique(s)
Socket: Socket 1366 LGA

Carte mère
Gigabyte Technology Co., Ltd. G1.Assassin
Version du bios: F5d
Date: 11/12/2011

RAM
12 Go de mémoire totale de type DDR3
Timings mémoire: 10.0 clocks-10 clocks-10 clocks-29 clocks-2 TT
Barrette Corsair de 4 Go
Fréquence maximale: 2000 MHz
Bande passante: PC3-10700H
Barrette Corsair de 4 Go
Fréquence maximale: 2000 MHz
Bande passante: PC3-10700H
Barrette Corsair de 4 Go
Fréquence maximale: 2000 MHz
Bande passante: PC3-10700H

Graphic
NVIDIA GeForce GTX 780
Version DirectX installée: 11.0
Fréquence du GPU: 954 MHz
Fréquence mémoire du GPU: 1502 MHz
..........________
....'/,-Y"............."~-.
..l.Y.......................^.
./\............................_\
i.................... ___/"...."\
|.................../"...."\ .....o!
l..................].......o !__../
.\..._..._.........\..___./......"~\
..X...\/...\.....................___./
.(. \.___......_.....--~~".....~`-.           
....`.Z,--........./.....................\
.......\__....(......../.........._____)
...........\.........l......../---~~" /
............Y.......\................../
............|........"x_____.^
............|.....................\
............j.....................Y

KK20

February 09, 2015, 11:45:41 pm #22 Last Edit: August 15, 2016, 01:34:18 pm by KK20
I took it upon myself to take a crack at this again and see if I can fix some people's issues. I wrote another DLL, pick it up HERE.
EDIT: This version uses Event Hooks like F0's does, but hopefully doesn't require .NET to be installed. Get it HERE.

Throw that into your project folder (where your Game.exe is) and paste this code at the top of Main

module NoDeactivateDLL
  Start = Win32API.new("NoDeactivate", "Start", '', '')
  InFocus = Win32API.new("NoDeactivate", "InFocus", '', 'i')
end

module Input
  class << self
    alias update_again update
  end
 
  def self.update
    update_again if NoDeactivateDLL::InFocus.call() == 1
  end
end
NoDeactivateDLL::Start.call()

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

finalholylight

@KK20: game window works fine when I click to other window. But game still pause when I click to the title bar of the game window.

KK20

Quote from: finalholylight on February 12, 2015, 08:55:06 am
But game still pause when I click to the title bar of the game window.

Do you mean when you click and hold the title bar (and then proceed to drag the window around)? If so, there's no way around that, at least to my knowledge.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Valentine

Hello, sorry to resurrect this old topic, but the doubt remains current. When I click the minimize button, the executable continues to pause.

KK20

https://cdn.discordapp.com/attachments/396437642129965077/520159749472256003/ForJaiden.zip

This was meant to be put into a new update for XPA so you'll need to change the code a bit for your needs. It is not dependent on the Intercept Exit Message script, though you're the creator of that online script right? So it'd probably be good to keep it.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!