rajeshontheweb Posted April 9, 2009 Share Posted April 9, 2009 (edited) i donno if i am flooding this forum with posts, please bear with it. i have adoubt, i have checked few examples but they involve bit of advanced event / mouse management functions. i have this gui $frmMain = GUICreate("Main", 100,25,25,25,BitOR($WS_POPUP,$WS_BORDER)) i need this to be movable just like the normal window. a normal window with min, max buttons works great like any applications. but this just stays like the splash on without move control, is there any code i need to add, to make it movable? or is there anyway i can customise the captiontitle bar of a normal window if i create it with $frmMain = GUICreate("Main",100,25,25,25) ?? Edited April 9, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
martin Posted April 9, 2009 Share Posted April 9, 2009 i donno if i am flooding this forum with posts, please bear with it. i have adoubt, i have checked few examples but they involve bit of advanced event / mouse management functions. i have this gui $frmMain = GUICreate("Main", 100,25,25,25,BitOR($WS_POPUP,$WS_BORDER)) i need this to be movable just like the normal window. a normal window with min, max buttons works great like any applications. but this just stays like the splash on without move control, is there any code i need to add, to make it movable? or is there anyway i can customise the captiontitle bar of a normal window if i create it with $frmMain = GUICreate("Main",100,25,25,25) ?? There are several ways. Here's one #include <windowsconstants.au3> #include <guiconstantsex.au3> #include <sendmessage.au3> $frmMain = GUICreate("Test", 393, 217, -1, -1, BitOR($WS_POPUP,$WS_BORDER)), GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_PRIMARYDOWN _SendMessage($frmMain, $WM_SYSCOMMAND, 0xF012, 0) EndSwitch WEnd Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Authenticity Posted April 9, 2009 Share Posted April 9, 2009 http://www.autoitscript.com/forum/index.ph...amp;hl=hwndMove Link to comment Share on other sites More sharing options...
rajeshontheweb Posted April 9, 2009 Author Share Posted April 9, 2009 (edited) will try both in a few minutes, sorry , my bad just went through a few more example scripts in the forum randomly and noticed such a good thing exists :$GUI_WS_EX_PARENTDRAG !!! <edit> the second link is what i meant, its a bit complicated, or atleast it requires me to carefully handle all those mouse down , up events, i was looking for an safer way out - just like the above parentdrag control. anyways iwill start using keyboard / mouse handling functions soon. :-) will try first one shortly..<edit> so , i can get away with it by registering only one command , the WM_SYSCommand? thanks a lot mate. i will use this along with the title parentdrag which will enable me to ad the minimise and close controls also Edited April 9, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet 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