Sign in to follow this  
Followers 0
drewince

Need help.....

14 posts in this topic

OK i want to have my script do something like this

If "D" is sent then send("rewince")

If anyone can help that would be great...

Share this post


Link to post
Share on other sites



It's in the help file under SEND.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

Im the biggest noob ever. ive looked and look. i still cant find it......i found the help send thing i just cant find were it tells me that stuff

Share this post


Link to post
Share on other sites

Maybe you could find some general programming/scripting tutorials online somewhere where you can learn about syntax, logic etc then attempt autoit

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Im not sure, havent tried this yet, but try this:

HotKeySet("d","function")
;Your Script here, if none, then SLEEP(9999999)
;OPTIONAL-
While 1
Sleep(1000)
Wend
;OPTIONAL-
Func function()
Send("rewince")
EndFunc
Edited by MethodZero

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Im not sure, havent tried this yet, but try this:

HotKeySet("d","function")
;Your Script here, if none, then SLEEP(9999999)
Func function
Send("rewince")
EndFunc
oÝ÷ Ûú®¢×¢Ë^iÚ²W§ß}÷ß}÷ß}÷rv÷öܨ¹«­¢+Ø)!½Ñ-åMÐ ÅÕ½ÐíÅÕ½Ðì°ÅÕ½Ðíչѥ½¸ÅÕ½Ðì¤()]¡¥±Ä)M±À ÄÀÀÀ¤)]¹()չչѥ½¸ ¤)M¹ ÅÕ½ÐíÉÝ¥¹ÅÕ½Ðì¤)¹Õ¹(

Edit: autoit tags pwn code tags

Edited by Paulie

Share this post


Link to post
Share on other sites

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

instead of sleep(999999999999) why don't you

HotKeySet("d","function")
While 1 
Sleep(1000)
Wend
Func function()
Send("rewince")
EndFunc

yea, i just realised that.....i changed it before i could see ur post so.. yea...


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites

Wait i just realized the op wants to make it so he doesn't have to type his whole name, and only push 'd'

The code above won't work

use this

HotKeySet("d","function")

While 1
Sleep(1000)
Wend

Func function()
Send("drewince")
EndFunc

cause hotkeyset steals keys so it won't register the input of the D

Share this post


Link to post
Share on other sites

I tried holding down the D button, and after a while it said something bout an overload or something like that...


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites

That 'D' stood for Dylithium Crystal recharge. You're only supposed to push it once otherwise BOOM!!


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

OOOh, i get it!

=P


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites

Wait i just realized the op wants to make it so he doesn't have to type his whole name, and only push 'd'

The code above won't work

use this

HotKeySet("d","function")

While 1
Sleep(1000)
Wend

Func function()
Send("drewince")
EndFunc

cause hotkeyset steals keys so it won't register the input of the D

That's an inherent danger in using common characters for hot keys. Send("d") will trigger HotKeySet("d", "Function"), leading to a runaway iteration, and finally an error. Some thing like alt-d, which would be HotKeySet("!a", "Function"), would be better.

:lmao:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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