Sign in to follow this  
Followers 0
theguy0000

gui not working?

3 posts in this topic

im making an auto-reply script for yahoo messenger.

well, so far almost everything works, except the gui. it auto-replies as normal, there are no errors, SCiTE Syntax Check didnt find anything. there's just no GUI.

#include <GUIConstants.au3>
Opt("WinTitleMatchMode", 2)

$away = InputBox ("AutoAway", "Please enter an away message.", "I'm Away")

GUICreate ("Away", 221, 111, (@DesktopWidth-221)/2, (@DesktopHeight-111)/2)

$Label = GuiCtrlCreateLabel($away, 10, 10, 200, 60)
$Button_back = GuiCtrlCreateButton("I'm Back!", 70, 80, 80, 20)

While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $Button_back Or $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
    
    If WinExists (" - Instant Message") Then
;~  If WinExists (" - Conversation") Then;15 chars
        WinActivate ( " - Instant Message" );18 chars
        ControlSend ( "Instant Message", "", 225, $away)
        ControlClick( "Instant Message", "", 588 )
;~      WinActivate ( " - Conversation" );18 chars
;~      ControlSend ( "Instant Message", "", 1, $away)
;~      ControlClick( "Instant Message", "", 2 )
        WinClose ("")
    EndIf
WEnd

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



Add GUISetState() before the loop to see the gui .

Share this post


Link to post
Share on other sites

oh ok thanks


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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