Promathia Posted October 8, 2007 Share Posted October 8, 2007 (edited) I am trying to get my script to pause for 25 sec then hold down ctrl and then press space then release control / space and repeat every 25 or 30 and repeat forever. This is the script i have been working with if anyone knows what I am doing wrong please let me know. $i = 0 While $i <= 1 Sleep(25000) send("{lctrl down}") Send("!{SPACE down}") $i = 0 WEnd Edited October 8, 2007 by Promathia Link to comment Share on other sites More sharing options...
aslani Posted October 8, 2007 Share Posted October 8, 2007 Try this; While 1 Send("^{SPACE}") Sleep(25000) WEnd [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version Link to comment Share on other sites More sharing options...
Promathia Posted October 8, 2007 Author Share Posted October 8, 2007 Now I am trying to run this for a different program because i need to have it ctrl space alot so is there a way to focus it so it only runs while that .exe is active? Link to comment Share on other sites More sharing options...
aslani Posted October 8, 2007 Share Posted October 8, 2007 Now I am trying to run this for a different program because i need to have it ctrl space alot so is there a way to focus it so it only runs while that .exe is active? While 1 If WinActive("TheWindowYouWantGoesHere") Then Send("^{SPACE}") Sleep(25000) EndIf WEnd I would normally point you to the Help File but I seems to be in a good mood today. [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version Link to comment Share on other sites More sharing options...
Promathia Posted October 8, 2007 Author Share Posted October 8, 2007 (edited) While 1 If WinActive("Sword of the New World") Then Send("!{SPACE}") Sleep(5000) EndIf WEnd Lol maybe this game blocks it not 100% sure. But it still dosn't do the key strokes while the game is up :/ Lol thx for the help good thing for good moods :/ not the best at programing. I know it uses x-trap (game security) program. But i have heard of others using autoit to do this code /sigh. Edited October 8, 2007 by Promathia Link to comment Share on other sites More sharing options...
aslani Posted October 8, 2007 Share Posted October 8, 2007 Yeah because of the anti-cheat modes/programs, you can't make simple bots anymore these days. You need to know how their program works (or find someone who already figured that one out) then find a way to bypass it or "fool" it, but good luck with that...I'm not into those kind of thing. [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version Link to comment Share on other sites More sharing options...
Promathia Posted October 8, 2007 Author Share Posted October 8, 2007 No biggie, lol just was hoping to make life easier to auto loot my stuff, guess that isn't gonna happen /sigh.- Link to comment Share on other sites More sharing options...
enaiman Posted October 8, 2007 Share Posted October 8, 2007 Why don't you use the name of the game to do a search in this forum - I remember seeing posts about this game some time ago. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
aslani Posted October 8, 2007 Share Posted October 8, 2007 By the way, is it really that hard to press Ctrl+Space? You just want to set your squad in Patrol Mode and fire up your auto loot and sleep. [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version 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