Jump to content
Sign in to follow this  
Promathia

Script Help

Recommended Posts

Promathia

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 by Promathia

Share this post


Link to post
Share on other sites
Promathia

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?

Share this post


Link to post
Share on other sites
aslani

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

Share this post


Link to post
Share on other sites
Promathia

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 by Promathia

Share this post


Link to post
Share on other sites
aslani

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

Share this post


Link to post
Share on other sites
Promathia

No biggie, lol just was hoping to make life easier to auto loot my stuff, guess that isn't gonna happen /sigh.-

Share this post


Link to post
Share on other sites
enaiman

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 :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.