Jump to content

Recommended Posts

Posted (edited)

Func Reciever($Handle, $Message, $Mode)
    Local $sTitle = WinGetTitle($Handle)
    MsgBox(0, $sTitle, "Message: " & $Message & @CRLF & "Mode: " & $message);MsgBox's the message
    EndIf
EndFunc

I've got a revciever who get his messages into the $Message variable. Every time he gets a message he currently pops up this little window. I would like him to save the last message he recieved as a variable that is made available to the main loop inside the program which is then meant to act according to the vaulue that the variable has taken. I hope I still make some kind of sense and although it doesn't seem to be hard I'm loosing my head about this thing completely.

Also, are there any decend tutorials for beginners that deal with GUIs and lists inside them. For example I would like to log all the different past values of the &Message in a window but trying to edit the little program I'm playing around with I can't get anything to work. It is painfully obvious that I'm a complete beginner but I really would like to learn more about AutoIt and I hope people here will point me the right direction.

Thank you

edit: how do you make the code in the forum be AutoIt code?

Edited by hypertyper
Posted (edited)

Do you mean a global variable?

For autoit code you use "["autoit"]" :)

Without the quotes of course, the forum didn't let me write it as it should

Edited by monoceres

Broken link? PM me and I'll send you the file!

Posted

Do you mean a global variable?

For autoit code you use "["autoit"]" :)

Without the quotes of course, the forum didn't let me write it as it should

Yes. That's probably what I mean, I think... I'll try and find out and look at some more tutorials.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...