Jump to content

Christmas-gift for jpm


Helge
 Share

Recommended Posts

This is just some stuff I stumbled over while I was scripting this Christmas,

and which I copied to a file....as I know jpm likes this kind of work.

The three first are typos, the rest are direct comments by me.. have to go !

Have a nice day !

HWnd Example :

- "Local $hWnd = WinGetHandle("Untitle - Notepad")"

(Tip : You should also add a Sleep or a WinWait after Run)

PixelSearch :

- "Performing a search of a region can be time consuming,

so use the smallest region you are able to reduce CPU load."

Default :

- "AutoIt will not detect such situation because too much performance penalty."

GUICtrlGetHandle :

- controlID is "optional".

BitRotate :

- shift is "optional".

FileDelete :

- Doesn't return 0 when failing to delete locked files.

GUI Reference :

- "Graphic" is missing in the list of supported controls in AutoIt.

_GUICtrlTabSetUnicodeFormat :

- There's a graphical bug in the example, at the "label0".

Link to comment
Share on other sites

  • Moderators

Are you sure you're not the 'Grinch' Helge?... :lmao: Nice Catches!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

This is just some stuff I stumbled over while I was scripting this Christmas,

and which I copied to a file....as I know jpm likes this kind of work.

The three first are typos, the rest are direct comments by me.. have to go !

Have a nice day !

HWnd Example :

- "Local $hWnd = WinGetHandle("Untitle - Notepad")"

(Tip : You should also add a Sleep or a WinWait after Run)

PixelSearch :

- "Performing a search of a region can be time consuming,

so use the smallest region you are able to reduce CPU load."

Default :

- "AutoIt will not detect such situation because too much performance penalty."

GUICtrlGetHandle :

- controlID is "optional".

BitRotate :

- shift is "optional".

FileDelete :

- Doesn't return 0 when failing to delete locked files.

GUI Reference :

- "Graphic" is missing in the list of supported controls in AutoIt.

_GUICtrlTabSetUnicodeFormat :

- There's a graphical bug in the example, at the "label0".

_GUICtrlTabSetUnicodeFormat

just add GUICtrlSetState($tab0,$GUI_SHOW) before the line GUISetState()

looks like the labels are on top of each other initially.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

This is just some stuff I stumbled over while I was scripting this Christmas,

and which I copied to a file....as I know jpm likes this kind of work.

The three first are typos, the rest are direct comments by me.. have to go !

Have a nice day !

HWnd Example :

- "Local $hWnd = WinGetHandle("Untitle - Notepad")"

(Tip : You should also add a Sleep or a WinWait after Run)

[\quote]

OK

Link to comment
Share on other sites

@SmOke_N: Nope, Grinch (isn't it Gretchen ?) is German only I believe...

or at least it's not in Norway.. Ich bin keine Gretchen deine Dumkopf !!

@jpm:

- Thanks.

- Nope, it's PixelSearch.

- It's in the documention for the Default-keyword.

- Yes, exactly...but the docs says otherwise.

- Same as above.

- You know that stupid XP-thingie, when it for some reason locks a file so you can't do

anything with it.... so I tried to FileDelete such a file, and it failed. THIS, is what I mean.

Btw, because my graphics-card got a constant cold in the Winter-season, I'm then forced

to do other things than gaming...this basically means a lot of Au3, so today I found another thing :

FileSaveDialog :

$var = FileSaveDialog( "Choose a name.", $MyDocsFolder, "Scripts (*.aut;*.au3)", 3)

(; option 3 = dialog remains until valid path/file selected)

(There's no option 3... it should be a combination of 1 and 2, but in the docs only 2 and 16

are listed...man, you must think I'm such a nitpicker :lmao:)

Link to comment
Share on other sites

@SmOke_N: Nope, Grinch (isn't it Gretchen ?) is German only I believe...

or at least it's not in Norway.. Ich bin keine Gretchen deine Dumkopf !!

@jpm:

- Thanks.

- Nope, it's PixelSearch.

- It's in the documention for the Default-keyword.

- Yes, exactly...but the docs says otherwise.

- Same as above.

- You know that stupid XP-thingie, when it for some reason locks a file so you can't do

anything with it.... so I tried to FileDelete such a file, and it failed. THIS, is what I mean.

Btw, because my graphics-card got a constant cold in the Winter-season, I'm then forced

to do other things than gaming...this basically means a lot of Au3, so today I found another thing :

FileSaveDialog :

$var = FileSaveDialog( "Choose a name.", $MyDocsFolder, "Scripts (*.aut;*.au3)", 3)

(; option 3 = dialog remains until valid path/file selected)

(There's no option 3... it should be a combination of 1 and 2, but in the docs only 2 and 16

are listed...man, you must think I'm such a nitpicker :lmao:)

For Pixelsearch which version of autoit are you refering too. The beta has been changed by Larry a couple of week ago

for the filedelete if you have a script that reproduce it I will be glad to solve the problem. I cannot find it just rereading the code

Thanks ;)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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