Keep windows active without emulating virtual desktop

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
idkwtfplshelp
Newbie
Newbie
Posts: 1
Joined: Mon Jun 12, 2017 7:32 pm

Keep windows active without emulating virtual desktop

Post by idkwtfplshelp »

I've noticed that when I use the "emulate a virtual desktop" option under the graphics tab in winecfg, the games I've run consider themselves to have focus at all times whether or not I actually have them in focus.

Is there a way to do this without using that setting such that I can avoid all the weirdness with resizing windows? Not having that checked, the game windows detect that they've lost focus and begin ignoring keyevents from xdotool.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Keep windows active without emulating virtual desktop

Post by Bob Wya »

I gather that using xdotool to control applications, running under Wine, is a bit of crap shoot (mainly focus issues - especially when applications are minimised, etc.)

Your best bet is to write simple scripts with:
  • Autohotkey
    winetricks uses Autohotkey - under the hood.
  • AutoIt
    AutoIt is quite easy to use. I've personally used it quite a lot to automate tasks on native Windows.
    You can also compile your AutoIt scripts to native Windows .exe binaries.
Your AutoIt / Autohotkey script(s) will only be able to control Windows applications running on the same WINEPREFIX / wineserver process.

Bob
Locked