KaFu Posted February 17, 2010 Share Posted February 17, 2010 Hiho, I use WM_COPYDATA to synchronize different scripts. First I tried to use the default AutoIt Window for this, but had to realize that it does not seem to be part of the windows message queue. To have a 'fixed' entry point now I created a unique and hidden helper window. I did a quick test with GuiSwitch() and GuiCtrlCreate... but those didn't work too. So, just as a question, is there a reason why the default AutoIt window can not be accessed / does not behave as any other AutoIt GUI? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $hWnd_AutoIt_GUI = WinGetHandle(AutoItWinGetTitle(), "") WinSetState($hWnd_AutoIt_GUI, "", @SW_SHOW) GUICreate("My GUI") GUISetState(@SW_SHOW) Const $WM_MOVING = 0x0216 GUIRegisterMsg($WM_MOVING, "MY_WM_MOVING") While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() Func MY_WM_MOVING($hWnd, $msg, $wParam, $lParam) ConsoleWrite(TimerInit() & @TAB & WinGetTitle($hWnd) & @TAB & $hWnd & @TAB & $msg & @TAB & $wParam & @TAB & $lParam & @CRLF) Return $GUI_RUNDEFMSG EndFunc ;==>MY_WM_MOVING OS: Win10-22H2 - 64bit - German, AutoIt Version: 220.127.116.11, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21)HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now