New topic: Comparing a picture with picture failes ;(
<http://forums.realsoftware.com/viewtopic.php?t=25793> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message topaj Post subject: Comparing a picture with picture failes ;(Posted: Sat Dec 27, 2008 7:58 am Joined: Sun Nov 04, 2007 12:36 pm Posts: 17 I've created a simple script with a clipboard, that adds an menuitem with the image. But it doesn't work. It adds millions of times the picture to the menu, and i have this code (in a timer): Code:dim c As Clipboard c = new clipboard if c.PictureAvailable then if c.Picture <> lastpicture then dim item as NSMenuItemMBS dim n as NSImageMBS Dim r as New Random n=new NSImageMBS(c.Picture,nil) item=new MyNSMenuItem item.CreateMenuItem item.Title="" item.state=0 item.image=n app.menu.addItem item items.Append item lastpicture=c.Picture end if end if latpicture is a property in the window: Code:lastpicture As Picture I've tried everything, but no success. Thank you! Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
