2 posts in this topic
I have a question please
I've searched a lot on how to make a GUI for programs designed by Autoit to accepts dragging files from Windows File Explorer
Unfortunately, however, it failed
Is there any way to do this?
Where I am making a audio player and I want to activate the feature of dragging files from Windows Explorer to a program window to play them
I hope to find a simple solution here in this wonderful forum
Thank you very much in advance
First I would like to apologize to you for my many questions.
I have a new question if you allow
I am programming an audio player for blinds
I had a problem
I put an option in the folders context menu to Opens the audio files that in the selected folder
I did not know how to make the Autoit Search the subfolders
Please provide an example of how to search for files in the subfolders
Let's say, for example, MP3 files
Just give me a simple example and I will try to modify it as appropriate for the program I designing it
Please help me to find the solution
Thanks in advance
Hello, and good day
Im trying to make a sentence autocompleter so that when you type certain words (or commands) the scripts, and im in need of help/pointers
That is what i have at the time and the issues i have currently is that:
- I cant find an easy way to reset the counter to 0 in case a different letter from those are pressed ( tried NOT _ispressed but i think i got it wrong)
-Is there another way to detect the key press that _ispressed? (i couldnt find it so far), since i feel like it is too clunky ( although maybe that is just me and my way to code)
- for some reason the hex code (6F) for the / (divide nume pad) isnt working for me
Im thinking of making a text file with some words to use them as variables/comparations (so that at least removes the need of a variable for the words in the script) and make the script make a temporal text file to save the input and then compare it with the other one. But i dont know if that is a good approach.
Thanks for your time and patience.
Drag option works only on parent window but as we can see on the parent gui is showed up child gui (on the right side with the color).
Desired action is when we want to drag whole program we can also drag child gui and child gui will drag with parent gui.
How to do this?
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <Array.au3> GUIRegisterMsg($WM_NCHITTEST, "_NCHITTEST") $hGUI = GUICreate("Test", 500, 500, -1, -1) $cButton_0 = GUICtrlCreateButton("Child 0", 10, 10, 80, 30) $cButton_1 = GUICtrlCreateButton("Child 1", 10, 50, 80, 30) $cButton_2 = GUICtrlCreateButton("Child 2", 10, 90, 80, 30) GUISetState(@SW_SHOW, $hGUI) ; guis Global $hChild_ Global $countGUI = UBound($hChild_) - 1 ;MsgBox("","",$countGUI) ; licznik dla GUI Global $gui = 0 $hChild_ = GUICreate("Child 0", 350, 300, 150, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor(0xFF0000) GUISetState(@SW_SHOW, $hChild_) $hChild_ = GUICreate("Child 1", 350, 300, 150, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor(0x00FF00) GUISetState(@SW_HIDE, $hChild_) $hChild_ = GUICreate("Child 2", 350, 300, 150, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor(0x0000FF) GUISetState(@SW_HIDE, $hChild_) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cButton_0 _All_Hide() GUISetState(@SW_SHOW, $hChild_) $gui = 0 Case $cButton_1 _All_Hide() GUISetState(@SW_SHOW, $hChild_) $gui = 1 Case $cButton_2 _All_Hide() GUISetState(@SW_SHOW, $hChild_) $gui = 2 EndSwitch WEnd Func _All_Hide() GUISetState(@SW_HIDE, $hChild_) GUISetState(@SW_HIDE, $hChild_) GUISetState(@SW_HIDE, $hChild_) EndFunc Func _NCHITTEST($hWnd, $uMsg, $wParam, $lParam) If $hWnd = $hGUI Then Local $aPos = WinGetPos($hWnd) If Abs(BitAND(BitShift($lParam, 16),0xFFFF)- $aPos) < 500 Then Return $HTCAPTION EndIf Return $GUI_RUNDEFMSG EndFunc