Cursius Posted October 30, 2006 Share Posted October 30, 2006 I am new to the forum and as i was looking in posts etc...i have found this one :http://www.autoitscript.com/forum/index.ph...anti+afk+scriptI have PMed some ppl in this forum but no1 answered :_( /cryI have copy/paste this code to a .txt file but:What should i do to make it work now?Ps 1:Explain as simple as possible plz.i am not too familiar with scriptsPs 2:I have post that on wrong section before sorry Link to comment Share on other sites More sharing options...
theguy0000 Posted October 30, 2006 Share Posted October 30, 2006 (edited) Sorry, when gafrost said to post questions in the support forum, he meant in the future. Now you have two of the same questions in two different forums, which is not encouraged. But, it's fine this time, since gafrost didn't make that clear. Just telling you some of the ropes here as for your question... Looks like you are very new to autoit. Please use the link in my signature for a starters guide, and a good editer, better than notepad, if that's what you're using. But if you want a direct answer, you save it as .au3 not .txt, and then you double-click the newly created .au3 file to run it. Edited October 30, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
CodeMaster Rapture Posted October 30, 2006 Share Posted October 30, 2006 That link is bad I think, but I gather it is an anti-afk script. If this is for a game, you can do something like so: $Game = "Your Game's Title here" $Forward_Key = "{a}" ;Check the AutoIt help files for the Send Key List $Seconds = 60 While (WinActive($Game)) ;WinActive is a nifty function to check if a window is... active, wow! Send($Forward_Key) Sleep($Seconds * 1000) ;Sleep works in milliseconds, so we multiply $Seconds by 1000 WEnd Hope this gives you an idea. -CMR Link to comment Share on other sites More sharing options...
theguy0000 Posted October 30, 2006 Share Posted October 30, 2006 That link is bad I think, but I gather it is an anti-afk script. If this is for a game, you can do something like so: $Game = "Your Game's Title here" $Forward_Key = "{a}" ;Check the AutoIt help files for the Send Key List $Seconds = 60 While (WinActive($Game)) ;WinActive is a nifty function to check if a window is... active, wow! Send($Forward_Key) Sleep($Seconds * 1000) ;Sleep works in milliseconds, so we multiply $Seconds by 1000 WEnd Hope this gives you an idea. -CMRhe didn't even know how to run a .au3 file, so he couldn't do much with that script read his post, he said he saved it as a .txt @Cursius Like I said in my last post, I suggest you download and run the link in my signature. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
herewasplato Posted October 30, 2006 Share Posted October 30, 2006 ...he said he saved it as a .txt...and what is wrong with that? :-)Start > Programs > AutoIt v3 > Run ScriptChange "Files of type:" to "All files (*.*)" and navigate to the text file of interest.Select same and click on "Open"....albeit, renaming the file extension to au3 would be a might easier. Double clicking on a file with an au3 extension might run it - depending on the options selected during the installation of AutoIt3 and/or SciTE4AutoIt3.I've not worked thru Valuater's tut in a while, does it offer to install the full version of SciTE4AutoIt3 - now that the standard install of AutoIt3 includes a "Lite version"?@Cursius,Welcome to the forums... Don't mind us, we are just "chatting back and forth" in your thread - but hopefully with some info that you can learn from. You might want to visit here: http://www.autoitscript.com/autoit3/scite/downloads.php...enjoy... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Cursius Posted October 30, 2006 Author Share Posted October 30, 2006 Thank you guys.i Have dled the AutoIT v3 and i have the script ready now i am also starting to get the basic ideas of how to create/edit scripts Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now