can someone remind me how to center the projector on the monitor without going full screen...i thought i had seen something on these boards about that before when i was looking for something else...but i'm not sure. much thanks
Printable View
can someone remind me how to center the projector on the monitor without going full screen...i thought i had seen something on these boards about that before when i was looking for something else...but i'm not sure. much thanks
Hi there,
Northcode has a free app that is supposed to center your exe. You can find it here http://www.northcode.com/misc/center.exe
I tried it, it didnt work for me, give it a shot, let me know if it works for you.
That utility was really designed to let you center EXE files that you launched from your projector (via EXEC) but it could also be used to center your projector when launched from a CD, BAT file, etc.
If you have trouble getting it to work, just give me a shout. I'm quite happy to build these little things to help people out and if they don't quite do the job for you I can always "adjust" em :)
I see, I havent made a bat file in ages, how would you make it center the main exe itself? I have a cd project that I want to center, currently I am just having it go fullscreen(it is 800x600) which looks a bit pixelated at higher res settings. I'd like to have it launch at its designed size but it never centers.
[Edited by airman28 on 08-23-2002 at 10:52 AM]
usage: center.exe pattern
CENTER allows you to reposition any running application on the desktop. The size of the window being centered and the size of the desktop are determined dynamically at run time so you don't have to include any of that information in your call.
If you call CENTER without specifying a value for the pattern argument, nothing will happen. If you supply a value for the pattern, any window that contains the pattern in its caption will be centered on the desktop. Case is not important but spaces are significant.
This command fscommand("EXEC", "center.exe" + chr(9) + "Flash"); will center all open windows that have "Flash" in the caption.
* If you use the old Flash trick of using tabs in place of spaces, CENTER will look for tabs in the caption (exact match) and will probably fail to find the application.
* Flash 5 will allow you use a tab between the application name and the pattern.
* Flash MX does not allow spaces or tabs in the argument to the EXEC command. This means that the CENTER utility can't be called directly from Flash MX.
* In a batch file the pattern can contain spaces which provides a workaround for Flash 5 limitations and makes it possible to use CENTER from Flash MX projectors.
I've also built a new version of the CENTER utility that's a little more flexible. Download http://www.northcode.com/misc/center.zip and have a look at the readme file.
[/B][/QUOTE]i've tried center.exe assigned to a button using the exec in flash 5...
on (release) {
fscommand ("exec", "center.exe");
}
the cmd file has the name of the file in it that i am trying to open and they are in the same folder as the center.exe app. it doesn't work for me though. is there a way to open the center.exe app? What would you assign the fscommand ("exec", "center.exe") to if you were trying to open the main projector with it centered...i didn't get that part in the last post. thanks again...
First, be sure you're using the right center.exe file! The old one works using a command line argument, the new one uses a CMD file.
The cmd file has to have the same name as the EXE file you EXE from Flash. If you use fscommand("EXEC", "CENTER.EXE") then you should have CENTER.CMD in the same directory (the fscommand directory).
The contents of the CMD file should be a fully qualified path to the file you want to launch, like "C:\WinNT\Notepad.exe" or a relative path to the file you want to launch (relative to where the CMD file is).
Try it from the command line first to make sure you've got it working properly before you try and call it from Flash :)
You can also use *********** Jugglor
http://www.jugglor.com
It has many other features too.
Download a FREE evaluation and try for yourself.
Northcode..
This is so simple and briliant - I used your center application - thanks !!!
It solved me a huge problem
Thanks again.
Northcode
Would it be possible to give command line arguments to the program listed in center.cmd? This way your tool could also be used as a wrapper to foil the MX problem of not allowing spaces in the exec string (for example, to open an html document).
Thanks,
R
Yes, and it's a simple change. Right now I test to make sure the EXE in the CMD file actually exists. If I remove that check you can add a command line!
I just uploaded a new version that allows you to pass command lines to the application that you're launching. You can grab it from http://www.northcode.com/misc/center.zip. It replaces the old version but anything you did with the old version will still work with this one. Enjoy :)
Hey, thanks for that change. One thing though, when I run a flash projector .exe from your center app, it loads with the caption "TRd ww: <full path of projector>" and there is no display, just the window border. Indeed it is centered. :)
Maybe this is just XP?
R
The little echo program was just for testing to see that the command line parameters were being passed properly. Echo.exe just displays a message box, it doesn't have a real "window" that center can position.
Note: Message boxes without parent windows (like in Echo) are supposed to be centered in the work area of the display (i.e. the part not covered by the taskbar).
i hate bringing old posts back from the dead, but i was looking for ways to center a flash exe and came across this thread..
i tried the northcode app and it works pretty well, but, in windows xp i am seeing some odd happenings..
everything works fine, but the projector.exe that is being called from center.cmd is randomly opening at 2 different resolutions.. one resolution is the project size, and the other is about 20 percent bigger.. both are centered perfectly...
its not a big deal, but unfortunately the slight increase in size jaggies my graphics and videos :(..
any advice?
- eddie -
What are you putting in the .CMD file and how are you calling the whole thing from Flash?
the .cmd file is in the same directory as "center.exe" and i put "projector.exe" in the .cmd file.. the projector is in the same directory as the cmd and center.exe files..
i'm calling it via autorun off of a cd, but that doesnt make a difference since simply double clicking the center.exe file with everything set up correctly yields varying sized projector windows...
very odd.. is there any way to hard code it to open at a certain size only?
thank you,
- eddie -
Center doesn't monkey with the size of your EXE, just the position. It obviously shouldn't be opening two copies either. Can you send me the SWF file that you're using? I'll convert it to an EXE here and test it on XP to see if I can reproduce your problem. Send files to [email protected]
I also download the center.exe file recommended by northcode. This works fine but some time window opens at the different sizes.
So pls let me know how can I overcome this problem?
Thanks.
Center.exe is a good one and it works very good for me. Thanks to you. I have one more problem is that how can I remove the border of the projector file. ncstart.exe from northcode helps me to remove the border from projector. How can I remove the border of my projector file and centre align the projector file. One more thing is that, how can I change the title of the projector file. It shows the caption of the flash player. Please help me.
The old ncstart (not the one currently in my blog) allows you to center an EXE and remove the border.
Try this...
example: start projector.exe centered on the screen without a border
ncstart.exe /e {startdir}\projector.exe /c /b
Quote:
The /e parameter allows you to specify the full path to an exe (exepath) file that you want to start. The exepath may use any of the following substitution strings as shortcuts to commonly used directories: {windir}, {sysdir}, {startdir} and {desktop}.
The /a parameter allows you to specify arguements that will be passed to the executable file that you are launching. The arguments may also use the same substitution as in the exepath.
The /w and /h parameters allow to specify the final width and height of the application window. These parameters must be used together.
The /x and /y parameters allow to specify the final position of the application window. These parameters must be used together and will override the /c option.
The /c parameter tells ncstart to center the application window on the desktop.
The /t parameter tells ncstart to make the application window a topmost window.
The /m parameter tells ncstart to maximize the application window at startup.
The /b parameter tells ncstart to make the application window borderless
{windir} - the windows folder, e.g. "c:\winnt" or "c:\windows"
{sysdir} - the windows system folder, e.g. "c:\winnt\system32" or "c:\windows\system"
{startdir} - the directory where ncstart is located
{desktop} - the current users desktop folder, e.g. "c:\documents and settings\tim\desktop"
Thank you for the fast reply. I tried ncstart.exe to remove the border and center the projector. But it failed to center the projector file but it removed the border. Now once again downloaded from the link provided and it too failed to center my projector file. I want to remove the border and center my projector file. Please help me. Thank you in advance.
ncstart is wonderful, I am currently using it to remove several borders from a set of executables on a project CD. /c for centering seems not to be functional (at least not for me) no matter which parameters I pair it with, if there was a way to remedy this or a way to be able to move a borderless window it would amazing. Any help is appreciated in advanced.
I'll have a look at this tody and see if there's anything wrong.
I can't seem to get the older version of ncstart to work with my project so I'm using centre.exe which is doing a brilliant job but I need to run it using autorun so that the CD runs on boot up. This won't seem to work. Please could you help :confused:
Dear Northcode -
I am using your center.exe program and experiencing the same problem as some other users. Sometimes my .exe will load at a smaller resolution. Sometimes I double click on the center.exe and it does not load at all.
I wonder if you have made an updated version, or had a look at others who have had this problem and found out why your program behaves in this way sometimes.
It is a great program, thank you so much for it.
If the application takes too long to start then center.exe "misses" the window. It doesn't wait forver (to avoid appearing hung) but if the application window doesn't appear until after the timeout then center never sees the window. The center application is REALLY old now.
I saw a post by a user with the same name as yours in the MDM support forums. If you're using Zinc then you don't need to use my center utility, you can do it with commands that Zinc supplies instead.
You also asked about Zinc's support of fscommands in that post... they don't support them. So you can't use fscommand "exec" or any of the other ones, AFAIK, but they should have Zinc commands that do something close to the same thing for most of the standard fscommands.
If you're having problems with Zinc you might want to check out SWF Studio as another alternative. you won't need to use fscommands with SWF Studio but we support them - it just means less work for you when you have to change your existing projector projects.
SWF Studio http://www.northcode.com
mProjector http://www.screentime.com
SWFKit http://www.swfkit.com
Jugglor http://www.jugglor.com
Zinc http://www.multidmedia.com
Hi Northcode
I have made those changes and my Flash Project (.exe) file opens in the center of the screen, however the issue i am now having is regardless of what my project screen size is i have a whit margin on the left and right.
Could you let me know how to fix this please.
Amar
Change the scale mode to "exact fit". However this may change the aspect ratio of your movie.
http://help.adobe.com/en_US/as3/dev/...0204-7e31.html
I'm also download this link.It will not happen problem