nf67 Posted July 20, 2007 Share Posted July 20, 2007 (edited) Hey there,I wondered if one of you could help me out with the following:I want to create a msn-like dialogue.My idea was to create some kind of GUI with 2 text boxes one in the middle and one under it. The one in the middle is, just like with msn, to see what you typed. and the lower one to actually type ( press enter or a button to send the message to the upper box ). I want to make a little helper that can do whatever I want it to, as long as it's simple. ( search on google, open a folder, translate something, launch something etc. )I hope I can create that code by myself. Here is the basic idea again, because all this text is kind of confusing isn't it?:Program-Looks like an MSN box-Upper box to see what you typed-Lower box to send a message to the upper box-If you send the message to the upper box, it gets scanned for keywords ( launch ????? , firefox, mail , etc. )-Message appears in the upper box.-Eventually an animated picture above itQuestion: 1) How do I send a message from one input box to another?2) How do I scan it for certain keywords?Thanks a lot!#include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("MyMinion", 301, 361, 193, 115) $Pic1 = GUICtrlCreatePic("C:\animatedround.gif", 24, 24, 257, 121, BitOR($SS_NOTIFY,$WS_GROUP)) $TypeHere = GUICtrlCreateInput("TypeHere", 24, 280, 217, 60) $Typed = GUICtrlCreateEdit("", 24, 152, 249, 105) GUICtrlSetData(-1, "Typed") $Go = GUICtrlCreateButton("Go", 240, 280, 33, 65, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited July 21, 2007 by nf67 Link to comment Share on other sites More sharing options...
poisonkiller Posted July 20, 2007 Share Posted July 20, 2007 Download SciTe (it has Koda and GuiBuilder), download X-skin (for making your gui like MSN), look up GUICtrlRead() and GUICtrlSetData(). Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 Shot at 2007-07-20Here's a sketch. Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 LOL.... thats all I have to say AutoIt3 Online Help Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 (edited) LOL.... thats all I have to sayIs that good or bad news? =DAnd for SciTe, I don't see Koda where is it? Edited July 20, 2007 by nf67 Link to comment Share on other sites More sharing options...
Gif Posted July 20, 2007 Share Posted July 20, 2007 Is that good or bad news? =DAnd for SciTe, I don't see Koda where is it?tools > Koda form designer Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 :S My one has only Build Compile Go SyntaxCheck Prod and Stop Executing (+ a few next previous message functions and switch pane ) Link to comment Share on other sites More sharing options...
Gif Posted July 20, 2007 Share Posted July 20, 2007 :S My one has only Build Compile Go SyntaxCheck Prod and Stop Executing (+ a few next previous message functions and switch pane )open or create a script (.au3) and open it with scite , now it will have... Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 Get the custom SciTe with built in tools for autoit hereThen when you are working with a *.au3 file, syntax highlighting and tools will be available. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 Mmm no not really I downloaded SciTe apart from AutoIt3 but I also got the version included in the AutoIt3 installer.Wich one do I have to use ( they seem to be a bit different ) Link to comment Share on other sites More sharing options...
Developers Jos Posted July 20, 2007 Developers Share Posted July 20, 2007 (edited) Mmm no not really I downloaded SciTe apart from AutoIt3 but I also got the version included in the AutoIt3 installer.Wich one do I have to use ( they seem to be a bit different )download the SciTE4AutoIt3 installer (see link in my sig) and install that ... it should override the "lite" version that comes with the AUtoIt3 installer Edited July 20, 2007 by JdeB SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 Get the custom SciTe with built in tools for autoit hereThen when you are working with a *.au3 file, syntax highlighting and tools will be available.That sounds familiar AutoIt3 Online Help Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 Thanks a lot Danwilli JdeB and c4-Igiveup =D GUI will be here soon I hop eyou can help for further progress Link to comment Share on other sites More sharing options...
Developers Jos Posted July 20, 2007 Developers Share Posted July 20, 2007 Igiveup =DI hop eyou can help for further progresswhat ? Werkt SciTE nu korrekt of heb je nog steeds maar een paar opties onder tools ? SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 Whoa, JdeB busting out the language skill DanWilli <---- impressed AutoIt3 Online Help Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 GUI Code added to first post. Please take a look at how to send the message from the lower to the upper box Link to comment Share on other sites More sharing options...
nf67 Posted July 20, 2007 Author Share Posted July 20, 2007 (edited) Werkt SciTE nu korrekt of heb je nog steeds maar een paar opties onder tools ? Is SciTe working now or do you still have only a few options under tools ? It works now, just typed Igiveup because the name was too difficult ( just translated your message so the others can understand it ) Edited July 20, 2007 by nf67 Link to comment Share on other sites More sharing options...
Fabry Posted July 20, 2007 Share Posted July 20, 2007 If you want insert colour at words, you should use html. You could look an example from my chat.Chat A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center] Link to comment Share on other sites More sharing options...
nf67 Posted July 21, 2007 Author Share Posted July 21, 2007 If you want insert colour at words, you should use html. You could look an example from my chat.ChatThanks a lot! That's very useful. Since you worked on it, can you filter out the code that sends the message you typed to the main chat screen if you press send or enter? Link to comment Share on other sites More sharing options...
nf67 Posted July 21, 2007 Author Share Posted July 21, 2007 (edited) I played around for a bit and now I have this:FULL SCREEN OR IT GETS REALLY WEIRD #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("MyMinion", 301, 361, 193, 115) $Pic1 = GUICtrlCreatePic("C:\animatedround.gif", 24, 24, 257, 121, BitOR($SS_NOTIFY,$WS_GROUP)) $TypeHere = GUICtrlCreateInput("TypeHere", 24, 280, 217, 60) $Typed = GUICtrlCreateEdit("", 24, 152, 249, 105) GUICtrlSetData(-1, "Typed") $Go = GUICtrlCreateButton("Go", 240, 280, 33, 65, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Go GUICtrlRead ( $TypeHere ) ;; Read the text input ( lower box ), according to help: Value: Text entered GUICtrlSetData($Typed, $TypeHere);; Replace the text in the Typed box (upper box ) with the value ( wich was the text ) of the textinput box GUICtrlSetData($TypeHere, "");; Resets the text input to no text so you can type again EndSwitch WEndBut for some reason everytime I type and click Go the upper box content changes to 4 :-/ seems that the value was not the text after all Edited July 21, 2007 by nf67 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