Didonet Posted November 29, 2008 Share Posted November 29, 2008 I'm having a popup gui without drag bar and I want to drag the gui using the mouse (to drag the gui with the mouse). How? Link to comment Share on other sites More sharing options...
Zedna Posted November 29, 2008 Share Posted November 29, 2008 (edited) #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("GUICloseOnESC",1) Opt("GUIOnEventMode",1) $gui = GuiCreate("",300,200,-1,-1,BitOR($WS_POPUP,$WS_BORDER),BitOr($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetOnEvent ($GUI_EVENT_PRIMARYDOWN, "Drag" ) GUISetOnEvent ($GUI_EVENT_Close, "Quit" ) GUISetState(@SW_SHOW) While 1 Sleep(100) WEnd Func Drag() dllcall("user32.dll","int","SendMessage","hWnd", $gui,"int",$WM_NCLBUTTONDOWN,"int", $HTCAPTION,"int", 0) EndFunc Func Quit() Exit EndFuncEDIT: - corrected include list- corrected Esc functionality Edited November 30, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
goldenix Posted November 29, 2008 Share Posted November 29, 2008 (edited) Use This: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> instead of: #include <Constants.au3> #include <GUIConstants.au3> @Zedna I have been looking for this, thanx Edited November 29, 2008 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now