Notebook or Desktop

Everything else that doesn't fall into one of the other PB categories.
oridan
Enthusiast
Enthusiast
Posts: 128
Joined: Tue Oct 12, 2004 12:14 am
Location: Italy
Contact:

Notebook or Desktop

Post by oridan »

Hi,
Is possible detected if the computer is notebook or desktop?

Thanks
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

No.

Edit: You can probably detect if it has a battery.
oridan
Enthusiast
Enthusiast
Posts: 128
Joined: Tue Oct 12, 2004 12:14 am
Location: Italy
Contact:

Post by oridan »

Trond wrote:No.

Edit: You can probably detect if it has a battery.
But if the battery is disconnected… :cry:
Thanks however!
Character
Enthusiast
Enthusiast
Posts: 337
Joined: Mon Aug 07, 2006 3:51 pm
Location: Netherlands

Post by Character »

Are there no specific detectable hardware properties that are unique for notebooks?
(not 100% failsafe of course)
Cessante causa cessat effectus
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

You could of checked for mobile processors but they are being used in desktop's now so that is a non-starter.
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Trond wrote:No.

Edit: You can probably detect if it has a battery.
A server with UPS and communication software for this UPS also shows a battery in hardware management.
So not a solution...
merihevonen
Enthusiast
Enthusiast
Posts: 326
Joined: Mon Jan 01, 2007 7:20 pm

Post by merihevonen »

Just asking: Why would you want to know if the user is running the application in a notebook or desktop? What makes the difference for your application?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Berikco wrote:
Trond wrote:No.

Edit: You can probably detect if it has a battery.
A server with UPS and communication software for this UPS also shows a battery in hardware management.
So not a solution...
I know.

But you can check for an ACPI compatible lid switch. No desktop computers will have that, but a lot of laptop computers probably won't either.
oridan
Enthusiast
Enthusiast
Posts: 128
Joined: Tue Oct 12, 2004 12:14 am
Location: Italy
Contact:

Post by oridan »

merihevonen wrote:Just asking: Why would you want to know if the user is running the application in a notebook or desktop? What makes the difference for your application?
Simply this: my application must determine if the computer has the battery or no! :wink:
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

oridan wrote:
merihevonen wrote:Just asking: Why would you want to know if the user is running the application in a notebook or desktop? What makes the difference for your application?
Simply this: my application must determine if the computer has the battery or no! :wink:
Can I ask why?
Seems like a strange thing to need to know, in what way will a battery effect the program.
oridan
Enthusiast
Enthusiast
Posts: 128
Joined: Tue Oct 12, 2004 12:14 am
Location: Italy
Contact:

Post by oridan »

Derek wrote: Can I ask why?
Seems like a strange thing to need to know, in what way will a battery effect the program.
To detected the status battery: Status, Life Time, Life percent, AC Line status, Voltage, etc.
At start, my application detect if computer is desktop() or notebook():

Code: Select all

If Computer() = "Notebook"
  ;start
Else
  End
EndIf
bye :wink:
oridan
Enthusiast
Enthusiast
Posts: 128
Joined: Tue Oct 12, 2004 12:14 am
Location: Italy
Contact:

Post by oridan »

A simple solution: i use the Droopy’s Lib.

Code: Select all

If GetPowerStatus()
  MessageRequester("Status","Online")
  ; Here i continue with my program
Else
  MessageRequester("Status","Offline")
  ; Quit
EndIf
Ciao :D
merihevonen
Enthusiast
Enthusiast
Posts: 326
Joined: Mon Jan 01, 2007 7:20 pm

Post by merihevonen »

But I don't understand, if it's a battery-management program then I don't think any desktop user will download it if you have published it.. just choose a good name like "OridanBattery Pro" and a good slogan like "Manage your notebook's battery as easy as the ABC" :?:
oridan
Enthusiast
Enthusiast
Posts: 128
Joined: Tue Oct 12, 2004 12:14 am
Location: Italy
Contact:

Post by oridan »

merihevonen wrote:But I don't understand, if it's a battery-management program then I don't think any desktop user will download it if you have published it.. just choose a good name like "OridanBattery Pro" and a good slogan like "Manage your notebook's battery as easy as the ABC" :?:
It is true, is a battery-management program it and the user desktop will certainly not download it.
Thanks for tips :wink:
merihevonen
Enthusiast
Enthusiast
Posts: 326
Joined: Mon Jan 01, 2007 7:20 pm

Post by merihevonen »

You may use the name "OridanBattery" for the program if you like.. I don't even know where that came from :P
Ok.. I'll go and have a big mug of coffee :D
Post Reply