Posted 18 June 2012 - 09:55 PM
[Sorry for the rather vague tittle, this was a hard problem to properly label]
I recently started work on an OS which makes use of the arrow keys in place of a mouse. I have the mouse setup, working quite well actually. However I have a rather major problem and I have no idea what I can do to fix it, while keeping the OS as dynamic as possible.
The mouse is run by writing a single symbol (^) in a given set of coordinates. When the mouse is moved, the up-carrot is replace with a space. This works great, until you move the mouse over an existing piece of text, in which case, upon being moved, the mouse will erase the text.
I was wondering if there was any way to "read" from the screen what letter is there, save it as a variable, and then place THAT instead of a space, thereby eliminating the problem. Any other suggestions would be equally helpful.
I recently started work on an OS which makes use of the arrow keys in place of a mouse. I have the mouse setup, working quite well actually. However I have a rather major problem and I have no idea what I can do to fix it, while keeping the OS as dynamic as possible.
The mouse is run by writing a single symbol (^) in a given set of coordinates. When the mouse is moved, the up-carrot is replace with a space. This works great, until you move the mouse over an existing piece of text, in which case, upon being moved, the mouse will erase the text.
I was wondering if there was any way to "read" from the screen what letter is there, save it as a variable, and then place THAT instead of a space, thereby eliminating the problem. Any other suggestions would be equally helpful.