Search found 25 matches

by b1be
Fri Oct 13, 2023 7:53 am
Forum: Announcement
Topic: PureBasic 6.03 LTS is released !
Replies: 184
Views: 71894

Re: PureBasic 6.03 LTS is released !

Hello,

Windows Installers are not signed. :/

Working as expected, but WindowsDefender SmartScreen is nagging.

Thank you.

Link to Image
by b1be
Tue Aug 08, 2006 8:50 pm
Forum: Windows
Topic: Proper Kill (Process) by ID or Name
Replies: 0
Views: 2775

Proper Kill (Process) by ID or Name

Proper Kill (Process) by ID or Name

#TH32CS_SNAPHEAPLIST = $1
#TH32CS_SNAPPROCESS = $2
#TH32CS_SNAPTHREAD = $4
#TH32CS_SNAPMODULE = $8
#TH32CS_SNAPALL = #TH32CS_SNAPHEAPLIST | #TH32CS_SNAPPROCESS | #TH32CS_SNAPTHREAD | #TH32CS_SNAPMODULE
#TH32CS_INHERIT = $80000000
#INVALID_HANDLE_VALUE = -1
#MAX ...
by b1be
Sat Aug 05, 2006 3:53 pm
Forum: Coding Questions
Topic: Faster file handling
Replies: 21
Views: 4262

you might try PureFile.

havent tested it
by b1be
Thu Aug 03, 2006 9:01 pm
Forum: Coding Questions
Topic: WriteByte until FreeDiskSpace = 0 byte
Replies: 15
Views: 2988

Make your counter a Quad
Quad .q 8 Bytes Length -9223372036854775808 to +9223372036854775807

a.q=590254079997
Repeat
a=a+1
Debug a
Until a=590254080000

P.S.:
Yes it does fill free disk space to 0 bytes, but I can't use it because it doesn't fill free disk space with 00's

What is the ...
by b1be
Thu Aug 03, 2006 7:35 pm
Forum: Coding Questions
Topic: WriteByte until FreeDiskSpace = 0 byte
Replies: 15
Views: 2988

