Jump to content

Need alittle tweaking


Recommended Posts

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.1.0

; Author: A.N.Other <myemail@nowhere.com>

;

; Script Function:

; Template AutoIt script.

;

; ----------------------------------------------------------------------------

; Script Start - Add your code below here

Func _IsPressed($hexKey)

Local $aR, $bRv;$hexKey

$hexKey = '0x' & $hexKey

$aR = DllCall("user32", "int", "GetAsyncKeyState", "int", $hexKey)

If $aR[0]<> 0 Then

$bRv = 1

Else

$bRv = 0

EndIf

Return $bRv

EndFunc;==>_IsPressed

#include <misc.au3>

$SpamToggle = 0

$sMessage = Inputbox("Message Input", "Input the message to be spammed here.")

$delay = Inputbox("Delay Input", "Input delay between messages(in ms).")

While 1

If _IsPressed("73") Then Quit(); f4 is pressed

If _IsPressed("74") Then Toggle(); f5 is pressed

If _IsPressed("75") Then _Send(); f6 is pressed

If _IsPressed("13") Then _Traytip(); PAUSE is pressed

If $SpamToggle = 1 Then

Do

Send($sMessage)

Send("{ENTER}")

Sleep($delay)

Until $SpamToggle = 0

EndIf

WEnd

Func _TrayTip()

TrayTip("Uber gay spammer v1.1",'Hotkeys:' & @LF & 'F4 - Kill spammer' & @LF & 'F5 - Toggle spammer on/off' & @LF & 'F6 - Hold to spam' & @LF & ' ' & @LF & 'Steps of Use:' & @LF & '1)Enter phrase to spam' & @LF & '2)Enter delay between messages' & @LF & '3)Press F5 to begin spamming' & @LF & '4)Press F5 again to cease' & @LF & '5)Press F4 to kill the program' & @LF & '~gamepin126', 30, 0)

Sleep(200)

EndFunc

Func _Send()

Send($sMessage)

Send("{ENTER}")

Sleep($delay)

EndFunc

Func Toggle()

If $SpamToggle = 0 Then

$SpamToggle = 1

ToolTip("Spammer - ON",0,0)

Sleep(150)

Elseif $SpamToggle = 1 Then

$SpamToggle = 0

ToolTip("Spammer - OFF",0,0)

Sleep(150)

EndIf

EndFunc

Func Quit()

Exit

EndFunc

thats my current script......

but.... is there anyway to tweak it... to instead of spamming a message... it will spam ctrl + v? like if i copy a message then start the script, then hit F6 it will spam Ctrl +v ??

Link to comment
Share on other sites

If I understand you right you're looking for 'HotKeySet()'.

I have no clue @.@ i dont know how to make scripts

could u put the hotkey thing in there for me? i need it has Ctrl + v and when i press F6 it spams it

Link to comment
Share on other sites

Here's my advice:

Start ---> Programs ---> AutoIt ---> AutoItHelp

Read it. It will be your biggest help.

HotKeySet("{F6}", "SpamToggle")
Global $SpamToggle = 0
While 1
    If $SpamToggle = 1 Then Send(ClipGet() & "{ENTER}")
    Sleep(50)
WEnd
Func SpamToggle()
    Select
    Case $SpamToggle = 0
        $SpamToggle = 1
    Case Else
        $SpamToggle = 0
    EndSelect
EndFunc
Edited by AutoIt Smith
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...