Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the Mouse Mileage Tracker 2005
#11
Quote:Fortunately mouse has no oil to be changed at a fixed mileage Big Grin

If you have a boy mouse, the rollers need cleaning every so often.... lol

:lol:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#12
Man, it's like I gotta spell out everything:
Code:
#include "windows.bi"

xPixelsPerInch = GetDeviceCaps(GetDC(0), LOGPIXELSX)
yPixelsPerInch = GetDeviceCAps(GetDC(0), LOGPIXELSY)

Print xPixelsPerInch
Print yPixelsPerInch

Sleep
That works no matter what resolution your are in, or what monitor size you have.
Reply
#13
Jofers, How does the function work out the pixels per inch? I looked at the msdn page and it does say something about screen size in mm, But how does it get that info? Or am I missing the point here...

And on a side note, any clue why I cant access qb45.com? Timeout error everytime.
Reply
#14
Quote:
Code:
IF INKEY$ = CHR$(255) + "X" THEN EXIT DO

..or..

Code:
LOOP UNTIL INKEY$ = CHR$(255) + "X"

This will not work any more with the latest testing version! After a poll, the CHR$(255)+"X" (SHIFT+F5) was changed to CHR$(255)+"k" (ALT+F4).

Regards,
Mark
Reply
#15
Display manufacturers build in data about the monitor (dimensions, etc).

I wish I could help you on qb45. I can access it fine.
Reply
#16
Quote:This will not work any more with the latest testing version! After a poll, the CHR$(255)+"X" (SHIFT+F5) was changed to CHR$(255)+"k" (ALT+F4).

Regards,
Mark

:lol: Thanks for the heads up,. :wink: ..
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#17
Quote:Man, it's like I gotta spell out everything:
Code:
#include "windows.bi"

xPixelsPerInch = GetDeviceCaps(GetDC(0), LOGPIXELSX)
yPixelsPerInch = GetDeviceCAps(GetDC(0), LOGPIXELSY)

Print xPixelsPerInch
Print yPixelsPerInch

Sleep
That works no matter what resolution your are in, or what monitor size you have.

thanks for that tip jofers. I will add it to my program to make it more useful. 8)
Reply
#18
Quote:
Antoni Gual Wrote:Fortunately mouse has no oil to be changed at a fixed mileage Big Grin

If you have a boy mouse, the rollers need cleaning every so often.... lol

:lol:

that's the funniest thing i've read in a while! w00t

oz~
Reply
#19
Couple things:

Man you need to add atleast a sleep 10 in there because that pushes my comp usage up to 100

Would it take much more speed it if you saved it every loop instead only if you quit.

Does anyone know of how to put your prog in the sys tray. I could use that for several of my other progs
his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)