Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using AI calls to move and click the mouse
Message
 
À
14/12/1998 14:16:39
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00166700
Message ID:
00167348
Vues:
26
>Unfortunately at separate locations ..

Based on what you've mentioned, the only problem left is keeping the image on top, is that right? I'm assuming also that you're doing this in VB. If so, you should have access to the control's window handle property. You can use this as a parameter to SetWindowPos() to set it as always on top. Just pass -1 as the second parameter (hWndInsertAfter in the SDK).

hth



>>>Great .. that works fine .. thanks a lot .. Now the tricky bit. I have to have more than one "Mouse Cursor" on the screen at the same time. It can be in one app or in separate apps.
>>>
>>>I have tried simulating a mouse cursor with a VB Image control .. using the standard mouse icons as the picture property .. this works OK untill you move it over the WebBrowser (or command buttons , text boxes etc.). Then it moves behind the objects. The zorder property only works with controls of the same graphical type.
>>>
>>>I can create a command button (or a PictureBox) with the icon as a picture property, but the button itself has no "BackStyle" property that can be set to transparent. The same is true for containers, frames and picture boxes. What I need (in lieu of multiple cursors if that isn't possible) is a object that will float overtop of all other objects (ala a mouse cursor) and has a transparent background.
>>>
>>>Any ideas are greatly appreciated ..
>>>
>>Hi Rob,
>>
>>What you mean by multiple mouse cursors? If it's a cursor with multiple images at the same location, that can be done by creating an appropriate .cur file and setting it appropriately (either through an object's MouseCursor property or the API). At separate locations is another story.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform