Jump to content

Recommended Posts

  • Administrators
Posted

Yeah, Random.  Oops. 

So Random.txt is what gets edited and that drives the html?  That's why the superscripting disappears.  :whistle: Ok I can work on it.

Yeah, it works great and it stops any consistency errors with different people have different html styles. It's also a useful test that I've compiled AutoIt correctly (as autoit is used to run these scripts B) )


 

  • Replies 86
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

:whistle: In the ..\AutoIt3\Extra\Editors\TextPad\_install_syntax_files.au3, there is a little bug: $anwer v $answer (see below)

Line 33: $anwer = MsgBox(4096+4, "TextP

Line 34: If $answer = 7 Then Exit

Posted

Opt is mentioned only as an aside in the AutoItSetOption topic .. should appear in the Function Reference topic, even if it links to the same AutoItSetOption topic from there.

It's also missing from the TextPad SYN file, which is kindly included with the install.

Posted (edited)

Sluggie .. (?)

You may also want to update the "..\AutoIt3\Extra\Editors\TextPad\Manual Install and Notes.htm" file regarding setting up Context Sensitive Help for AU3 in TP .. with a simplified method that is independent of KeyHH.exe :whistle:

Edited by trids
  • Developers
Posted

Sluggie .. (?)

You may also want to update the "..\AutoIt3\Extra\Editors\TextPad\Manual Install and Notes.htm" file regarding setting up Context Sensitive Help for AU3 in TP .. with a simplified method that is independent of KeyHH.exe  :whistle:

Trids, I have submited it to Jon a while ago together with the Crimson description, and updated it this week with the path to find keyhh.

Since its your base doc, why don't you take the version in the Extras and and sent an updated one to Jon ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Since its your base doc, why don't you take the version in the Extras and and sent an updated one to Jon ?

Sure - no problem :whistle:
Posted

Noticed a (very) small error within the current helpfile for BitAND:

Example

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0110 = 0101

...Should read:

Example

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0111 = 0101

  • Administrators
Posted

Noticed a (very) small error within the current helpfile for BitAND:

Example

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0110 = 0101

...Should read:

Example

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0111 = 0101

Oops


 

Posted

Noticed a (very) small error within the current helpfile for BitAND:

Example

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0110 = 0101

...Should read:

Example

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0111 = 0101

Actually it should be

$x = BitAnd(12, 6) == 4 because 1100 AND 0110 = 0100

And in BitOr

$x = BitOr(12, 6) == 14 because 1100 AND 0110 = 1110

I meant to use the same numbers when I came up with the examples to show what happens for each bit pattern (00, 01, 10, 11).

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Posted (edited)

I'll have one more batch of fixes: Mostly cross-referenceing things like FileGetTime and FileSetTime but also important fixes.

Note on Random Function: We need an example that generates a random leter of the alphabet!

Suggest for UDFs:

Function: _ColorGetRed( $color )

Description: Get the red component of a given color.

Parameter(s): $Color - The RGB color to work with (numeric).

Requirement(s): should you put #include <Color.au3> here?

....

That's all for now

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Posted (edited)

Note on Random Function:  We need an example that generates a random leter of the alphabet!

Would this work?

;Randomly pick an integer between 1 and 26
$value = Int(Random(1, 27))

;Randomly pick case of the resulting letter
IF Random(0,1) < .51 Then
  ;Assigns uppercase value to $letter
   $letter = (64 + $value)
Else
  ;Assigns lowercase value to $letter
   $letter = (96 + $value)
EndIf

;Display the result
MsgBox(4096, "Result", "The random letter is '" & Chr($letter) & "'")

Edit: Changed maximum value in first random statement to 27, after realizing that 26 would never be a result.

Note: It may be less confusing to use the code: $value = Round(Random(1,26))

Edited by Bartokv
  • Administrators
Posted

I was thinking of something a bit simpler:

$randomUpperCase = Chr( Random(Asc("A"),Asc("Z") )

$randomLowerCase = Chr( Random(Asc("a"),Asc("z") )

You'll never get Z with that.


 

Posted

I was thinking of something a bit simpler:

$randomUpperCase = Chr( Random(Asc("A"),Asc("Z") )

$randomLowerCase = Chr( Random(Asc("a"),Asc("z") )

Unfortunately "Z" nor "z" would never be returned as a result... I realized this after I made my initial post, since the upper limit is never actually returned as a value of the random function.

However, the following code would work:

$randomUpperCase = Chr( Round(Random(Asc("A"),Asc("Z")))
$randomLowerCase = Chr( Round(Random(Asc("a"),Asc("z")))
Posted

D'oh! Forgot the final parenthesis:

$randomUpperCase = Chr(Round(Random(Asc("A"),Asc("Z"))))
$randomLowerCase = Chr(Round(Random(Asc("a"),Asc("z"))))

:iamstupid:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...