Español
Hilfedateien

CHM-Hilfedatei: XProfan X2

Hilfedatei (CHM)- Bugs

SetActiveWindow: Falsche API?

 

Nico
Madysa
Hola Roland,

el XProfan-Ayuda behauptet, el Características GetActiveWindow  y SetActiveWindow  seien lediglich Wrapper a gleichnamigen Windows-API-Características.

Eigene Erfahrungen hacer mich aber glauben, dass lo hier más a Características GetForegroundWindow  o. SetForegroundWindow  es.

Der Diferencia es, dass *ActiveWindow  se siempre en el eigenen Prozess bezieht (y 0 zurückgibt, si una otro Prozess gerade el Fokus ha), während *ForegroundWindow  siempre el Handle des gerade aktiven Fensters zurückgibt, incluso si una otro Prozess gehört.

Das folgende Programa, getestet en el XProfan-X2.1a-Interpreter bajo Windows 7 zeigt, dass XProfans GetActiveWindow  stets el gleiche Ergebnis ha como Windows-API GetForegroundWindow .
KompilierenMarcaSeparación
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:08.03.2014
Ladeanzahl311
Descargar
b.png  
54 kB
Hochgeladen:08.03.2014
Ladeanzahl344
Descargar
 
08.03.2014  
 




RGH
¡Hola,
Usted hast natürlich vollkommen bastante. Der Referencia en el gleichnamige API-Función stammt todavía de el 16-Bit-Ära de XProfan (y fue außerdem no de me en el Ayuda eingefügt). Como gabe lo todavía no unterschiedlichen Prozesse.
Bajo 32 Bit waren el Características entonces plötzlich sólo todavía en el eigenen Prozess beschränkt, qué sí no en el Sinne des Erfinders war. Schließlich fueron ellos damals a Kommunikation con otro Programmen eingeführt. Daher musste Yo el API-Aufrufe entsprechend ändern, así el Wirkung otra vez como ehedem en 16 Bit war. Der Referencia en el Ayuda es also falso. (Yo voluntad ihn herausnehmen.)

Saludo
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
08.03.2014  
 




Nico
Madysa
Gracias para la respuesta rápida!
 
10.03.2014  
 



Zur Funktionsreferenz


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

6.078 Views

Untitledvor 0 min.
Sven Bader21.03.2023
H.Brill22.12.2019
Wilfried Friebe21.11.2016
iF09.07.2014
Más...

Themeninformationen

Dieses Thema ha 2 subscriber:

Nico Madysa (2x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie