Clipboard object...bug?

For questions about using Classic.

Post » Wed Feb 04, 2009 5:07 pm

Basically when text is available action just constantly inserts the same thing a million times into whatever i ask it to insert into, a listbox for example.
Why does it not insert it once?
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Wed Feb 04, 2009 5:08 pm

It's not triggered, it'll keep running while there's text on the clipboard.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Feb 04, 2009 5:09 pm

Ah i found a way to do it, i just copy it then empty the clipboard right away, bit messy though since it leaves the actual clipboard empty :(.

Is there no way to insert once then ignore till the clipboard is used again?
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Wed Feb 04, 2009 5:20 pm

Just a guess, but you could probably insert a "Trigger Once" condition into your pasting event. Can't tell for sure without seeing the CAP, though.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Feb 04, 2009 5:26 pm

The thing is there is always text available so it will just keep on pasting it into the list, as the only clipboard action to use is "text available" which of course unless i wipe the clipboard making it useless as the person would have to use the program everytime they want a clipboard item.

What it severly needs is something like an "on clipboard change" kinda thing.
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Wed Feb 04, 2009 5:33 pm

If you want to make a clipboard catcher (or just to see when new text is there) just store the clipboard text at all times in a text object or something, then have a:

Clipboard.GetText is different to StoredText.Text
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Feb 04, 2009 5:34 pm

[quote="Rich":1yn46hqm]If you want to make a clipboard catcher (or just to see when new text is there) just store the clipboard text at all times in a text object or something, then have a:

Clipboard.GetText is different to StoredText.Text[/quote:1yn46hqm]

Will that not be a massive drain on resource if a program running is always checking the clipboard?
And how would do i do an actual compare event?
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Wed Feb 04, 2009 5:35 pm

Not really, but you could always have an 'every X ticks' in there to make sure.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Feb 04, 2009 5:38 pm

[quote="Rich":15gy2zw5]Not really, but you could always have an 'every X ticks' in there to make sure.[/quote:15gy2zw5]

Then i could easily miss one.

Seriously it needs an "on clipboard change" function.
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Wed Feb 04, 2009 5:39 pm

But it'd be exactly like doing it with events, which gives you more control over how often you want to check it.

Not really much point.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests