Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using AI calls to move and click the mouse
Message
From
15/12/1998 09:29:32
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nova Scotia, Canada
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00166700
Message ID:
00167637
Views:
20
Unfortunately, the only control I can get to have a transparent background (ala a mouse cursor) is the Image control and it doesn't have a hWnd property (of course).


>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform