drewince Posted October 3, 2006 Share Posted October 3, 2006 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... Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 3, 2006 Share Posted October 3, 2006 It's in the help file under SEND. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
drewince Posted October 3, 2006 Author Share Posted October 3, 2006 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 Link to comment Share on other sites More sharing options...
creeping Posted October 3, 2006 Share Posted October 3, 2006 Maybe you could find some general programming/scripting tutorials online somewhere where you can learn about syntax, logic etc then attempt autoit Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 3, 2006 Share Posted October 3, 2006 (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 October 3, 2006 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] Link to comment Share on other sites More sharing options...
Paulie Posted October 3, 2006 Share Posted October 3, 2006 (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 October 3, 2006 by Paulie Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 3, 2006 Share Posted October 3, 2006 Look here. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 3, 2006 Share Posted October 3, 2006 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] Link to comment Share on other sites More sharing options...
Paulie Posted October 3, 2006 Share Posted October 3, 2006 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 Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 3, 2006 Share Posted October 3, 2006 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] Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 3, 2006 Share Posted October 3, 2006 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! Link to comment Share on other sites More sharing options...
Vindicator209 Posted October 3, 2006 Share Posted October 3, 2006 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] Link to comment Share on other sites More sharing options...
Paulie Posted October 4, 2006 Share Posted October 4, 2006 OOOh, i get it! =PIf you want to make a script that you can hold down, use _IsPressed #Include <Misc.au3> While 1 If _IsPressed(44) then ; 'D' key While _IsPressed(44) Send("rewince") Wend EndIf Wend Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 4, 2006 Share Posted October 4, 2006 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. 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 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