Sign in to follow this  
Followers 0
nf67

MSN Like GUI

41 posts in this topic

#1 ·  Posted (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 it

Question:

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 by nf67

Share this post


Link to post
Share on other sites



Download SciTe (it has Koda and GuiBuilder), download X-skin (for making your gui like MSN), look up GUICtrlRead() and GUICtrlSetData().

Share this post


Link to post
Share on other sites

Posted Image

Shot at 2007-07-20

Here's a sketch.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

LOL.... thats all I have to say

Is that good or bad news? =D

And for SciTe, I don't see Koda where is it?

Edited by nf67

Share this post


Link to post
Share on other sites

Is that good or bad news? =D

And for SciTe, I don't see Koda where is it?

tools > Koda form designer

Share this post


Link to post
Share on other sites

:S My one has only Build Compile Go SyntaxCheck Prod and Stop Executing (+ a few next previous message functions and switch pane )

Share this post


Link to post
Share on other sites

: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...

Share this post


Link to post
Share on other sites

Get the custom SciTe with built in tools for autoit here

Then when you are working with a *.au3 file, syntax highlighting and tools will be available.

Share this post


Link to post
Share on other sites

Posted Image

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 )

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Posted Image

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 :whistle: Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Get the custom SciTe with built in tools for autoit here

Then when you are working with a *.au3 file, syntax highlighting and tools will be available.

That sounds familiar

Share this post


Link to post
Share on other sites

Thanks a lot Danwilli JdeB and c4-Igiveup =D GUI will be here soon

I hop eyou can help for further progress

Share this post


Link to post
Share on other sites

Igiveup =D

I hop eyou can help for further progress

what ?

Werkt SciTE nu korrekt of heb je nog steeds maar een paar opties onder tools ?

:whistle:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Whoa, JdeB busting out the language skill

DanWilli <---- impressed

Share this post


Link to post
Share on other sites

GUI Code added to first post.

Please take a look at how to send the message from the lower to the upper box

Share this post


Link to post
Share on other sites

#17 ·  Posted (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 :whistle:

( just translated your message so the others can understand it )

Edited by nf67

Share this post


Link to post
Share on other sites

If you want insert colour at words, you should use html. You could look an example from my chat.

Chat

Thanks 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?

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

I played around for a bit and now I have this:

FULL SCREEN OR IT GETS REALLY WEIRD :whistle:

#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
WEnd

But 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 by nf67

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0