AutoHotkey Community

It is currently May 27th, 2012, 1:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Xfire Responder when AFK
PostPosted: June 27th, 2009, 12:14 am 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
This simple little tool sends a message of your choice to people who message you when your away.

Just type in the message, select some options, and hit activate.

Version 1.00

Code:
SetTitleMatchMode 2
Gui, Add, GroupBox, x6 y10 w190 h300 , Xfire AFK Responder
Gui, Add, Text, x16 y30 w60 h20 , Text to say
Gui, Add, Edit, x16 y60 w170 h30 vTTS,
Gui, Add, Button, x16 y260 w170 h40 gActive, Activate
Gui, Add, Radio, x16 y160 w170 h30 vcxw, Close Xfire Window after messaging
Gui, Add, Radio, x16 y120 w170 h30 vcs, Close script after messaging
Gui, Add, GroupBox, x11 y99 w181 h151 , Options
Gui, Add, Text, x16 y200 w170 h30 gVTXT vVTXT, Version 1.00 by Fry
; Generated using SmartGUI Creator 4.0
Gui, Show, x379 y245 h318 w206, Xfire Responder
return

GuiClose:
exitapp
return

Active:
Winminimize,Xfire Responder
Gui,Submit,NoHide
WinWait,- Chat Window
WinGetTitle, Title, A
StringSplit, w, Title, -, %A_Space%
ControlSetText, RichEdit20W2, [This is an AUTOMATED message] %TTS%,%Title%
sleep 500
sendinput {enter}
Winminimize,%Title%
sleep 500
If (cxw = "1")
   {
   Winclose, %Title%
   gosub active
   }
If (cs = "1")
   {
    exitapp
   }
If (cxw = "1" && cs = "1")
  {
  Winclose, %Title%
  sleep 500
  exitapp
  }
gosub Active
return


VTXT:
Guicontrol,,VTXT,Heres your cookie! Nom Nom Nom
sleep 5000
Guicontrol,,VTXT,Version 1.00 by Fry
return


Have Fun!

Found some bugs?

Postem here and maybe try to fix them


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2009, 1:03 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
Yea it doesnt work...
To get it to send the message you have to click on the minimized message window.
Then every time you click on the message it sends it again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2009, 3:03 am 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Nope, xfire opens a new window when you get messaged, sending the message. Incorrect use man.

Also, close out of the script if you wanna view your messages.

If you think you can do better, please show me your perfect script that has no errors.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2009, 4:54 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
Fry wrote:
Nope, xfire opens a new window when you get messaged, sending the message. Incorrect use man.

Also, close out of the script if you wanna view your messages.

If you think you can do better, please show me your perfect script that has no errors.


Yes I know Xfire creates a new window, but that window is minimized.
The script doesnt work when the message is minimized.

Ok, i just tested this again, and the xfire message stays minimized
when the script is on, but when its off, it displays it on the screen.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2009, 6:29 am 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Then your settings are different. My xfire windows do not pop up minimized


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2009, 6:44 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
Fry wrote:
Then your settings are different. My xfire windows do not pop up minimized


Mine don't usually either, only when your script is in use.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2009, 4:46 pm 
Offline

Joined: November 1st, 2007, 10:03 pm
Posts: 885
Hmm, I test my script and my xfire windows pop-up un-minimized.

Try increasing the sleeps here

Code:
sendinput {enter}
sleep 500
Winminimize,%Title%


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group