Jump to content

help with hotkey


Recommended Posts

I am having a problem with my script i am writing here is the code:

HotKeySet("{END}", "_spammerstop")

ToolTip("    Spammer v1.0   " & @CRLF & "Written by: b3n aka mrcookiemonsteryum.", 700, 25)
sleep(2000)
_waitspammerinput()

Func _waitspammerinput()
HotKeySet("{INSERT}", "_spammerspam")
HotKeySet("{END}", "_spammerstop")
Send("{CTRLUP}")
While 1
    ToolTip("")
    ToolTip("Copy some text for the spammer to spam" & @CRLF & "than select the textfield" & @CRLF & "& press the 'Insert' key to start spamming." & @CRLF & "or, press the 'End' key to exit the program.", 700, 25)
    sleep(1000)
WEnd
EndFunc

Func _spammerspam()
ToolTip("")
ToolTip("Press the 'Insert' key to pause the spammer" & @CRLF & "or, press the 'End' key to exit the spammer", 700, 25)
HotKeySet("{INSERT}", "_waitspammerinput")
HotKeySet("{END}", "_spammerstop")
While 1
    send("{CTRLDOWN}")
    send("v down")
    send("{ENTER}")
WEnd
EndFunc

Func _spammerstop()
Send("{CTRLUP}")
Exit
EndFunc

whenever it is in the _spammerspam function the hotkeys don't work, but when it is in any of the other functions the hotkeys work, need some help figuring this out.

Edited by Turdsammiches
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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