Jon 1,010 Posted January 20, 2005 I'm just curious as to which mode people are writing GUIs in. MessageLoop/GUIGetMsg or the OnEvent mode? I've tended to use GUIGetMsg mostly, but I know a couple of devs like the OnEvent mode better. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
this-is-me 6 Posted January 20, 2005 Absolutely OnEvent exclusively unless I need to track the mouse for any reason. Who else would I be? Share this post Link to post Share on other sites
CyberSlug 6 Posted January 20, 2005 GuiGetMsg() because I'm lazy or need GuiGetCursorInfo() Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
Lazycat 13 Posted January 20, 2005 Mainly message mode, possibly this is just (bad) habit. But I tried OnEvent mode in couple projects. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Share this post Link to post Share on other sites
this-is-me 6 Posted January 20, 2005 (edited) Just wondering (I have some strange questions sometimes) if it could be possible to use the OnEvent mode and "meld" the missing features like mouse stuff into the OnEvent. I know it would be very strange since some function would be called every 10/100 of a second or so, but onevent seems to be lacking in the area of the mousemove messages. Edited January 20, 2005 by this-is-me Who else would I be? Share this post Link to post Share on other sites
Josbe 1 Posted January 20, 2005 Mainly message mode, possibly this is just (bad) habit. But I tried OnEvent mode in couple projects.<{POST_SNAPBACK}>Me too.MessageLoop/GUIGetMsg mode: Small projects, Mouse interactions, etc. OnEvent mode: Some windows with less interaction.Both, depending of the project... AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Share this post Link to post Share on other sites
layer 2 Posted January 20, 2005 GUIGetMsg () that's the one i started using first, so i guess it was bred into me FootbaG Share this post Link to post Share on other sites
Angel 1 Posted January 21, 2005 I use both but for bigger projects I'd tend to use the OnEvent mode, which is similar to what other languages use for GUI stuff and it is more clear to me also. I think that using the message loop can easily derive into a very long switch or else/if block for big projects. OnEvent also seems to encourage encapsulating your code more, which can only be good. However, for small GUI's it is probably not woth the extra hassle of creating a function per GUI event. That is why I was asking to be able to call any code (not only functions) from the GuiSetOnEvent function, so that I could always use the OnEvent mode. :"> Angel Share this post Link to post Share on other sites
zcoacoaz 0 Posted January 21, 2005 i use the msg one because thats how i learned itthats how i learned it [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Share this post Link to post Share on other sites
Jon 1,010 Posted January 21, 2005 Just wondering (I have some strange questions sometimes) if it could be possible to use the OnEvent mode and "meld" the missing features like mouse stuff into the OnEvent. I know it would be very strange since some function would be called every 10/100 of a second or so, but onevent seems to be lacking in the area of the mousemove messages.What missing mouse features? All the events are working aren't they? Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
this-is-me 6 Posted January 23, 2005 Sorry, I haven't tried the $GUI_EVENT_MOUSEMOVE as an option while in guioneventmode. Does that fire OK? Who else would I be? Share this post Link to post Share on other sites
Jon 1,010 Posted January 23, 2005 Sorry, I haven't tried the $GUI_EVENT_MOUSEMOVE as an option while in guioneventmode. Does that fire OK?Of course. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
this-is-me 6 Posted January 23, 2005 Well thank you for that info Jon. Looks like I am using OnEvent Exclusively now. Who else would I be? Share this post Link to post Share on other sites