Administrators Jon Posted January 20, 2005 Administrators Share 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/ Link to comment Share on other sites More sharing options...
this-is-me Posted January 20, 2005 Share Posted January 20, 2005 Absolutely OnEvent exclusively unless I need to track the mouse for any reason. Who else would I be? Link to comment Share on other sites More sharing options...
CyberSlug Posted January 20, 2005 Share 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! Link to comment Share on other sites More sharing options...
Lazycat Posted January 20, 2005 Share 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]) Link to comment Share on other sites More sharing options...
this-is-me Posted January 20, 2005 Share 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? Link to comment Share on other sites More sharing options...
Josbe Posted January 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
layer Posted January 20, 2005 Share Posted January 20, 2005 GUIGetMsg () that's the one i started using first, so i guess it was bred into me FootbaG Link to comment Share on other sites More sharing options...
Angel Posted January 21, 2005 Share 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 Link to comment Share on other sites More sharing options...
zcoacoaz Posted January 21, 2005 Share 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] Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 21, 2005 Author Administrators Share 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/ Link to comment Share on other sites More sharing options...
this-is-me Posted January 23, 2005 Share 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? Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 23, 2005 Author Administrators Share 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/ Link to comment Share on other sites More sharing options...
this-is-me Posted January 23, 2005 Share Posted January 23, 2005 Well thank you for that info Jon. Looks like I am using OnEvent Exclusively now. Who else would I be? 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