Sign in to follow this  
Followers 0
Swift

[RESOLVED]Start a loop with HOME...

9 posts in this topic

#1 ·  Posted (edited)

ClipPut("weaknesspays")
HotKeySet("{HOME}", "_start")
HotKeySet("{END}", "_end")
While 1
WEnd

Func _start()
While 1
Send("^x")
Sleep(150)
Send("^v{ENTER}")
WEnd
EndFunc

Func _end()
    Exit
EndFunc

Basically what I want to do..start a loop with HOME...but only END the loop with END...but...if the loop is running...and you press end...keep the script going...and if you press HOME again...it starts again...etc...

and in the _END() function...doing ExitLoop doesnt work :)

Edited by Swift

Share this post


Link to post
Share on other sites



Global $gloop=0
ClipPut("weaknesspays")
HotKeySet("{HOME}", "_start")
HotKeySet("{END}", "_end")
While 1
WEnd

Func _start()
$gloop = 1
While $gloop
Send("^x")
Sleep(150)
Send("^v{ENTER}")
WEnd
EndFunc

Func _end()
    $gloop = 0
EndFunc

Share this post


Link to post
Share on other sites

need a sleep in the while/wend loop or it will burn CPU

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Haha SimCity4 :)

Nice ;D

Dont cheat thats lame :)

(Btw: by editing the "config.bmp" in your SC savegamefolder in Documents and settings you can create yourself a region that only golds "BIG" regions - and make it even bigger than any normal map)

Edited by Kademlia

Share this post


Link to post
Share on other sites

Wow...Its PERRRRRRFECT! Thanks Alot!!

Share this post


Link to post
Share on other sites

I have made an awesome city!! 80,000 people with 90million money! :) I let my bot run over-night :)

Share this post


Link to post
Share on other sites

Way offtopic but try this:

Buld 1 Cell (6*6 - costs 1800$) houses and make 8 cells (6*6) around it. Insert ~80% industrial and 20% commercial.

Bild those "9ers" and you will get a well working city (set taxes for lowincome houses/commercial/industry to 20%)

Send me a screen of your city :) PM or something

Share this post


Link to post
Share on other sites

Very nice senton bomb..BUTT... :)...I cant have a messagebox() in the middle of a game :) but very nice :)

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  
Followers 0