Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Mini Request] Looking for Active Window + Textfile creation

Discussion on [Mini Request] Looking for Active Window + Textfile creation within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2013
Posts: 199
Received Thanks: 10
[Mini Request] Looking for Active Window + Textfile creation

HeyGuys,
i need a mini script that is just checking all 30 seconds for a Active window.

Window Name: League of Legends (TM) Client

When the Window (Game) is active it has to write into a Textfile "Ingame" when the Window gets closed change "Ingame" into "Not Ingame".


It would be awesome when someone can help me... im a autoit noob :/
1000x Thanks!
DAFUQx is offline  
Old 06/18/2015, 17:58   #2
 
[Beatrice]'s Avatar
 
elite*gold: LOCKED
Join Date: Oct 2014
Posts: 1,258
Received Thanks: 12,469
Quote:
Originally Posted by DAFUQx View Post
HeyGuys,
i need a mini script that is just checking all 30 seconds for a Active window.

Window Name: League of Legends (TM) Client

When the Window (Game) is active it has to write into a Textfile "Ingame" when the Window gets closed change "Ingame" into "Not Ingame".


It would be awesome when someone can help me... im a autoit noob :/
1000x Thanks!




Code:
HotKeySet("{HOME}","ExitS")
FileWrite(@DesktopDir & "\LogWindow.txt","[" & @Mon & "/" & @Mday & " - " & @Hour & ":" & @Min & ":" & @Sec & "] ===> " &  "Started Logging." & @CRLF)
While 1
   Sleep(30000)
   If WinExists("League of Legends (TM) Client") = 1 Then
	  FileWrite(@DesktopDir & "\LogWindow.txt","[" & @Mon & "/" & @Mday & " - " & @Hour & ":" & @Min & ":" & @Sec & "] ===> " &  "Ingame." & @CRLF)
   Else
	  FileWrite(@DesktopDir & "\LogWindow.txt","[" & @Mon & "/" & @Mday & " - " & @Hour & ":" & @Min & ":" & @Sec & "] ===> " &  "Not Ingame." & @CRLF)
   EndIf
WEnd
   
   Func ExitS()
	  FileWrite(@DesktopDir & "\LogWindow.txt","[" & @Mon & "/" & @Mday & " - " & @Hour & ":" & @Min & ":" & @Sec & "] ===> " &  "Stopped Logging." & @CRLF)
	  Exit
   EndFunc
[Beatrice] is offline  
Old 06/18/2015, 18:32   #3
 
elite*gold: 0
Join Date: Apr 2013
Posts: 199
Received Thanks: 10
Thank you mate!
Working perfect.
DAFUQx is offline  
Reply


Similar Threads Similar Threads
PW Window active all the time
11/15/2014 - Perfect World - 3 Replies
Is that posible? i hate it when window "freeze" when i watch something else
Unfocus current active window
09/28/2014 - AutoIt - 15 Replies
Is there anyway to unfocus the currenct active window?
Keep SRO active while window is inactive?
05/28/2012 - Silkroad Online - 0 Replies
I remember I used to have this happen - that I could open up 2 windows side by side, one SRO, other a browser, for example. And while I surfed in the browser the SRO window would be inactive but picture would still keep moving so I could watch my bot do the work or keep an eye on the chat window. But now when I click on any other window the SRO window will freeze : \ Anyone know how to avoid that?
Send and UseSkill to the not active window
07/04/2011 - PW Hacks, Bots, Cheats, Exploits - 3 Replies
how do it? I can send to active window only. I try to use autoit, but that did not work Dim Au3 As New AutoItX3Lib.AutoItX3 Dim hWnd As Integer= FindWindow("ElementClient Window", Nothing) Au3.ControlSend("", "", "", "{F1}") I also tried using PostMessage,it does not work Dim hWnd As Integer= FindWindow("ElementClient Window", Nothing)
must active on client window to use bot ?
08/29/2010 - Perfect World - 78 Replies
Today PW Indo just got tideborn patch. Everything works fine, except now to use skill by using controlsend in autoit, the client window must be the active window or the bot can't send attack keys to it and it's just do nothing unless I switched back to this client window, zzzzzzzzz that's kinda defeat the purpose of having a bot running, it's supposed to be working in the background while we can use the computer for something else like browsing or watching movies :( does anyone playing PW in...



All times are GMT +1. The time now is 23:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.