> One last thing that is driving me crazy is that "import snapshot" > never works for me in Windows. It works in the livecode IDE, but > in standalones, the snapshot is always of the desktop/wallpaper, > not of the stack. > > > put 234,83,500,166 into zRect > put the windowId of stack "mainStack" into tWindow > import snapshot from rect zRect of window tWindow > > In the IDE this works fine. In a standalone the image is always > of the wallpaper behind the stack. I have found this problem in > the forums, read how people say it works just fine in Windows and > followed every tip and still it never has worked for me. Always > the wallpaper. Please tell me this isn't because of the decorations? > > Cheers, > > Lars
Unless an object is specified in the snapshot command, coordinates are assumed to be global, i.e. from the topLeft of the screen. If your stack is draggable then you will need to do some calculating to convert what I assume are local coordinates above to global coordinates. Best regards, Hugh Senior FLCo _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode