Rishav Posted December 11, 2009 Share Posted December 11, 2009 Hi folks Any ideas how to add in a button on the title bar itself? (a small "?" marked button just before the minimize button.) thanks and regards. Rishav Link to comment Share on other sites More sharing options...
martin Posted December 11, 2009 Share Posted December 11, 2009 (edited) Hi folksAny ideas how to add in a button on the title bar itself?(a small "?" marked button just before the minimize button.)thanks and regards.RishavDo you mean like the extended style $WS_EX_CONTEXTHELP? Edited December 11, 2009 by martin 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...
Rishav Posted December 11, 2009 Author Share Posted December 11, 2009 (edited) wow. I didn't even know such an option existed. thanks. btw, it didn't work for me. $MainImportGUI = GUICreate("Automata v0.1 beta", 1225, 900, -1, -1, BitOR($WS_SYSMENU, $WS_GROUP), $WS_EX_CONTEXTHELP) Any ideas on what am i doing wrong? Edited December 11, 2009 by Rishav Link to comment Share on other sites More sharing options...
martin Posted December 11, 2009 Share Posted December 11, 2009 wow. I didn't even know such an option existed. thanks. btw, it didn't work for me. $MainImportGUI = GUICreate("Automata v0.1 beta", 1225, 900, -1, -1, BitOR($WS_SYSMENU, $WS_GROUP), $WS_EX_CONTEXTHELP) Any ideas on what am i doing wrong? The reason I said "like" was because that style cannot be used with $WS_MAXIMIZEBOX or $WS_MINIMIZEBOX. $MainImportGUI = GUICreate("Automata v0.1 beta", 1225, 900, -1, -1, _ BitAnd(BitOR($WS_SYSMENU,$WS_GROUP),BitNot($WS_MAXIMIZEBOX),BitNot($WS_MINIMIZEBOX)), _ $WS_EX_CONTEXTHELP) 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...
Rishav Posted December 11, 2009 Author Share Posted December 11, 2009 what about BitOR($WS_SYSMENU, $WS_GROUP)? Link to comment Share on other sites More sharing options...
martin Posted December 11, 2009 Share Posted December 11, 2009 what about BitOR($WS_SYSMENU, $WS_GROUP)?It doesn't work for me so I specifically turned off the minimize and maximize buttons.$WS_GROUP adds the minimize and maximize buttons and those stop the query button being added. At least that's what happens for me although from the help and msdn I don't see why.(why those buttons are added.)The documentation also says that $WS_SYSMENU must be used with $WS_CAPTION but I can't see it makes any difference. 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...
Rishav Posted December 14, 2009 Author Share Posted December 14, 2009 Ah Thanks. Is there any way for me to use this button? Can I call a function every time this button is clicked? I tried checking guigetmsg value every time the button is clicked but it seems to have no effect. Link to comment Share on other sites More sharing options...
Rishav Posted December 15, 2009 Author Share Posted December 15, 2009 so, any ideas? Link to comment Share on other sites More sharing options...
martin Posted December 15, 2009 Share Posted December 15, 2009 so, any ideas? The way to use that button is explained here. It isn't really suitable as a general button IMO.Either you need to draw the caption bar with a button on it, which I think is very difficult , or you couldIt might be easier to try something like EzSkin in example scripts. 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...
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