AZJIO Posted October 1, 2012 Share Posted October 1, 2012 (edited) _GUICtrlEdit_PosFromCharIndicated 300. More than a character in the text.RemarksReturns 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_ScrollMissing preview event. Does not show function propertiesFor $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_SetItemBitmapsIf either the hBitmapUnchecked or hBitmapChecked parameter is 0,Send@@StandardTable1@@Add title to tables_GUICtrlMenu_GetMenuDefaultItemDetermines whether to retrieve the menu items's identifer of it's position:_GUICtrlMenu_MapAcceleratorSuccess: The zero based position of the item in the menuWriteln("Open command ID: " & _GUICtrlMenu_MapAccelerator($hFile, "O")) Edited October 4, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 8, 2012 Share Posted October 8, 2012 Somewhere between 3.3.8.1 and 3.3.9.5 the color of the tabs background changed. Looks ugly. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
trancexx Posted October 9, 2012 Share Posted October 9, 2012 No it doesn't. It looks different. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 9, 2012 Share Posted October 9, 2012 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
AZJIO Posted October 9, 2012 Share Posted October 9, 2012 You probably are using a third-party Viewer for chm files. My other projects or all Link to comment Share on other sites More sharing options...
AZJIO Posted October 9, 2012 Share Posted October 9, 2012 guinnessHelpfile - Look at the examples that I reworkedLook AutoIt3-help through translate.google: keyword, functions, UDF, CustomUDFs My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted October 9, 2012 Author Share Posted October 9, 2012 Somewhere between 3.3.8.1 and 3.3.9.5 the color of the tabs background changed. Looks ugly.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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
trancexx Posted October 10, 2012 Share Posted October 10, 2012 Of course not, you can't do that. It was me. It's the byproduct of enabled visual styles for common controls. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
AZJIO Posted October 10, 2012 Share Posted October 10, 2012 (edited) _WinAPI_DrawIconExif the iWidth and iWidth parameters are set to zero. If this flag is not specified and iWidth andiWidth 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_LoadBitmapexpandcollapse popup#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_DrawEdgeHandle to the device context into which the icon or cursor is drawn Edited October 10, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
JohnOne Posted October 18, 2012 Share Posted October 18, 2012 1 - The size of the download (this may not always be present).Perhaps could specify that the size in in bytes? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted October 19, 2012 Share Posted October 19, 2012 Right away Sir! ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
JohnOne Posted October 19, 2012 Share Posted October 19, 2012 Not soon enough. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted October 19, 2012 Share Posted October 19, 2012 Thank you Sir! ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
JohnOne Posted October 19, 2012 Share Posted October 19, 2012 Nice job. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted October 19, 2012 Share Posted October 19, 2012 Dammit! I have no responce now. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
guinness Posted October 19, 2012 Author Share Posted October 19, 2012 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
rudi Posted October 29, 2012 Share Posted October 29, 2012 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 NextRegards, Rudi. jvanegmond 1 Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
guinness Posted October 29, 2012 Author Share Posted October 29, 2012 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
c.haslam Posted November 6, 2012 Share Posted November 6, 2012 The help file for WinTitleMatchMode said, the time I looked at it:-1 to -4 = force lower case match according to other type of matchI 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 More sharing options...
c.haslam Posted November 6, 2012 Share Posted November 6, 2012 I suggest that the Tray functions would be easier for a novice if the help file said something like this:expandcollapse popup#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 More sharing options...
Recommended Posts