Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shortcut to compiled DOS program - Inconsistent mouse behaviour.

Status
Not open for further replies.

AndrewMozley

Programmer
Oct 15, 2005
621
GB
I have a DOS application into which includes mouse routines developed from the Clipmous library. I have modified the GETSYS.PRG routines to interpret the mouse movements, and clicks, and this works satisfactorily.

When I run this program in a DOS (cmd) window it works fine, and responds to the mouse moves.

However, on one Windows XP machine (my client’s), I find that if I create a shortcut directly to my application (for example, a link to myprog.exe, starting in C:\myprogs), the program runs correctly, but does not pick up mouse clicks. Instead it just highlights (in red) one or more characters (from a SAY statement), usually close to where I have clicked.

If (on this same machine) I open a cmd window (so, a shortcut to DOS cmd), and then navigate to c:myprogs, and then key in myprog.exe, the program works fine, mouse and all.

I cannot discover the reason for this difference in behaviour : On the one hand a direct shortcut to myprog.exe; on the other hand opening a DOS session, then calling myprog.exe from the DOS command window.

I had thought there might be something in the properties of the shortcut, but cannot see anything obvious). Is there perhaps a setting in CONFIG.NT which I need to have?

On my own machine the program works fine, whichever way it is started.

If anyone has experienced a similar problem I would be very grateful to hear.

Andrew
 
In answer to my own question, the problem seems to be caused by the setting of the QuickEdit option in a cmd session under windows.

If you right-click on the the C:\ icon at the top left of the DOS window, then go into properties, there is a check-box on the options tab called !QuickEdit mode". If that box is cleared, the mouse seems to work satisfactorily.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top