Jump to content

Recommended Posts

Posted

I'm not sure what I'm doing wrong, but it seems that clipput() is not overwriting data..

Here's my script.

Func _SendSpam($SpamCtrl)
    If $SpamCheck1 = "ON" Then 
        ClipPut($SpamOutput[1])
        ControlSend($SpamTitle, "", "", "{Enter}")
        ControlSend($SpamTitle, "", "", "{CTRLDOWN}{v}{CTRLUP}")
        ControlSend($SpamTitle, "", "", "{Enter}")
    EndIf
    If $SpamCheck2 = "ON" Then 
        ClipPut($SpamOutput[2])
        ControlSend($SpamTitle, "", "", "{Enter}")
        ControlSend($SpamTitle, "", "", "{CTRLDOWN}{v}{CTRLUP}")
        ControlSend($SpamTitle, "", "", "{Enter}")
    EndIf
    If $SpamCheck1 = "ON" Then 
        ControlSend($SpamTitle, "", "", "{Enter}")
        ControlSend($SpamTitle, "", "", "{CTRLDOWN}{v}{CTRLUP}")
        ControlSend($SpamTitle, "", "", "{Enter}")
    EndIf
EndFunc

I am only able to 'send' the clip which is on top 'ClipPut($SpamOutput[1])'

Do I have to empty the clip and do another clipput or do a clipput and then a clipget...

Posted

I'm not sure what I'm doing wrong, but it seems that clipput() is not overwriting data..

Here's my script.

Func _SendSpam($SpamCtrl)
    If $SpamCheck1 = "ON" Then 
        ClipPut($SpamOutput[1])
        ControlSend($SpamTitle, "", "", "{Enter}")
        ControlSend($SpamTitle, "", "", "{CTRLDOWN}{v}{CTRLUP}")
        ControlSend($SpamTitle, "", "", "{Enter}")
    EndIf
    If $SpamCheck2 = "ON" Then 
        ClipPut($SpamOutput[2])
        ControlSend($SpamTitle, "", "", "{Enter}")
        ControlSend($SpamTitle, "", "", "{CTRLDOWN}{v}{CTRLUP}")
        ControlSend($SpamTitle, "", "", "{Enter}")
    EndIf
    If $SpamCheck1 = "ON" Then 
        ControlSend($SpamTitle, "", "", "{Enter}")
        ControlSend($SpamTitle, "", "", "{CTRLDOWN}{v}{CTRLUP}")
        ControlSend($SpamTitle, "", "", "{Enter}")
    EndIf
EndFunc

I am only able to 'send' the clip which is on top 'ClipPut($SpamOutput[1])'

Do I have to empty the clip and do another clipput or do a clipput and then a clipget...

I would recommend trying a $Clip = ClipGet() and then sending $Clip.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Posted

The reason I'm doing it this way is because I'm trying to send unicode text..

I can't think of a better way than "^{v}"

I'f I put unicodes in a variable.. the text that's sent is jumbo mumbo :)

I should have mentioned unicode on the first post. Sorry, my bad.

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
×
×
  • Create New...