Here is my spammer script!

My Spammer:

tell application "System Events"
	activate
	display dialog "Happy Spamming..." default button 1 with title "Spammer"
	set textToSay to text returned of (display dialog "Message to spam, ex. Spam" default answer "" buttons {"Cancel", "Next"} default button 1)
	set int to text returned of (display dialog "Set Int/Speed: 1 is slow, 0.1 is Medium, and 0.01 is Fast, you can do 0.01 in TextEdit or an app like that" default answer "0.5" buttons {"Cancel", "Next"} default button 1)
	set numoftimes to text returned of (display dialog "Number of messages to send" default answer "10" buttons {"Cancel", "Next"} default button 1)
	set theDelay to text returned of (display dialog "Set seconds till spammer starts" default answer "5" default button 1)
	display dialog "Once you click ok on the next dialog box, click the application you want to spam ex. TextEdit o"
	display dialog "Starts in: " & theDelay default button 1
	delay theDelay
	
	repeat numoftimes times
		delay int
		keystroke return
		keystroke textToSay
		
	end repeat
end tell

I also made a script that when you open it it shows your IP and sends it to your email, but i don’t think i’m allowed to post that lol

Model: Macbook Pro
AppleScript: Version 2.3 (118)
Browser: Firefox 9.0.1
Operating System: Mac OS X (10.6)

My Facebook log in (you have to be logged out to use) Youtube search script >You are going to have to download it because it has the icons in the resources folder< or you can take the "with icon alias ((path to me) & “Contents:Resources:ffolder & yfolder:facebook.icns” as string) out of the script.

choose from list {"Facebook", "Youtube Search"} with prompt "Choose:"



if result is {"Facebook"} then
	display dialog "You have to be logged out for this one to work" with title "Facebook" default answer ""
	set theEmail to text returned of (display dialog "Email" with title "Facebook" default answer "" with icon alias ((path to me) & "Contents:Resources:ffolder:facebook.icns" as string) buttons {"Cancel", "Next"} default button 2)
	set enteredPass to text returned of (display dialog "Password" with title "Facebook" default answer "" with icon alias ((path to me) & "Contents:Resources:ffolder:facebook.icns" as string) buttons {"Cancel", "Log in"} default button 2 with hidden answer)
	tell application "Firefox"
		activate
		display dialog "Opening [url=http://facebook.com/]http://facebook.com/"[/url] with icon alias ((path to me) & "Contents:Resources:ffolder:facebook.icns" as string) buttons {"Cancel", "Log in"} default button 2 with hidden answer
		
		open location "http://www.facebook.com/"
		tell application "System Events"
			delay 0
			keystroke theEmail
			keystroke tab
			keystroke enteredPass
			delay 1
			keystroke return
			
		end tell
	end tell
	
else
	if result is {"Youtube"} then
		set search to text returned of (display dialog "Enter Youtube Search" with icon alias ((path to me) & "Contents:Resources:yfolder:youtube.icns" as string) default answer "" buttons {"Cancel", "Search"} default button 2)
		display dialog "Searching Youtube..."
		open location "http://www.youtube.com/results?search_query=" & search
	else
		
	end if
end if

Application link: http://www.mediafire.com/?6b0r31tkztgqg5m

Hi

How would you go about adding and extra dialog to allow a repeat of the spam, lets say:

display dialog “would you like to repeat the spam” buttons {“No Thanks”, “Yes Please”} default button 2

I’m not sure how to Cancel the operation when No Thanks is pressed ?? Just so you don’t have to go through the entire process from the start every time, if you are going to be using the same spam, but also not wanting it to be running continuously, giving you the option of Cancelling or Continuing if you have it set to ‘10’… if that makes sense?
I’m really new to this and trying to get my head around things.

This is what I tried near the bottom of yours:

delay theDelay

repeat
	repeat numoftimes times
		delay int
		keystroke return
		keystroke textToSay
		keystroke return
		
	end repeat
	
	display dialog "Repeat again?" buttons {"No Thanks", "Yes Please"} default button 2 with title "Spammer"
	delay theDelay

end repeat

end tell

The result works apart from when I press “No Thanks” it still delays and repeats? I simply want it to quit when I press Not Thanks.

I would make those changes if i had applescript editor haha i accidentally deleted it like a year ago and i can’t redownload it. i have tried everything to get it back

Hello.

If you don’t have a friend with a Mac, then I guess you are in peril getting a copy.

You can always use man osacompile and man osadecompile from the commandline.

I can’t remember whether you can save as .Scpt from within XCode.

Then there is of course Smile, that you can download from Satimage. :slight_smile:

I don’t like spamming scripts though, but broadcasting messages, now that is useful.

here you go:https://drive.google.com/drive/folders/16hNCZ_7dOaP3gOx5aT5K9uaDjxg4gu-6?usp=sharing