ok maybe SC or someone else nice can help me with a little problem i've been having, really it should be simple to solve i'm just not quite fimiliar in that area of coding i guess i have been staring at the code for hours now try to see the problem, and still can't find it.
So here it is, in the HelperClass.cs there's a keybinding class that i've copied over into another project, my problem is trying to using it to send ctrl+v to the game, everything else seems to work fine with it except for ctrl+v. For some reason the current keybinder only works like 1/3 of the time, if even that. So hopefully some coder nice enough to read this can look into the issue for me, if not SC 'The Man' himself

.
Code:
KeySender myKeySender;
IntPtr FFXIVhandle;
void gameTextSender(string TextToSend)
{
myKeySender = new KeySender(FFXIVhandle);
Clipboard.Clear();
Clipboard.SetDataObject(TextToSend);
myKeySender.send(Keys.Space); //open ffxiv send text box
myKeySender.sendDown(Keys.V, 2); //2 is the ctrl modifier
myKeySender.sendUp(Keys.V, 2);
myKeySender.send(Keys.Back); //it leaves 1 v when it pastes
myKeySender.send(Keys.Enter); //send the text
}
Code:
private void button9_Click(object sender, EventArgs e)
{
gameTextSender("/echo Test");
}
but doesn't work, n me staring and tweaking the keysender hasn't helped by much
Edit: I've also thought maybe it was the time after hitting space for the enter test to appear that was the problem but adding a thread sleep after sending space to the game doesn't help much, i just get the same results.