Custom Query


Show under each result:

Results (133 - 135 of 3841)

Ticket Resolution Summary Owner Reporter
#1045 Rejected ConstantsAll.au3 or GUIConstantsAll.au3 - new include file/files Gary Zedna

ConstantsAll.au3 or GUIConstantsAll.au3

  • new include file/files containing include statement for all *contants*.au3 files

I have such file on all my computers where I use AutoIt. In my case it has name GUIConstants.au3.

It has these advantages:

  • backward compatibility for older scripts using just #include <GUIConstants.au3>
  • for new scripts we don't need to think what include files are needed for what constants

There is no problem when we use scripts directly from Scite - it's quick also with all these inlude files There is no problem when we compile scripts because we can simply use Obfuscator /striponly

Note this is "only" for constants and not for all Autoit's include files.

Here is attached such include file

#1073 Works For Me _FileListToArray on *.lnk files Gary michael.klinteberg@…

_FileListToArray return *.lnk files as folders if the link point to a folder. Should not this be threated as a file?

The file.au3 version is 33.0

#include <file.au3>
#include <array.au3>
Local $s = "C:\Users\Default\AppData\Local\"
local $a
; _FileListToArray also return *.lnk files as folders
$a = _FileListToArray($s,"*",2)
_ArrayDisplay($a,"Dirs found")

$a = _FileListToArray($s,"*",1)
_ArrayDisplay($a,"Files found")
#1081 Rejected Consider this code for include: waiting for the clipboard to fill. Gary jondemarks@…

This code block clears the clipboard and waits until it is filled again. It may need to be modified to come inline with your standards, this is just one way of doing it.

Seems to be good for core functionality.

Func _Clipboard_Wait()
	$thisClip = 0
	While StringLen($thisClip) == 0
		$hMemory = _ClipBoard_GetDataEx($CF_TEXT)
		$tData = DllStructCreate("char Text[32]", $hMemory)
		$thisClip = DllStructGetData($tData, "Text")
		$hMemory = 0
		$tData = 0
Note: See TracQuery for help on using queries.