| Author |
Message |
Topic: long integer arithmetic library |
Dippy46
Replies: 12
Views: 1836
|
Forum: Scripts & Functions Posted: Fri Aug 17, 2007 7:43 am Subject: Long Integers |
@haichen
I must agree with Laszlo, I find using the Sort command a bit more elegant. Here's an extract from my function library.
MsgBox % SortLst("20051224105506,20080725130939,20 ... |
Topic: Help making GUI work inside a function |
Dippy46
Replies: 5
Views: 501
|
Forum: Ask for Help Posted: Thu Aug 02, 2007 7:11 pm Subject: Help making GUI work inside a function |
@ Daniel2
Excellent piece of coding...
@ SxFtSxInch
Quite the reverse. You need to tailor your code to match the template provided by Daniel2, which provides very nicely, the solution you req ... |
Topic: Calculating Age from two DateTime Stamps |
Dippy46
Replies: 30
Views: 1263
|
Forum: Ask for Help Posted: Fri Jul 27, 2007 10:47 pm Subject: TimeDateStamp |
@Skan
Yes I think the answer mainly lies in one of my previous statements.
Equates to: 839 days 7 hours 43 minutes 30 seconds
Absolutely Correct.
But where the problem begins is where ... |
Topic: Calculating Age from two DateTime Stamps |
Dippy46
Replies: 30
Views: 1263
|
Forum: Ask for Help Posted: Fri Jul 27, 2007 7:20 pm Subject: Calculating Age from two DateTime Stamps |
@Laszlo
The less accurate constants you refer to are those generally accepted by the astronomical community eg: NASA and by the world's foremost expert on the subject, namely 'Jean Meeus'. I assume ... |
Topic: convert value into minutes and seconds |
Dippy46
Replies: 6
Views: 271
|
Forum: Ask for Help Posted: Fri Jul 27, 2007 6:31 pm Subject: Min/Sec Problem |
@gr8
v:=42.967633,m:=Floor(v)
s:=Floor((v-m)*60)
MsgBox % m ":" s
OR as a Func
MsgBox % MinSec(42.967633)
MinSec ... |
Topic: Calculating Age from two DateTime Stamps |
Dippy46
Replies: 30
Views: 1263
|
Forum: Ask for Help Posted: Fri Jul 27, 2007 6:01 pm Subject: DateTimeStamp |
@Skan
@Skan
Ok here we go!
Of course if you needed to use the timestamp as I've provided with FormatTime then as you say the first digit would have to be a '9' see program below.
... |
Topic: Calculating Age from two DateTime Stamps |
Dippy46
Replies: 30
Views: 1263
|
Forum: Ask for Help Posted: Fri Jul 27, 2007 5:56 pm Subject: DateTimeStamp |
| @Laszlo , Glad you saw the light.... |
Topic: Calculating Age from two DateTime Stamps |
Dippy46
Replies: 30
Views: 1263
|
Forum: Ask for Help Posted: Fri Jul 27, 2007 11:04 am Subject: TimeDateStamp |
@Skan
Firstly some preamble. In astrology and astronomy the former being the forerunner of the latter, it is customary to use a unified system of measurement ie: for time Utc + delta T for ET and ju ... |
Topic: Help required on Bitwise operation |
Dippy46
Replies: 13
Views: 757
|
Forum: Ask for Help Posted: Tue Jun 19, 2007 12:29 pm Subject: Help required on Bitwise operation |
@ Skan
The short answer is any of the following:
no1 := 2147483776 ^ 0x80000000 ; hex way
no2 := 2147483776 ^ 2**31 ; use bit position
no3 := 2147483776 ^ 2147483648 ; ... |
Topic: HDD Activity Monitoring LED |
Dippy46
Replies: 19
Views: 5958
|
Forum: Scripts & Functions Posted: Tue Apr 03, 2007 4:00 pm Subject: HDD Activity Monitoring LED |
@All
Here's another take based on FloatLed
http://www.softpedia.com/get/System/Hard-Disk-Utils/FloatLED.shtml
_= 2007 04 03 Ver 1.0.46.10
_= ESC to exit program !
; add ini to remember ... |
Topic: A folder comparison script |
Dippy46
Replies: 4
Views: 441
|
Forum: Ask for Help Posted: Tue Mar 20, 2007 9:25 am Subject: A folder comparison script |
@bradglaser,
Quick + dirty solution, but fast
;; check for files that ARE on h:\ that are NOT on g:\
;; does NOT perform a copy ! only informs what WOULD be copied :)
Run ... |
Topic: File read performance |
Dippy46
Replies: 4
Views: 281
|
Forum: Ask for Help Posted: Tue Mar 20, 2007 8:52 am Subject: File read performance |
@Kal_Torak,
Try something along these lines.
#NoEnv ; <<<
SetBatchLines -1 ; <<<
WordsTyped=0
TimeTaken=0
i = 0
needle=| ; <<<
FileRead, MFile,C: ... |
Topic: Splitting an excel file into an array, other than .csv |
Dippy46
Replies: 3
Views: 321
|
Forum: Ask for Help Posted: Thu Mar 08, 2007 3:00 pm Subject: Splitting an excel file into an array, other than .csv |
@ Joshua,
Well, if you look at the csv produced by Excel, as Helpy rightly says, you'll find fields containg commas are enclosed in quotes.
This can of course be used to our advantage. So while ... |
Topic: Computer controlled switches |
Dippy46
Replies: 5
Views: 916
|
Forum: General Chat Posted: Thu Feb 22, 2007 2:35 pm Subject: Computer controlled switches |
@alrobnett,
It is correct that winxp does not allow direct access to control ports, this is the area covered by kernal mode drivers. A number of drivers are available on the net to provide the requ ... |
Topic: SIZEOF command against strings |
Dippy46
Replies: 6
Views: 220
|
Forum: Ask for Help Posted: Fri Feb 02, 2007 2:17 pm Subject: SIZEOF command against strings |
@Question,
Sizeof reports the amount of space allocated to a string NOT the amount being used. The equivalent AHK commnd is.
SIZEOF := VarSetCapacity(String)
Which of course i ... |
| |