Procedure CreateFilledFile(Name.s, fsize.q)
Protected file.l = CreateFile(#PB_Any, Name)
If file
If fsize<=0
CloseFile(file)
ProcedureReturn #True
Else
FileSeek(file, fsize-1)
WriteByte(file, 0)
CloseFile(file)
ProcedureReturn #True
EndIf
EndIf
EndProcedure ...
by b1be
Wed Aug 02, 2006 12:36 pm
Forum: Coding Questions
Topic: WriteByte until FreeDiskSpace = 0 byte
Replies: 15
Views: 2988

this may help

http://www.purebasic.fr/english/viewtopic.php?p=152551#152551

but of course, you must determine how much FREE SPACE do you have on the drive, exceeding size with 1 byte will produce ZeroFile (0 Bytes)


quick test

Procedure.q GetDiskSpace(drive$,type$)
Value.q=-1
If ...
by b1be
Fri Jul 28, 2006 7:31 pm
Forum: Coding Questions
Topic: Midi Monitor
Replies: 41
Views: 31569

thanks ... nice.. :D
by b1be
Fri Jul 14, 2006 11:11 am
Forum: Tricks 'n' Tips
Topic: List of running processes...
Replies: 29
Views: 18148

#TH32CS_SNAPHEAPLIST = $1
#TH32CS_SNAPPROCESS = $2
#TH32CS_SNAPTHREAD = $4
#TH32CS_SNAPMODULE = $8
#TH32CS_SNAPALL = #TH32CS_SNAPHEAPLIST | #TH32CS_SNAPPROCESS | #TH32CS_SNAPTHREAD | #TH32CS_SNAPMODULE
#TH32CS_INHERIT = $80000000
#INVALID_HANDLE_VALUE = -1
#MAX_PATH = 260
#PROCESS32LIB = 9999 ...
by b1be
Mon Jul 10, 2006 11:20 am
Forum: Tricks 'n' Tips
Topic: List of running processes...
Replies: 29
Views: 18148

#TH32CS_SNAPHEAPLIST = $1
#TH32CS_SNAPPROCESS = $2
#TH32CS_SNAPTHREAD = $4
#TH32CS_SNAPMODULE = $8
#TH32CS_SNAPALL = #TH32CS_SNAPHEAPLIST | #TH32CS_SNAPPROCESS | #TH32CS_SNAPTHREAD | #TH32CS_SNAPMODULE
#TH32CS_INHERIT = $80000000
#INVALID_HANDLE_VALUE = -1
#MAX_PATH = 260
#PROCESS32LIB = 9999 ...
by b1be
Fri Jul 07, 2006 2:20 pm
Forum: Coding Questions
Topic: Round robin calculation for Float
Replies: 13
Views: 2071

i cant understand either .. but ... why poke?

Code: Select all

Repeat 
  y.f=x.l ;?? 
  Debug y ; 0.0 0.0 0.0 0.0 0.0 0.0 
  ; Calculation program 
  x+1 
Until x=0
I want to output all numerical values to be able to imagine Float.
you mean to transform a number from long (or any) to float?
by b1be
Fri Jul 07, 2006 1:28 pm
Forum: Tricks 'n' Tips
Topic: CreateFilledFile (CreateSizedFile)
Replies: 7
Views: 3342

none taken ... i still find this usefull tip.. and thanks for posting

Procedure CreateFilledFile(Name.s, fsize.q)
Protected file.l = CreateFile(#PB_Any, Name)
If file
If fsize<=0
CloseFile(file)
ProcedureReturn #True
Else
FileSeek(file, fsize-1)
WriteByte(file, 0)
CloseFile(file ...
by b1be
Fri Jul 07, 2006 12:56 pm
Forum: Tricks 'n' Tips
Topic: CreateFilledFile (CreateSizedFile)
Replies: 7
Views: 3342

CreateFilledFile (CreateSizedFile)

Code updated For 5.20+

Procedure CreateFilledFile(Name.s,fsize.q)
CreateFile(0,Name)
FileSeek(0,fsize-1)
WriteByte(0,0)
CloseFile(0)
EndProcedure Test CreateFilledFile("Temp.temp",123) Should create "Temp.temp" with exact size of 123Bytes

dont know if was posted/or was in help ... but it's ...
by b1be
Sun Mar 05, 2006 11:33 pm
Forum: Coding Questions
Topic: GetHostName - HELP! (Winsock problem)
Replies: 6
Views: 2582

thank you ... LuCiFeR[SD] .. works ...
@Shannara if your question was addressed to me .. well This code is not mine... forgot to mention that i got it from this forum ... :P ... a long time ago...
by b1be
Sun Mar 05, 2006 2:33 pm
Forum: Coding Questions
Topic: GetHostName - HELP! (Winsock problem)
Replies: 6
Views: 2582

GetHostName - HELP! (Winsock problem)

WinsockFunctions.pb


Declare AcceptConnection(sck)
Declare AssignSocketIndex()
Declare CheckHostType(host$)
Declare CloseSocket(sck.l)
Declare ConnectTask(sck)
Declare ConnectTCP(host$,port.l,thrRes)
Declare CreateSocket(ProtocolType.l)
Declare FindSocketIndex(sck)
Declare.s GetHostName(h ...
by b1be
Wed Nov 02, 2005 1:56 pm
Forum: Tricks 'n' Tips
Topic: WebGadget: Directly insert code and catch link clicks.
Replies: 79
Views: 48092

aaaaaaa... back on topic ... how can i make this code to work on more than one webgadget? ...

Edit:
My problem lies here
->Shared<- WebGadget_Document.IHTMLDocument2_FIXED
on Webgadget_Open/Write/Close Procedures

i tried Unsucessfully with LinkedLists .. (and that's kind'a what i need)

2nd ...