Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1561 connectés 

  FORUM HardWare.fr
  Programmation

  [Deplhi 4] Comment recuperer le Handle d'une application ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Deplhi 4] Comment recuperer le Handle d'une application ?

n°120057
Slide
Posté le 02-04-2002 à 00:47:09  profilanswer
 

Salut :)
Ma question est simple :)
Comment recuperer le Handle d'une application à partir du nom ???
:)
Mc d'avance.

mood
Publicité
Posté le 02-04-2002 à 00:47:09  profilanswer
 

n°120058
JWhy
je peux plier (héhé)
Posté le 02-04-2002 à 00:58:13  profilanswer
 

FindWindow + F1
 

Citation :

The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows.  
 
HWND FindWindow(
 
    LPCTSTR lpClassName, // pointer to class name
    LPCTSTR lpWindowName  // pointer to window name
   );  
 
 
Parameters
 
lpClassName
 
Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero.  
 
lpWindowName
 
Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match.  
 
 
 
Return Values
 
If the function succeeds, the return value is the handle to the window that has the specified class name and window name.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.  
 
See Also
 
EnumWindows, FindWindowEx, GetClassName, GlobalAddAtom


---------------
www.alliancefrancophone.org ... Home is where the heart is
n°120073
Slide
Posté le 02-04-2002 à 04:18:07  profilanswer
 

JWhy a écrit a écrit :

FindWindow + F1
 

Citation :


HWND FindWindow(
 
    LPCTSTR lpClassName, // pointer to class name
    LPCTSTR lpWindowName  // pointer to window name
   );

 




 
Je peux avoir un exemple ? svp

n°120288
Slide
Posté le 02-04-2002 à 15:32:10  profilanswer
 

:bounce:

n°120299
JWhy
je peux plier (héhé)
Posté le 02-04-2002 à 15:38:58  profilanswer
 

:sarcastic:

Code :
  1. - - -
  2. var
  3.   hHandle : HWND;
  4. begin
  5.   hHandle := FindWindow(nil, 'Untitled - Notepad');
  6. end;
  7. - - -

 

[jfdsdjhfuetppo]--Message édité par JWhy--[/jfdsdjhfuetppo]


---------------
www.alliancefrancophone.org ... Home is where the heart is
n°120316
Slide
Posté le 02-04-2002 à 15:44:51  profilanswer
 

Mc BCP :)
ma enfin pouvoir etre tranquille au nivo du handle
car jutiliser un otre logiciel FreeWare pour les lire, et je l'ecriver dans une entrer text pour que le soft l'utilise.
 
Maintenant, ca va etre AUTO :)
 
Dit, tu peux regarde mon autre poste :) stp


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [Deplhi 4] Comment recuperer le Handle d'une application ?

 

Sujets relatifs
[Deplhi 4] Comment émuler l'utilisation du clavier ?? :([JAVA] Récuperer un fichier image sur le web
[JAVA] [ORACLE] récupérer les messages d'erreurs d'oracle sous java ??XML et XSL pour gérer la doc d'une application
[Visual C++] pb de titre d'une application[php] je dois récupérer le contenu d'un fichier avec un socket...
[PHP/MySQL] probleme pour recuperer des donnees d'une base MySQL[Javascript] Récupérer la position d'une image
[delphi]Lancer un script sur une page web à partir d'une application[PHP] Récupérer une valeur dans un textarea ?
Plus de sujets relatifs à : [Deplhi 4] Comment recuperer le Handle d'une application ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR