Jump to content

Report Help File Issues Here


guinness
 Share

Recommended Posts

_GUICtrlEdit_PosFromChar

Indicated 300. More than a character in the text.

Remarks

Returns the lower left corner of the symbol

$iIndex = 100
$aPos = _GUICtrlEdit_PosFromChar($hEdit, $iIndex)
_GUICtrlEdit_SetSel($hEdit, $iIndex, $iIndex+1)
_GUICtrlStatusBar_SetText($StatusBar, "X = " & $aPos[0])
_GUICtrlStatusBar_SetText($StatusBar, "Y = " & $aPos[1], 1)

_GUICtrlEdit_LineScroll, _GUICtrlEdit_Scroll

Missing preview event. Does not show function properties

For $i = 1 To 50
    $sText &= $i & @CRLF
Next
_GUICtrlEdit_SetText($hEdit, $sText)

_GUICtrlEdit_LineFromChar

$iIndex - counting from 1, @CRLF line break is counted as two characters.

$iRandom = Random(0, _GUICtrlEdit_GetTextLen($hEdit) - 1, 1)
_GUICtrlEdit_SetSel($hEdit, $iRandom-1, $iRandom)

_GUICtrlEdit_ReplaceSel

$hEdit = GUICtrlCreateEdit("", 2, 2, 394, 268, BitOR($ES_WANTRETURN, $WS_VSCROLL, $ES_NOHIDESEL))

Remove StatusBar

_GUICtrlMenu_...

WinWaitActive("[CLASS:Notepad]")
$hWnd = WinGetHandle("[CLASS:Notepad]")
Replace with

$hWnd = WinWaitActive("[CLASS:Notepad]")

_GUICtrlMenu_SetItemBitmaps

If either the hBitmapUnchecked or hBitmapChecked parameter is 0,

Send

@@StandardTable1@@

Add title to tables

_GUICtrlMenu_GetMenuDefaultItem

Determines whether to retrieve the menu items's identifer of it's position:

_GUICtrlMenu_MapAccelerator

Success: The zero based position of the item in the menu

Writeln("Open command ID: " & _GUICtrlMenu_MapAccelerator($hFile, "O"))

Edited by AZJIO
Link to comment
Share on other sites

No it doesn't. It looks different.

You must be looking at something else. Big grey box on white background is not different. It's asthetics. A lack of them.
Link to comment
Share on other sites

Somewhere between 3.3.8.1 and 3.3.9.5 the color of the tabs background changed. Looks ugly.

Posted Image

As I understand this isn't something I have done to the help file.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

_WinAPI_DrawIconEx

if the iWidth and iWidth parameters are set to zero. If this flag is not specified and iWidth and

iWidth are set to zero

_WinAPI_LoadShell32Icon, _WinAPI_DrawIconEx

#include <GUIConstantsEx.au3>
#include <WinAPI.au3>

$hGUI = GUICreate("Example", 400, 300)
GUISetState()

$hIcon = _WinAPI_LoadShell32Icon(4)
$hDC = _WinAPI_GetWindowDC($hGUI)
_WinAPI_DrawIconEx($hDC, 20, 40, $hIcon, 16, 16)
_WinAPI_ReleaseDC($hGUI, $hDC)
_WinAPI_DestroyIcon($hIcon)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

_WinAPI_DrawIcon

#include <GUIConstantsEx.au3>
#include <WinAPI.au3>

$hGUI = GUICreate("Example", 400, 300)
GUISetState()

$hIcon = _WinAPI_LoadShell32Icon(4)
$hDC = _WinAPI_GetWindowDC($hGUI)
_WinAPI_DrawIcon($hDC, 20, 40, $hIcon)
_WinAPI_ReleaseDC($hGUI, $hDC)
_WinAPI_DestroyIcon($hIcon)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

_WinAPI_CreateSolidBitmap, _WinAPI_LoadLibrary, _WinAPI_LoadBitmap

#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>

Opt('MustDeclareVars', 1)

_Main()

Func _Main()
    Local $iListView, $hListView, $hImage, $hModule, $hBitmap
    Local $exStyles = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES)

    GUICreate("Example", 400, 300)
    $iListView = GUICtrlCreateListView("", 2, 2, 394, 268, BitOR($LVS_SHOWSELALWAYS, $LVS_NOSORTHEADER, $LVS_REPORT))
    _GUICtrlListView_SetExtendedListViewStyle($iListView, $exStyles)
    $hListView = GUICtrlGetHandle($iListView)
    GUISetState()

    $hModule = _WinAPI_LoadLibrary(@SystemDir & 'shell32.dll')
    $hBitmap = _WinAPI_LoadBitmap($hModule, 230)

    $hImage = _GUIImageList_Create(20, 20)
    _GUIImageList_Add($hImage, _WinAPI_CreateSolidBitmap($hListView, 0xFF0000, 20, 20))
    _GUIImageList_Add($hImage, _WinAPI_CreateSolidBitmap($hListView, 0x00FF00, 20, 20))
    _GUIImageList_Add($hImage, $hBitmap)
    _GUICtrlListView_SetImageList($iListView, $hImage, 1)

    _GUICtrlListView_AddColumn($iListView, "Item", 120)

    _GUICtrlListView_AddItem($iListView, "Item 1", 0)
    _GUICtrlListView_AddItem($iListView, "Item 2", 1)
    _GUICtrlListView_AddItem($iListView, "Item 3", 2)

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main

_WinAPI_DrawEdge

Handle to the device context into which the icon or cursor is drawn

Edited by AZJIO
Link to comment
Share on other sites

He forgot to say thank you, tut tut JohnOne, where's your manners!?

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • 2 weeks later...

Hi.

This is addressing the help file topic covering the "Continueloop" Keyword Reference.

Logan recognized, that a sigle line statement with "continueloop" is not allowed within a If ... endif block.

To be more precisely: There has to be at least one other statement line after the continueloop in the if ... endif block.

Either this should be pointed out in the help file, or this constraint (bug?) should be fixed.

; this won't work
For $i = 1 To 10
If $i = 7 Then ContinueLoop
Next

; this won't work either
For $i = 1 To 10
$foo=42
If $i = 7 Then ContinueLoop
Next

; this *WILL* work
For $i = 1 To 10
If $i = 7 Then ContinueLoop
$foo=42
Next

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

This is a bug not a help file issue. If you search bug tracker you will see it has been fixed in the latest beta version. #2073

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • 2 weeks later...

The help file for WinTitleMatchMode said, the time I looked at it:

-1 to -4 = force lower case match according to other type of match

I suggest that this would be clearer from a user viewpoint:

-1 to -4 = case insensitive match

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Link to comment
Share on other sites

I suggest that the Tray functions would be easier for a novice if the help file said something like this:

#FUNCTION# ====================================================================================================================
; Name...........: TrayCreateItem
; Description ...: Creates a menuitem control for the tray
; Syntax.........:TrayCreateItem ( text [,parentID [, ixEntry [, fRadioItem]]] )

; Parameters ....: text - The text of the control
; $parentID - [optional] Control ID of parent menu (-1 if at first level). Default: -1
; $ixEntry - [optional] Index of insertion position
; |Default: -1 (new item is below previous item)
; fRadioItem - [optional] 0 for checkbox, 1 for radio (black circle) Default: 0 (like checkbox)
; Return values .: Success - Identifier (controlID) of the new tray menu item
; -Failure - 0
; Author ........:
; Modified.......:
; Remarks .......: If the text parameter is a blank string ( "" ) then a separator line is created
; +
; Behaviour of fRadioItem depends on value of Opt("TrayMenuModemode":
; +
; TrayMenuMode = 0, 1, or 5: item acts like checkbox or auto-radio
; +
; TrayMenuMode = 9 or 13: item acts like checkbox or manual radio
; +
; TrayMenuMode = 3 or 9: Set/clear checkbox/radio states by calling TrayItemSetState with
; $TRAY_CHECKED/$TRAY_UNCHECKED parameters
; +
; For modes 0, 1, 5:
; +
; - radio groups are delimited by separators and checkbox items
; +
; - clicking on one radio item checks it and unchecks others in the group
; +
; For modes 0, 1, 5, 9 and 13: clicking on a checked checkbox item unchecks it; clicking on an unchexked one unchecks it
; +
; Place the #NoTrayIcon directive at the top of your script to leave icon display to TraySetState.
; Related .......: TrayMenuMode, TrayItemSetState, TrayItemSetText, TrayGetMsg, TrayItemDelete, TrayItemSetOnEvent
; Link ..........:
; Example .......: Yes
; ===============================================================================================================================

This would replace all of the current help page, except for the examples.

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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