- Joined
- Jul 25, 2012
- Messages
- 2
- Reaction score
- 0
- Points
- 1
Hey, I Wrote An AutoTyper Earlier, And Now I Am Trying To Make It Compatible With Minecraft, But I'm Running Into An Issue Where The Keystroke Is Typing Too Fast And The Game Cannot Keep Up With It. Is There A Way To Slow Down The Keystrokes And Continue To Let It Repeat A Set Number Of Times?
And If My Code Seems Really Sloppy It Is Because I'm A Total Noob And This Was My First Project.
Any Help Is Appreciated.
~_LilWolfie_
Code:
tell application "System Events"
local boss
display dialog "How Many Phrases Do You Want To Spam?" buttons {"1", "3", "5"}
set the button_pressed to the button returned of the result
if the button_pressed is "1" then
set one to text returned of (display dialog "What Would You Like To Spam?" default answer "")
set delayone to text returned of (display dialog "How Fast Do You Want To Spam?" default answer "1")
set boss to text returned of (display dialog "How Many Times Do You Want To Say It?" default answer "")
delay 3
repeat boss times
keystroke "t"
delay 1
keystroke one
keystroke return
delay delayone
end repeat
else if the button_pressed is "3" then
set one to text returned of (display dialog "What Would You Like To Spam?" default answer "")
set two to text returned of (display dialog "What Would You Like To Set Your Second Spam Phrase As?" default answer "")
set three to text returned of (display dialog "What Would You Like To Set Your Third Spam Phrase As?" default answer "")
set delayone to text returned of (display dialog "How Fast Do You Want To Spam?" default answer "1")
set boss to text returned of (display dialog "How Many Times Do You Want To Say It?" default answer "")
delay 3
repeat boss times
keystroke "t"
delay 1
keystroke one
keystroke return
delay delayone
keystroke "t"
delay 1
keystroke two
keystroke return
delay delayone
keystroke "t"
delay 1
keystroke three
keystroke return
delay delayone
end repeat
else if the button_pressed is "5" then
set one to text returned of (display dialog "What Would You Like To Spam?" default answer "")
set two to text returned of (display dialog "What Would You Like To Set Your Second Spam Phrase As?" default answer "")
set three to text returned of (display dialog "What Would You Like To Set Your Third Spam Phrase As?" default answer "")
set four to text returned of (display dialog "What Would You Like To Set Your Fourth Spam Phrase As?" default answer "")
set five to text returned of (display dialog "What Would You Like To Set Your Fifth Spam Phrase As?" default answer "")
set delayone to text returned of (display dialog "How Fast Do You Want To Spam?" default answer "1")
set boss to text returned of (display dialog "How Many Times Do You Want To Say It?" default answer "")
delay 3
repeat boss times
keystroke "t"
delay 1
keystroke one
keystroke return
delay delayone
keystroke "t"
delay 1
keystroke two
keystroke return
delay delayone
keystroke "t"
delay 1
keystroke three
keystroke return
delay delayone
keystroke "t"
delay 1
keystroke four
keystroke return
delay delayone
keystroke "t"
delay 1
keystroke five
keystroke return
delay delayone
end repeat
end if
end tell
And If My Code Seems Really Sloppy It Is Because I'm A Total Noob And This Was My First Project.
Any Help Is Appreciated.
~_LilWolfie_