Hi there I'would have an similary function of the Snip Screen Area action of https://www.strokesplus.net/. The code is there:
quote:// Copies the area within the square gesture area to the clipboard, like a screenshot
//Delay to ensure S+ has cleared the gesture and hint sp.Sleep(100); //Create a new Bitmap in memory var memoryImage = new drawing.System.Drawing.Bitmap(action.Bounds.Width, action.Bounds.Height); //Create a graphics object associated with the bitmap var memoryGraphics = drawing.System.Drawing.Graphics.FromImage(memoryImage); //Copy the screen within the bounding rectangle of the drawn gesture area //I used a square gesture since that seems more intuitive, but it's not neccessary memoryGraphics.CopyFromScreen(action.Bounds.X, action.Bounds.Y, 0, 0, action.Bounds.Size); //Copy the image to the clipboard clip.SetImage(memoryImage); memoryGraphics.Dispose(); memoryImage.Dispose();
i figured out: // -> -- sp.Sleep(100); -> acDelay(100)
but need help by the memory and clipping part. Anybody can help me? Thanks in advanced and kind regards
Those are .net framework classes/functions which S+ is not exposed to. I don't think there's any way to accomplish this S+.net functionality in S+, unfortunately.