Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 17th, 2005, 9:53 PM   #11
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 822
Rep Power: 4 The Dark is on a distinguished road
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.
The Dark is offline   Reply With Quote
Old Jun 18th, 2005, 12:22 PM   #12
L7Sqr
Hobbyist Programmer
 
Join Date: Jun 2005
Location: here
Posts: 116
Rep Power: 0 L7Sqr is an unknown quantity at this point
Quote:
I was only suggesting the /K switch while you were debugging
A point i will remember in the future.


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?
L7Sqr is offline   Reply With Quote
Old Jun 18th, 2005, 3:36 PM   #13
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
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
nnxion is offline   Reply With Quote
Old Jun 18th, 2005, 6:43 PM   #14
drunkenCoder
Newbie
 
drunkenCoder's Avatar
 
Join Date: Nov 2004
Posts: 8
Rep Power: 0 drunkenCoder is on a distinguished road
Post

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.
drunkenCoder is offline   Reply With Quote
Old Jun 18th, 2005, 8:15 PM   #15
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 822
Rep Power: 4 The Dark is on a distinguished road
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.
The Dark is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:04 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC