| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Jan 24, 2006 3:51 pm Post subject: I need a way to change WinXP video from 32bit to 16bit |
|
|
I use a map editor that only works on 16 bit mode, but I use 32bit most the time, so this would save me a lotta time and pain doing it with the (right click) mouse (desktop display settings) way.
So I really really need a way to change WinXP video 32bit to 16bit settings and vice versa by way of VDS5 code or DLL/ DSU anything..
I been trying to accomplish this for a long time.
Thanks in advance and appreciate your reading this also
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Jan 24, 2006 6:35 pm Post subject: |
|
|
You'd have to use the ChangeDisplaySettings API Function, which takes a huge DEVMODE structure.
Could be done in a DLL pretty easily, but I wouldn't do it in VDS.
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Jan 24, 2006 8:18 pm Post subject: |
|
|
Give this DLL a try, for now it's attached to this post.
[UPDATE] New version attached to post below [UPDATE]
_________________ -Sheep
My pockets hurt...
Last edited by SnarlingSheep on Thu Jan 26, 2006 4:38 am; edited 1 time in total |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Jan 24, 2006 9:56 pm Post subject: |
|
|
How you been SnarlingSheep
Did you write that DLL today? wow !!!!! fast and super-good, worked perfect, better than ever dreamed
Only thing I did wrong though I forgot to change the example from 800 to 1024, had to re-arrange my 99 desktop icons, looked looks like a tornado hit - hehe (but I know that was my fault - lol) By the way is there a way to save 1024 icon arrangements in XP that you know of right off the top of that massive brain enclosure of yours
Thanks for that awesome DLL - weeeeeeeee
That made my decade...
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Jan 25, 2006 2:58 am Post subject: |
|
|
lol, yep wrote that today.
As for saving icon positions, I'm not sure of a way other than this app that I use:
Restore Desktop
It adds 2 items to the desktop context menu, Save Desktop and Restore Desktop. Doesn't always put every last icon in it's saved position, but it'd probably fix 90 of those 99
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Jan 25, 2006 11:36 am Post subject: |
|
|
Nice
WOW - If I was an athiest I would start thinking your GOD
That Restore Desktop works better than perfect. (Thankyou very much!)
Your DLL works perfect except 1 tiny little bug thats prolly a typeO or timing thingy.
Its when I come back to 32bit 1024x768, it forgets to set the 32bit part.
If I REM out (setdisplay res,1024,768) the 32bit works perfectly.
So Right now I'm doing them manually separately.
I guess I could make each thing in its own EXE and run the modes from my main VDS5 EXE program, haven't tried that yet.
Any ways, there is no complaning above, just thought you'd like to know.
Below is how I have them written, maybe its my fault(usually is):
| Code: | external C:\v5vds\dlls\projects\vdsdisplaysettings.dll
#define command,setdisplay
info This takes a few seconds "-" be patient please".."
setdisplay color,32
info Bit-Depth is now: 32
setdisplay res,1024,768
info Resolutions is now: 1024x768
EXIT |
I was wondering, can you walk on water deeper than your height?
Thanks again greatly SnarlingSheep
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Jan 25, 2006 1:03 pm Post subject: |
|
|
According to the help file, that is how it's supposed to work...
Cool dll... I'll be able to use this for something thats been plaguing me for a long time!
Hooligan
_________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Jan 25, 2006 4:22 pm Post subject: |
|
|
Smart of me not to try the example I gave with the DLL...
Here the first command works but not the second, I'm guessing because Windows is still switching modes at the time of the second one. Although I did try adding a 'wait 3' in between them without success, it may need a bit longer.
I will have to look into it later on today.
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Jan 25, 2006 4:46 pm Post subject: |
|
|
No Problem
I tried up to Wait "7" hours ago, but you can try, maybe I missed something.
GoodLuck..
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Jan 26, 2006 4:40 am Post subject: |
|
|
Bugs should be worked out now, I also added a function to return the current bit-depth. Check the readme.
New version is attached.
| Description: |
|
 Download |
| Filename: |
VDSDisplaySettingsDLL.zip |
| Filesize: |
3.29 KB |
| Downloaded: |
1487 Time(s) |
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Jan 26, 2006 8:04 am Post subject: |
|
|
Great,
Sounds gooder than Goodest.
I downloaded it and disposed of the old one.
I'll check it out tommorrow, its late here now.
Who should I talk to or try DLL etc.. for drawing in a VDS program?
Thanks a kaaZillion...
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Jan 26, 2006 7:37 pm Post subject: |
|
|
I think it'd be pretty difficult to write a dll for what you want.
From what it looks like you need, it'd have to take a bunch of positions for the white and gray parts of the image, and then write a greyscale bitmap.
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Jan 26, 2006 11:29 pm Post subject: |
|
|
Well, I could be real happy just having simple lines drawn on my main dialog for now. (wouldnt expect more than that - then maybe in a year or so think of something for it).
Exporting it or printing it out may be easier than we think right now.
Would be plenty to get started for now...
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Fri Jan 27, 2006 7:42 am Post subject: |
|
|
I really haven't followed this thread, and I'm kinda busy right now, but Mac's VDSUG has drawing abilities
if that's what ya need.
Greetz
Dread
_________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Jan 30, 2006 4:01 pm Post subject: |
|
|
Thanks doc
I knew I read it somewheres
I'll check it out in the near future and see if it will do the job.
Appreciate your reading and helping..
cheers
|
|
| Back to top |
|
 |
|