FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
tooltip display or general text on screen.
tooltip display or general text on screen.
Débuté par Mike, 21 oct. 2006 10:26 - Aucune réponse
Connectez-vous…
Mike
#1
Posté le 21 octobre 2006 - 10:26
I'm new to windev and trying to get a few functions going. I want to check the color of a pixel on screen. Not in a control box or image, but the whole screen regardless of what window is there or maybe another program is running fullscreen even. In short, I don't care what program is running, but all the functions seemed to need me to specify a window handle.
After a lot of work I got the following working:
FUNCTION GetPixel(X, Y)
WDC is int = CallDLL32("user32", "GetWindowDC" ,0)
PixelColor is int = CallDLL32("gdi32", "GetPixel" , WDC, X, Y)
RESULT PixelColor
I am then using something like this to test:
result is int = getpixel(10,10)
info(result)
but what I want to do is to display this result (or any other text) on the screen at a x/y point of my choosing. Not in a control box or anything. I used other languages before which let me overlay a tooltip for example on the screen at an x/y point. But they were always pre-defined functions in the language. So how can I do something like that is Windev?
Then I could add something like getting the cursor position, and looping things and have it display somewhere on screen the color under the mouse for instance.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte