Modify

Opened 10 years ago

Closed 10 years ago

#1081 closed Feature Request (Rejected)

Consider this code for include: waiting for the clipboard to fill.

Reported by: jondemarks@… Owned by: Gary
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: clipboard, udfs, wait Cc:

Description

This code block clears the clipboard and waits until it is filled again. It may need to be modified to come inline with your standards, this is just one way of doing it.

Seems to be good for core functionality.

Func _Clipboard_Wait()
	_ClipBoard_Empty()
	$thisClip = 0
	While StringLen($thisClip) == 0
		Sleep(10)
		$hMemory = _ClipBoard_GetDataEx($CF_TEXT)
		$tData = DllStructCreate("char Text[32]", $hMemory)
		$thisClip = DllStructGetData($tData, "Text")
		$hMemory = 0
		$tData = 0
	WEnd
EndFunc

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by zedna

I don't think this is elegant/usefull code which should be included as standard
because there is more elegant way to do it with clipboard hook.

Look at this post
http://www.autoitscript.com/forum/index.php?showtopic=56158&view=findpost&p=426033

comment:2 Changed 10 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

I agree that this doesn't really fit.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Gary.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.