Thursday, July 24, 2014

#1 2012-02-13 05:29:08 pm

Hashi
Member
Registered: 2012-02-12
Posts: 18

Here is my spammer script!

My Spammer:

Applescript:

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)

Last edited by Hashi (2012-02-13 05:31:58 pm)

Offline

 

#2 2012-02-13 05:56:20 pm

Hashi
Member
Registered: 2012-02-12
Posts: 18

Re: Here is my spammer script!

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.

Applescript:

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 http://facebook.com/" 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

Last edited by Hashi (2012-02-13 05:59:44 pm)

Offline

 

#3 2013-02-22 12:58:35 am

Cyeclops
Member
Registered: 2013-02-20
Posts: 1

Re: Here is my spammer script!

Hashi wrote:

My Spammer:

Applescript:

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)

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.

Offline

 

#4 2013-02-23 08:24:58 pm

Hashi
Member
Registered: 2012-02-12
Posts: 18

Re: Here is my spammer script!

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

Offline

 

#5 2013-02-24 01:18:50 am

McUsrII
Member
Registered: 2012-11-20
Posts: 2254
Website

Re: Here is my spammer script!

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. smile

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

Last edited by McUsrII (2013-02-24 01:23:58 am)


Filed under: as

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.030 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)