Droopy's Lib

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Fixed/updated for next version: GetFileVersion() constants, AboutBox() (-1 parameters also)

@chi: ChangeDisplaySettings() works fine on my system - refresh rate included.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Post by chi »

hmm, maybe it´s my vga? got an ati x700 64mb...
thx for your respond anyway ;)
User avatar
Randy
User
User
Posts: 29
Joined: Sat Sep 30, 2006 11:36 pm
Location: Atlanta, Georgia

Duplicate AboutBox Error

Post by Randy »

Hi all,

I've installed version 1.31.13 and it is telling me that I have already got AboutBox() in Droopy and in Droopy leading me to believe that I have two libraries but I don't see any others. I've even done a file search and this is the only one that turns up.

It may not be the library that's causing the problem but something I've done. Does anyone have any ideas?

Thanks,

Randy
Maybe it's just a bunch of stuff that happens -- Homer Simpson
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

can u post the exact text of the error box?

check that you do not have any old versions still installed (this version has all lib files named Droopy, older versions had differing names.)

also please note that this release is only for PB 4.20. (as you did not specify which PB version, i thought it worth mentioning)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Randy
User
User
Posts: 29
Joined: Sat Sep 30, 2006 11:36 pm
Location: Atlanta, Georgia

Here it is...

Post by Randy »

Duplicated library command: AboutBox() (in libraries Droopy and Droopy)

I'm running 4.20. However, it's good to ask these questions because I've obviously done something wrong.

What would the other libraries have been named? I have four (including this one) in the UserLibraries folder. JHGadget_400, PureRESIZE, ScintillaStaticFull, and of course, droopy (8/18/2008).

Thanks for your efforts, there are definitely some utilities I could use within this library... if I could just get PureBasic working again. :lol:

Randy
Maybe it's just a bunch of stuff that happens -- Homer Simpson
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

hmmm... interesting situation...

open cmd (start>run>type cmd>ok) - the following presumes you know some about cmd... (if u dont, follow every command with a press of the enter key)

type cd c:\Program Files\purebasic (change this if PB is installed elsewhere)
type dir /s droopy > droopy.txt
type notepad droopy.txt

copy and paste the contents of the file into a post
then type del droopy.txt
then close cmd


the contents of the file should look something like this:
Volume in drive C has no label.
Volume Serial Number is C05B-3B45

Directory of C:\Program Files\PureBasic4.20\PureLibraries\UserLibraries

03/10/2008 09:12 PM 102,437 droopy
1 File(s) 102,437 bytes

Directory of C:\Program Files\PureBasic4.20\SubSystems\UserLibThreadSafe\PureLibraries

03/10/2008 09:11 PM 105,301 droopy
1 File(s) 105,301 bytes

Directory of C:\Program Files\PureBasic4.20\SubSystems\UserLibUnicode\PureLibraries

03/10/2008 09:11 PM 103,181 droopy
1 File(s) 103,181 bytes

Directory of C:\Program Files\PureBasic4.20\SubSystems\UserLibUnicodeThreadSafe\PureLibraries

03/10/2008 09:12 PM 106,129 droopy
1 File(s) 106,129 bytes

Total Files Listed:
4 File(s) 417,758 bytes
0 Dir(s) 6,631,890,944 bytes free
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Frontier
User
User
Posts: 74
Joined: Thu Dec 22, 2005 2:43 pm
Location: Chios, Greece
Contact:

Post by Frontier »

Thank you for supporting this great library.

Any chance to see a PB 4.30 compiled version soon?
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Frontier wrote:Any chance to see a PB 4.30 compiled version soon?
when the final comes out; for beta use you can just do an includefile on droopy.pb
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Post by Sveinung »

The command RegGetValue is inaccurate when returning #REG_BINARY.

Orginal data was: 00,35,15,0A,8A,37

Value returned was: 002515A8A370

It removed the 0 from the hex value 0A and shifted the whole string left.

This solved the problem for me

Code from RegGetValue procedure

Code: Select all

Case #REG_BINARY 
          BinaryBytes=1024
          *RegBinary=AllocateMemory(BinaryBytes) 
          GetHandle = RegQueryValueEx_(hKey, ValueName, 0, @lType, *RegBinary, @BinaryBytes) 
          If GetHandle = 0 ; SUCCESS
            GetValue=""
            For i = 0 To (BinaryBytes-1 )
              Temp3=PeekB(*RegBinary+i)&$FF
              ;If Temp3<10 : GetValue+"0" : EndIf <<< removed this one
              If Len(Hex(Temp3))>1
                GetValue+ Hex(Temp3)
              Else
                GetValue+ "0"+Hex(Temp3)
              EndIf
            Next 
            FreeMemory(*RegBinary)
          EndIf

Regards
Sveinung
KIKI
Enthusiast
Enthusiast
Posts: 145
Joined: Thu Dec 28, 2006 11:49 am
Location: FRANCE

Post by KIKI »

Were can i download a new version for PB 4.30 final ?
Thanks,
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

KIKI wrote:Were can i download a new version for PB 4.30 final ?
Thanks,
Sorry, but "when" would be a more useful question.
It will probably be released by the weekend - as I have just got a new computer (and will now be able to make an x64 version of the lib), and I am still in the process of setting it up.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

lexvictory wrote:It will probably be released by the weekend
guess i spoke too soon - I needed the new version sooner than i thought :lol:
See the announcement topic for details.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

How do you use:

Code: Select all

ImpersonateUserRunas(CommandLine.s,Argument.s) 
from the lib? Is there an example for it?
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

SFSxOI wrote:How do you use:

Code: Select all

ImpersonateUserRunas(CommandLine.s,Argument.s) 
from the lib? Is there an example for it?
See Library\Impersonation in the help file
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Post by Sveinung »

The 'Microsoft OS -> Path' command PathAdd() doesn't work.
Getting an 'Invalid memory access'.

Will test more commands later

Regards
Sveinung
Post Reply