OP here. I do appreciate the continued conversation, I’ve learned quite a bit. However, given the number of years it’s been, and that I have not been upgrading all along but am suddenly switching from a very old RB to the (what seems to me) different and newer and more complex Xojo environment, I’m feeling a little in over my head reading these replies. (And also, have explored some of the things on the Monkeybread site, and again, getting into places where I am over my head.)
FWIW, I can still program fine in RB (haven’t forgotten those things) but only ever had the one plug-in (that I purposefully added), so am not really up on the world of plug-ins.
As I noted above, I’m taking an old program and modifying it for a new use. I program on the Mac (and intend to continue to do so), and all our applications have always been for the Mac, so I’ve never had to do anything to make my executable run on a Win platform. But that is part of what these modifications require: to be able to run on a Win laptop. My old RB will compile for Windows, but only as a demo: only good for 30 days, will only run 5 min. That’s not something we can use. So, I have to upgrade, obviously, since the professional version of the old RB is not available (I assume, but I will check that out, in addition).
The types of commands I need to do are to show the cursor, hide the cursor (and obviously render it non-operational while hidden), and to move the cursor (which I do usually while it is hidden). The commands (using Mouse Overlord) that I need to be able to find current alternatives for are:
MOv.HideCursor
MOv.MoveCursorTo(tempx,tempy)
MOv.ShowCursor
I see examples above which I believe I can just use to hide and show the cursor, without having to make any more changes or find any more plugins, but like Loren, I still need to set the mouse position.
I want this to be able to run on both Windows and Mac platforms, so I don’t know if the examples above that are for specific targets mean that they won’t work on the other platform (especially the very simple
#if TargetWin32
Declare Function SetCursorPos Lib “user32” (ByVal x As Integer, ByVal y As Integer) As Integer
//==========================================
// Set cursor position to top left of screen
//==========================================
call SetCursorPos(0,0)
#endif
example – If I took out the #if Target stuff, would the rest work? I am not sure I know how (or where) to make a Xojo Structure as shown in the next, more complicated example (and again, would the target platform specific code be needed?).
I suppose I could just TRY those things – except I’m not recognizing the “declare function” (I’m used to just creating them, not writing them in as code like that) nor the “call functionname” stuff either. I am used to creating a function, and then just calling it with its name. Another change from old RB?
I’m sorry I’m so last decade in my understanding of this stuff. Trying to get back in the swing but there are so many little things to figure out, and I’m not on this project for that many hours of the week, so it’s going to take longer anyway.
Thanks for any help in getting me back up and running. All of the projects we are trying to update and create Windows versions (as well as Mac versions) of utilize mouse position and showing and hiding, so I kind of have to figure this out, and it’s the next step before I can start testing it to make sure it still works.
Carolyn