blah7 Posted July 20, 2006 Share Posted July 20, 2006 ; ---------------------------------------------------------------------------- ; ; 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 More sharing options...
Briegel Posted July 20, 2006 Share Posted July 20, 2006 If I understand you right you're looking for 'HotKeySet()'. Link to comment Share on other sites More sharing options...
blah7 Posted July 20, 2006 Author Share Posted July 20, 2006 If I understand you right you're looking for 'HotKeySet()'.I have no clue @.@ i dont know how to make scriptscould 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 More sharing options...
themax90 Posted July 20, 2006 Share Posted July 20, 2006 (edited) 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 July 20, 2006 by AutoIt Smith Link to comment Share on other sites More sharing options...
w0uter Posted July 20, 2006 Share Posted July 20, 2006 sending "^v{ENTER}" is faster. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now