English
Help Files

CHM-Helpfile: XProfan X2

Helpfile (CHM)- Bugs

SetActiveWindow: incorrect API?

 

Nico
Madysa
Hello Roland,

The XProfan-Help behauptet, The functions GetActiveWindow  and SetActiveWindow  seien solely Wrapper around the gleichnamigen windows-API-functions.

Own Experience make me but believe, that it itself here sooner around the functions GetForegroundWindow  or. SetForegroundWindow  deals.

The Difference is, that *ActiveWindow  itself always on the own Process relating (and 0 zurückgibt, if another Process just the Fokus has), during *ForegroundWindow  always the lever the straight active Fensters zurückgibt, even if it another Process heard.

the following Program, tested in the XProfan-X2.1a-Interpreter under windows 7 shows, that XProfans GetActiveWindow  always the same Result has as windows-API GetForegroundWindow .
CompileMarkSeparation
var huser& = ImportDLL("USER32", "user.")
cls
settimer 500

whilenot iskey(27)

    waitinput

    if %wmTimer

        cls
        Locate 1, 1
        print "Windows Active:", GetText$(user.GetActiveWindow())
        print "Windows Foreground:", GetText$(user.GetForegroundWindow())
        print "XProfan Active:", GetText$(GetActiveWindow())

    endif

wend

killtimer
freedll huser&
end




a.png  
39 kB
Hochgeladen:03/08/14
Downloadcounter314
Download
b.png  
54 kB
Hochgeladen:03/08/14
Downloadcounter350
Download
 
03/08/14  
 




RGH
Hi,
you have naturally completely right. The Info on The gleichnamige API-function stammt yet from the 16-bit-Ära of XProfan (and was moreover not of me into Help eingefügt). there gift it yet no unterschiedlichen processes.
under 32 bit were The functions then suddenly only yet on the own Process dull, what Yes not senses the Erfinders was. finally get tappt im dunkeln then to communication with others Programs introduced. therefore had I The API-Aufrufe properly Change, so The effect again How ehedem with 16 bit was. The Info in the Help is means wrong. (i'll it to remove.)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/08/14  
 




Nico
Madysa
thanks for speedy response!
 
03/10/14  
 



Zur Funktionsreferenz


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.279 Views

Untitledvor 0 min.
Sven Bader03/21/23
H.Brill12/22/19
Wilfried Friebe11/21/16
iF07/09/14
More...

Themeninformationen

this Topic has 2 subscriber:

Nico Madysa (2x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie