All Activity
- Today
-
CYCho reacted to a post in a topic: How to check Live Time (Time Online) ?
-
The lack of a decent audio equalizer is the feature I miss most in my zPlayer. A one-file, no-install, no-dependency media player written only with Windows components and standard AutoIt #include files is the principle I'd like to stick to. Please give me some direction on how to implement a decent equalizer in my zPlayer. If it is not possible without compromising my principle, I would like to know that as well. Thanks in advance.
-
SOLVE-SMART reacted to a post in a topic: I try to run _GUICtrlComboBox_AutoComplete example, but error opening the file <Extras\WM_NOTIFY.au3>
-
DeepPurple joined the community
-
MattyD reacted to a post in a topic: PredictText UDF not working using GUICtrlCreateCombo
-
Yep, good call Nine, That mechanism should be a bit simpler to modify too if you ever had the need. Just because I got caught out... The example in the helpfile references <Extras\WM_NOTIFY.au3>. If you click "open this script" from the helpfile it'll work, otherwise the library lives here: "C:\Program Files (x86)\AutoIt3\Examples\Helpfile\Extras\WM_NOTIFY.au3"
-
Hi @HezzelQuartz, I guess the documentation (help file) is out-of-date. I also don't have a ...\Extras\WM_NOTIFY.au3 file. In the ...\Include folder is also no "_WM_NOTIFY_DebugInfo" function which is probably a custom one. Simply get rid of the include and the usage of "_WM_NOTIFY_DebugInfo" and use a MsgBox (or maybe better ConsoleWrite) instead. The example with MsgBox would look like this: #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #AutoIt3Wrapper_AU3Check_Stop_OnWarning=y #include-once #include <GuiComboBox.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Global $g_idCombo Example() Func Example() ; Create GUI GUICreate("ComboBox Auto Complete (v" & @AutoItVersion & ")", 400, 296) $g_idCombo = GUICtrlCreateCombo("", 2, 2, 396, 296) GUISetState(@SW_SHOW) ; Add files _GUICtrlComboBox_BeginUpdate($g_idCombo) _GUICtrlComboBox_AddDir($g_idCombo, @WindowsDir & "\*.exe") _GUICtrlComboBox_EndUpdate($g_idCombo) GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") ; Loop until the user exits. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example Func _Edit_Changed() _GUICtrlComboBox_AutoComplete($g_idCombo) EndFunc ;==>_Edit_Changed Func WM_COMMAND($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg Local $hWndCombo = $g_idCombo If Not IsHWnd($g_idCombo) Then $hWndCombo = GUICtrlGetHandle($g_idCombo) Local $hWndFrom = $lParam Local $iIDFrom = BitAND($wParam, 0xFFFF) ; Low Word Local $iCode = BitShift($wParam, 16) ; Hi Word Switch $hWndFrom Case $g_idCombo, $hWndCombo Switch $iCode Case $CBN_CLOSEUP ; Sent when the list box of a combo box has been closed MsgBox('', '$CBN_CLOSEUP', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_DBLCLK ; Sent when the user double-clicks a string in the list box of a combo box MsgBox('', '$CBN_DBLCLK', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_DROPDOWN ; Sent when the list box of a combo box is about to be made visible MsgBox('', '$CBN_DROPDOWN', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_EDITCHANGE ; Sent after the user has taken an action that may have altered the text in the edit control portion of a combo box MsgBox('', '$CBN_EDITCHANGE', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) _Edit_Changed() ; no return value Case $CBN_EDITUPDATE ; Sent when the edit control portion of a combo box is about to display altered text MsgBox('', '$CBN_EDITUPDATE', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_ERRSPACE ; Sent when a combo box cannot allocate enough memory to meet a specific request MsgBox('', '$CBN_ERRSPACE', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_KILLFOCUS ; Sent when a combo box loses the keyboard focus MsgBox('', '$CBN_KILLFOCUS', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_SELCHANGE ; Sent when the user changes the current selection in the list box of a combo box MsgBox('', '$CBN_SELCHANGE', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_SELENDCANCEL ; Sent when the user selects an item, but then selects another control or closes the dialog box MsgBox('', '$CBN_SELENDCANCEL', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_SELENDOK ; Sent when the user selects a list item, or selects an item and then closes the list MsgBox('', '$CBN_SELENDOK', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value Case $CBN_SETFOCUS ; Sent when a combo box receives the keyboard focus MsgBox('', '$CBN_SETFOCUS', 'hWndFrom,IDFrom' & @CRLF & $hWndFrom & @CRLF & $iIDFrom) ; no return value EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_COMMAND Try ConsoleWrite() too. Best regards Sven
-
SOLVE-SMART reacted to a post in a topic: MiniMark (a minimalistic rtf editor)
-
hudsonhock reacted to a post in a topic: combo scrolling
-
hudsonhock reacted to a post in a topic: ComboBox Max List Items?
- Yesterday
-
MiniMark (a minimalistic rtf editor)
argumentum replied to TheAutomator's topic in AutoIt Example Scripts
Am famous so I hide my identity just like Clark Kent but it should not matter. In my case I hide my identity by removing the reading glasses -
mLipok reacted to a post in a topic: what is a GUI you think of as "good"?
-
MiniMark (a minimalistic rtf editor)
TheAutomator replied to TheAutomator's topic in AutoIt Example Scripts
Another quick question: is it a good idea to put your full name into the software and post it on this forum? -
argumentum reacted to a post in a topic: VBScript is deprecated in Windows 11 and Windows 10
-
WildByDesign reacted to a post in a topic: FileExplorer Treeview and Listview (TreeListExplorer)
-
SOLVE-SMART reacted to a post in a topic: VBScript is deprecated in Windows 11 and Windows 10
-
For those who need an AU3-only solution for decoding entities: HTMLentities.au3
-
Transparent background for slider element
Skdp replied to Skdp's topic in AutoIt GUI Help and Support
@Nine Thank you very much- 2 replies
-
- guictrlcreateslider
- slider
-
(and 3 more)
Tagged with:
-
FileExplorer Treeview and Listview (TreeListExplorer)
Kanashius replied to Kanashius's topic in AutoIt Example Scripts
I found it. The problem was using the extension instead of the path when retrieving individual file icons from the cache, which returned 0 (=folder icon) with not ".exe" present. But I checked correctly, if the path is in the cache, so it did not fail there... Additionally I added your proposed _WinAPI_AssocQueryString(".sys", $ASSOCSTR_DEFAULTICON) as a possibility to retrieve the icon from the registry. So that is working now. Thanks for your research into that- 55 replies
-
Help with Automating File Processing in AutoIt
Nine replied to sulcarter95's topic in AutoIt General Help and Support
Maybe posting the code that shows the largest slow down could help us to suggest an adapted solution. -
Help with Automating File Processing in AutoIt
RTFC replied to sulcarter95's topic in AutoIt General Help and Support
Please explore "parallel/concurrent processing" UDFs in the Wiki. -
PredictText UDF not working using GUICtrlCreateCombo
Nine replied to HezzelQuartz's topic in AutoIt General Help and Support
_GUICtrlComboAutoComplete ? -
FileExplorer Treeview and Listview (TreeListExplorer)
WildByDesign replied to Kanashius's topic in AutoIt Example Scripts
@Kanashius I found something that should be really beneficial. First: This code above causes blurry icons for .sys (and others) because the icons are being stretched on hi DPI. So I spent a lot of time searching for a solution. I found a solution for this part of the code but it might also help the rest too. The solution comes way back from user Yashied and it worked well in my testing. _WinAPI_AssocQueryString($Ext, $ASSOCSTR_DEFAULTICON) As a working script example, play around with this: This seems like an easier way to get icon path. At least in the example of .sys, we should then be able to get the icon with: _WinAPI_ShellExtractIcon($sIconPath, $iIconIndex, $iIconSize, $iIconSize) And that should result in a sharp icon on any hi DPI display. As long as the user passed the $iIconSize at Startup based on their DPI, of course. Let me know what you think. I don't have the skills to put it into your code. EDIT: I was able to confirm that this method does successfully achieve sharp icons on hi DPI. Basically, the result of: $sIconPath = _WinAPI_AssocQueryString(".sys", $ASSOCSTR_DEFAULTICON) Had to be split into two parts: $sIconPath = "C:\WINDOWS\system32\imageres.dll" $iIconIndex = "-67" That was then happily consumed by: Local $hIcon = _WinAPI_ShellExtractIcon($sIconPath, $iIconIndex, $iIconSize, $iIconSize)- 55 replies
-
#include "M:\cyrillic path\main.au3" - can't include
Jos replied to avmaksimov's topic in AutoIt General Help and Support
I can replicate this and will take a look later this week to see why this is happening. Strange this hasn't come up before, as I have fixed it for special Western Characters, but this doesn't seem to fix it for Cyrillic characters. -
Hey HezzelQuartz Just had a quick look, and it looks like the UDF is specific to edit controls unfortunately. The UDF works by subclassing. So in a nutshell, all messages sent to a "registered" control are intercepted by _New_WndProc, and that is where the magic happens . _New_WndProc contains a bunch of code that is specific to edit controls. So yeah, it's probably possible to get comboboxes working, but it involves modifying the guts of the UDF. PS. Just a quick hint if you're still having a play - EN_SETFOCUS is a notification specific to edit controls, so this block of code won't fire for a combobox!
-
I’m working on an AutoIt script to automate file processing tasks, including renaming, moving, and extracting data from text files. However, I’m running into some issues with handling large batches efficiently. The script works for a small number of files, but performance slows down when processing hundreds at once. Are there any best practices for optimizing file handling in AutoIt? Should I use multithreading or another approach to improve performance? Any guidance or sample scripts would be greatly appreciated!
-
#include "M:\cyrillic path\main.au3" - can't include
bogQ replied to avmaksimov's topic in AutoIt General Help and Support
-
#include "M:\cyrillic path\main.au3" - can't include
Jos replied to avmaksimov's topic in AutoIt General Help and Support
I assume you are running this from SciTE? What is the exact console output you get ? -
sulcarter95 joined the community
-
FileExplorer Treeview and Listview (TreeListExplorer)
SOLVE-SMART replied to Kanashius's topic in AutoIt Example Scripts
Thank you very much 😀 . I know exactly what you mean. Very often, when I publish code on GitHub (smaller private projects) or an GitLab (for my work), I instantly realize what is missing or people will give some hints 😂 . That's why it's always worth it (for me). Best regards Sven- 55 replies
-
Don't understand how to include file with cyrrilic path. If I use UTF-8 BOM for file I see that Autoit can't include file with question mark in the path. I also tried to use ANSI (Win-1251 codepage) and add strings in SciTEUser.properties: code.page=65001 output.code.page=65001 but without success. I didn't find the answer neither in Internet neither this forum.
-
I try to learn from predicttext.udf example. when I try use GuiCtrlCreateEdit like shown below, it works #include-once #include <GUIConstants.au3> #include 'PredictText.au3' $hGUI = GUICreate('Predict Text + GUI Learn', 220, 60) $Input_Payment_Method = GUICtrlCreateEdit("",10, 10, 200, 50) ;GUICtrlSetData($Input_Payment_Method, "Wood|Metal|Plastic", "") GUIRegisterMsg($WM_COMMAND, 'WM_COMMAND') GUISetState() Local $iGUIGetMsg While 1 $iGUIGetMsg = GUIGetMsg() Switch $iGUIGetMsg Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd Func WM_COMMAND($hWnd, $iMsg, $wParam, $lParam) If _WinAPI_HiWord($wParam) = $EN_SETFOCUS Then Local $_Words1[3] = ['Wood', 'Metal', 'Plastic'] Switch $lParam Case GUICtrlGetHandle($Input_Payment_Method) _RegisterPrediction($lParam, $_Words1) EndSwitch EndIf Return $GUI_RUNDEFMSG EndFunc But, if I change it to GuiCtrlCreateCombo like shown below, it doesn't work #include-once #include <GUIConstants.au3> #include 'PredictText.au3' $hGUI = GUICreate('Predict Text + GUI Learn', 220, 60) $Input_Payment_Method = GUICtrlCreateCombo("",10, 10, 200, 50) GUICtrlSetData($Input_Payment_Method, "Wood|Metal|Plastic", "") GUIRegisterMsg($WM_COMMAND, 'WM_COMMAND') GUISetState() Local $iGUIGetMsg While 1 $iGUIGetMsg = GUIGetMsg() Switch $iGUIGetMsg Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd Func WM_COMMAND($hWnd, $iMsg, $wParam, $lParam) If _WinAPI_HiWord($wParam) = $EN_SETFOCUS Then Local $_Words1[3] = ['Wood', 'Metal', 'Plastic'] Switch $lParam Case GUICtrlGetHandle($Input_Payment_Method) _RegisterPrediction($lParam, $_Words1) EndSwitch EndIf Return $GUI_RUNDEFMSG EndFunc How to make it works? Thank You