![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 822
Rep Power: 4
![]() |
I was only suggesting the /K switch while you were debugging. That is how I saw the "file cannot be copied onto itself" message.
The integrated C builder debugger works pretty well, allows you to display/change variable values etc. |
|
|
|
|
|
#12 | |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: here
Posts: 116
Rep Power: 0
![]() |
Quote:
A further question on this program.... Now that I am actually executing these files, I have a question regarding focus... If I am running several scripts in a row and they run quickly (< 60 seconds each) I am forced to deal with 'pop-up' dos windows every so many seconds. Is there a way (using the system command) to have the dos window come up in the background rather than stealing focus from whatever I might be working on at the present moment? I want the window to actually appear, so I can check progress if necessary, but I'd rather not have to switch focus everytime a new file executes. Is what I want even possible? |
|
|
|
|
|
|
#13 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
I have seen what you mean, so I guess it's possible, but it might be luck. I don't know how that would be done though.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#14 |
|
Newbie
Join Date: Nov 2004
Posts: 8
Rep Power: 0
![]() |
sup y'all
I came across this the other day at http://www.onecomputerguy.com/windowsxp_tips.htm To prevent applications from stealing the focus from the window you are working: Start Regedit Go to HKEY_CURRENT_USER \ Control Panel \ Desktop Edit the key ForegroundLockTimeout Give it a value of 00030d40 I have never had the need to use it, but I hope it works. |
|
|
|
|
|
#15 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 822
Rep Power: 4
![]() |
Here is a program you can call from your batch file to send the console window to the back of the Z order. I am not sure whether you will be able to compile it under Builder 4 as it uses GetConsoleWindow which is only available in Windows XP and 2000.
// SendToBack
// Send the current console window to the back
#define _WIN32_WINNT 0x0500
#include <windows.h>
int main(int argc, char *argv[])
{
HWND hWnd = GetConsoleWindow();
if (hWnd != NULL)
SetWindowPos(hWnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
return 0;
}If you can't get this going, you could try using the SetConsoleWindowInfo function, which is available on Windows95 and above, however this function only allows you to set the size and position of the window, so you could just move them off to the side somewhere. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|