Jump to content
Sign in to follow this  
layer

repetitive spacebar please

Recommended Posts

Yes if you trust default values... it is obvious you aren't much of a developer from that comment alone. You trust Microsoft so I guess this shouldn't surprise me.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Guest Py7|-|[]/\/

But then again... The only declaration was also an assignment... That probably has something to do with it. By the way, since when do default values not come into play? The correct response to my comment probably would have been something like:

"Why don't you look closer at the code and see that the variable is not declared at all as an 'empty' variable. Therefore, it has no default assignment, since as soon as it is created, it has already been assigned to its own function."

Just a thought.

Share this post


Link to post
Share on other sites

@layer

if togglepause then sleep (100)
if not togglepause then
while 1 
send ("{SPACE}") 
wend
EndIf

This entire section won't work. You are not returning anything from TogglePause at all, I don't remember the default return value for functions (i think it is 0) but this will cause a lot of {SPACE}'s to be pressed. You also need to read about If statements. You should have used:

if togglepause then
   sleep (100)
ELSE
   while 1 
   send ("{SPACE}") 
wend
EndIf

*** Matt @ MPCS

EDIT: Sorry forgot formatting doesnt work in code segments

Edited by Matt @ MPCS

Share this post


Link to post
Share on other sites

hmm, i dont think that works either =/ or maybe it's because im testing it in notepad and when i press control or alt i forgot it bings up the Minimize

Maximize

Close

diolgue =/ hmmm, i gotta think of something..

Edit: How do you make the code section in these forums?

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites

I suggest using Scite, it allows inline error marking. If you have a problem it tells you instead of just guessing or going off of AutoIt3.exe error messages. This will also help you with your syntax issues because of AutoSense coding.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

also, i got the idea of pause from the guys, i forgot his name Counter-Strike Source Aimbot, i got the pause function idea from there...here was his/her code

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

WEnd

EndFunc

maybe i should test it out in game...


FootbaG

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...