AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what have i done wrong in this hotstring macro

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Cyber



Joined: 10 Mar 2009
Posts: 86
Location: Nsw/Syd/Kiama

PostPosted: Fri Dec 04, 2009 4:21 am    Post subject: what have i done wrong in this hotstring macro Reply with quote

hey this is my script
Code:

;rules

::rules::
loop 1(

/cc rules -
sleep ,1000
/-please only pm ranks on cc based q's
sleep , 1201
/-dont ask ranks, if u can buy merch of them =]
sleep ,990
/-only apply for rank if you are comfedent with these rules.
sleep ,1404
/- dont ask ranks for rank. we wil not easily throw it out.
sleep ,1102
/please dont flame ranks.
sleep ,1320
/- commen curticy is much appreciated =]
sleep ,1247
/- have fun and ask feel free to ask questions ,cc based =]
)
return



its desinghed for a game to just keep things in order..
it is ment to send this sesired text when i type "rules" but i get error on line 6 =/[/quote]

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
_________________
---{+.-}---
Back to top
View user's profile Send private message MSN Messenger
entropic



Joined: 21 Dec 2008
Posts: 181

PostPosted: Fri Dec 04, 2009 4:28 am    Post subject: Reply with quote

I'm not sure if this is what you actually want, you have a lot of syntax errors in your script. Have a look at the Quick-Start Tutorial and the other documentation.
Code:

;rules

::rules::
SendInput, /cc rules -
sleep ,1000
SendInput, /-please only pm ranks on cc based q's
sleep , 1201
SendInput, /-dont ask ranks, if u can buy merch of them =]
sleep ,990
SendInput, /-only apply for rank if you are comfedent with these rules.
sleep ,1404
SendInput, /- dont ask ranks for rank. we wil not easily throw it out.
sleep ,1102
SendInput, /please dont flame ranks.
sleep ,1320
SendInput, /- commen curticy is much appreciated =]
sleep ,1247
SendInput, /- have fun and ask feel free to ask questions ,cc based =]

return
Back to top
View user's profile Send private message
Cyber



Joined: 10 Mar 2009
Posts: 86
Location: Nsw/Syd/Kiama

PostPosted: Fri Dec 04, 2009 4:52 am    Post subject: Reply with quote

cheers, um all i whant it to do i write what i typed with them sleep timers lol.
_________________
---{+.-}---
Back to top
View user's profile Send private message MSN Messenger
Cyber



Joined: 10 Mar 2009
Posts: 86
Location: Nsw/Syd/Kiama

PostPosted: Fri Dec 04, 2009 4:59 am    Post subject: Reply with quote

ok heres my upodated script
Code:


;rules

::rules::
SendInput, /cc rules -
{enter}
sleep ,1000
SendInput, /-please only pm ranks on cc based q's
{enter}
sleep , 1201
SendInput, /-dont ask ranks, if u can buy merch of them =]
{enter}
sleep ,990
SendInput, /-only apply for rank if you are comfedent with these rules.
{enter}
sleep ,1404
SendInput, /- dont ask ranks for rank. we wil not easily throw it out.
{enter}
sleep ,1102
SendInput, /please dont flame ranks.
{enter}
sleep ,1320
SendInput, /- commen curticy is much appreciated =]
{enter}
sleep ,1247
SendInput, /- have fun and ask feel free to ask questions ,cc based =]
{enter}

return



ok what im trying to get it to do is press enter after every line it rights.
what have i dont wrong this time?
_________________
---{+.-}---
Back to top
View user's profile Send private message MSN Messenger
Cyber



Joined: 10 Mar 2009
Posts: 86
Location: Nsw/Syd/Kiama

PostPosted: Fri Dec 04, 2009 5:33 am    Post subject: Reply with quote

what im looking for is ...

-whats the code for "enter" that is so that the script presses enter after writing each line of text.
_________________
---{+.-}---
Back to top
View user's profile Send private message MSN Messenger
vahju



Joined: 17 Feb 2008
Posts: 296

PostPosted: Fri Dec 04, 2009 7:20 pm    Post subject: Reply with quote

You should be able to to do this one of two ways.

SendInput, /cc rules -{enter}

OR

SendInput, {enter}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group