Administrators Jon Posted September 30, 2004 Author Administrators Share Posted September 30, 2004 Jon, I'm sure you were just waiting on somebody to ask this...How about setting up events for the built-in events like closing and minimizing? GuiSetOnEvent($GUI_EVENT_ID, "function"), perhaps?Yeah, OK. Damn, I forget where I am up to now. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 30, 2004 Author Administrators Share Posted September 30, 2004 Here's what I was thinking in more detail ... Tray Icon Interface You could do most of this in the unstable just before I added the multgui support and had to remove it all. I'm thinking that we should just set up a single GUI-controlled tray menu which is seperate from the windows. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 30, 2004 Author Administrators Share Posted September 30, 2004 no argument from happy DLL calling fun boy... Lar.Wait until you see the internal code. It's half assembler Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
trids Posted September 30, 2004 Share Posted September 30, 2004 You could do most of this in the unstable just before I added the multgui support and had to remove it all. I'm thinking that we should just set up a single GUI-controlled tray menu which is seperate from the windows.<{POST_SNAPBACK}>By "single GUI-controllled tray menu" .. do you mean that if I have two different scripts running then there will be only one tray menu for both? Or will each script have it's own menu?If there's room to vote, then I'd go with a distinct menu per script instance (which is modifiable at runtime .. etc ) .. if possible please. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 30, 2004 Author Administrators Share Posted September 30, 2004 By "single GUI-controllled tray menu" .. do you mean that if I have two different scripts running then there will be only one tray menu for both? Or will each script have it's own menu?If there's room to vote, then I'd go with a distinct menu per script instance (which is modifiable at runtime .. etc ) .. if possible please.One per AutoIt script. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
trids Posted September 30, 2004 Share Posted September 30, 2004 One per AutoIt script.<{POST_SNAPBACK}>Cool - thanks Link to comment Share on other sites More sharing options...
this-is-me Posted September 30, 2004 Share Posted September 30, 2004 (edited) Anybody have any good info on learning c++? I asked Larry, but we must not be on speaking terms Edited September 30, 2004 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 30, 2004 Author Administrators Share Posted September 30, 2004 Anybody have any good info on learning c++? I asked Larry, but we must not be on speaking terms No idea really. I learnt it ages ago, and then again recently when I bought a C++ for dummies book. I think Valik learned it from scratch recently and mentioned a good book he had. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Valik Posted September 30, 2004 Share Posted September 30, 2004 I learned it by reading "The C++ Programming Language: Special Edition" by Bjarne Stroustrup (The author of C++, as well). I don't know if I'd recommend it for a starter book unless you have some experience with C. Its a bit much. It can be very technical.Mindview has two really good books by Bruce Eckel on C++. I've read both of those. They are free to download. Thinking in C++ Volume 1 & 2 are the names.CodeProject is a good site for finding all kinds of examples of stuff, although a lot of what is there is MFC-oriented.Those are the primary resources I learned C++ from with no prior programming experience. Link to comment Share on other sites More sharing options...
this-is-me Posted September 30, 2004 Share Posted September 30, 2004 Thx, Valik Who else would I be? Link to comment Share on other sites More sharing options...
redndahead Posted October 1, 2004 Share Posted October 1, 2004 @Jon: In your lovely spare time have you or anybody submitted to you a way of getting the text from a slected treeview item?<{POST_SNAPBACK}>Maybe you missed this jon or maybe you just stopped caring but is this possible? red Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 1, 2004 Author Administrators Share Posted October 1, 2004 Maybe you missed this jon or maybe you just stopped caring but is this possible? redOnly so much coding I can do in a day, Red. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
redndahead Posted October 1, 2004 Share Posted October 1, 2004 Only so much coding I can do in a day, Red. <{POST_SNAPBACK}>Sorry didn't mean it like that...I just didn't know if it was on your to do list. I asked the question a few weeks ago and didn't get an answer and then I asked again and I saw you posted something else so I thought you just missed it. :"> Thanks for all the work...red Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 1, 2004 Author Administrators Share Posted October 1, 2004 Updated with DllCall. Slightly changed the order of the parameters in DllCall from the version released yesterday, it now is: DllCall("dll", "return type", "functionname", "type1", param1 ....) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Nutster Posted October 1, 2004 Share Posted October 1, 2004 (edited) What about putting all the GUI functionality into a DLL to reduce the size of AutoIt? Add #include <GUI> at the top of your code to use the GUI commands. The GUI.au3 file would have UDF's that just call the DLLCall functions are process any return values.Several big sections that do not get called by that many people could use this strategy to reduce the size and complexity of AutoIt. Edited October 1, 2004 by Nutster David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 1, 2004 Author Administrators Share Posted October 1, 2004 What about putting all the GUI functionality into a DLL to reduce the size of AutoIt? Add #include <GUI> at the top of your code to use the GUI commands. The GUI.au3 file would have UDF's that just call the DLLCall functions are process any return values.Several big sections that do not get called by that many people could use this strategy to reduce the size and complexity of AutoIt.The GUI is heavily intertwined with AutoIt and the message pump. No dice. And it would make script compiling reliant on a fileinstall. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 1, 2004 Author Administrators Share Posted October 1, 2004 I forgot to say that I added GuiCtrlSetCursor (controlref, cursor) too but forgot to document it. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 4, 2004 Author Administrators Share Posted October 4, 2004 Updated: Tweaked the lexer so that the token used is smaller (not using a variant anymore) and also a "cache" of 256 lexed lines are stored - so in loops that fit in the cache each line does not have to be lexed again and again. This seems to have increased performance by about 20% for minimal coding effort I had to tweak a lot of code so please check for bugs (and timings to see if it is a worthwhile addition or not). Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted October 6, 2004 Author Administrators Share Posted October 6, 2004 Updated: - Fixed the flickering controls on state change (I think) - Fixed the crash on minimize bug - Add JPs doc updates. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
jpm Posted October 6, 2004 Share Posted October 6, 2004 Updated:- Fixed the flickering controls on state change (I think)- Fixed the crash on minimize bug- Add JPs doc updates.<{POST_SNAPBACK}>flickering on my script have gone thanks 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