Is it possible to make a screenshot like in windows

^?

Hello Budgie,
The new fora software has SERIOUS problem in posting source code in various programming languages (not limitted to AppleScript).
See this brief report of mine, for example.
http://discussions.apple.com/thread.jspa?threadID=1056765&tstart=45
Topic : AppleScript's source codes have been mangled beyond repair.
Since this problem occured, I have ceased answering questions which would let me post some source code in AppleScript.
Of cource, if you are very patient, you may circumvent this problem by, for examples, stripping all tabs and spaces at the beginning of a line and also replacing '-- ' (double hypens followed by a space) at the beginning of a line with '--' (double hyphens NOT followed by a space) in your AppleScript source code before posting it...
I WON'T do that though I know it may work.
Oh yes, I've also noticed some other problematic behaviours of new fora software since the above report. They include:
(1) Braces '{}' to specify list (vector) and bracket '[]' to specify linked list in AppleScript are tampered by the fora software such that braces/brackets are removed and the enclosed text is changed to some meaningless hyperlink.
(2) The '_' (underbar) characters put around a variable name in AppleScript are tampered by the fora software such that underbars are removed and the in-between text is changed to the underlined.
(3) The '#' followed by space at the beginning of a line in shell script (i.e. comment) is tampered by the fora software such that '#' is removed and the rest is changed to HTML's ordered list item. (Meanwhile the '*' followed by space at the beginning of a line will be tampered such that '*' is removed and the rest is changed to HTML's unordered list item as well)
In all cases listed above, you'd have to use HTML's numerical entities to escape those characters in order to prevent text corruptions from happening.
I hope this fiasco should be fixed very soon.
Hiroto
Message was edited by: Hiroto

Similar Messages

  • Possible to make servlet look like html page?

    Is it possible to register a servlet so that it looks like an html page?
    for example the servlet "HelloWorld", I want to make it look
    like "HelloWorld.html".

    What you need to do is configure your web server / servlet engine to pass EVERY request for a .html file to a servlet. This is typically done by passing the requests to a router servlet, which then reads the request URI, and then instantiates a servlet based on the desired file name. Therefore, if your requests goes to "HelloWorld.htm", the router would instantiate the class "HelloWorld", probably by calling Class.forName("HelloWorld"), and then call its doService(), doPost(), or doGet() methods.

  • Is it possible to make a screenshot on the iPad?

    I just got an iPad Air, and I cannot figure if there's any way to make/save a screenshot.
    Thanks in advance.
    Daniel

    It worked!!! Thank you, thank you, thank you!
    Daniel

  • PrintWindow api with possible solution for capture screenshot Google Chrome window

    Hi,
    as all you know, PrintWindow api give us a black image when us want a capture screenshot  of Google Chrome window. So, a friend said me that a possible solution for this problem is: 
    Reduce Google Chrome window for -1px in both sides and after this, reset  to original size. And so, will repaint again.
    Based on code below, someone could help me make this? sincerely I don't know where begin.
    [DllImport("user32.dll", SetLastError = true)]
    static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
    [DllImport("user32.dll", SetLastError = true)]
    static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
    [DllImport("user32.dll")]
    private static extern IntPtr GetDC(IntPtr WindowHandle);
    [DllImport("user32.dll")]
    private static extern void ReleaseDC(IntPtr WindowHandle, IntPtr DC);
    [DllImport("user32.dll")]
    private static extern IntPtr GetWindowRect(IntPtr WindowHandle, ref Rect rect);
    [DllImport("User32.dll", SetLastError = true)]
    [return: MarshalAs(UnmanagedType.Bool)]
    static extern bool PrintWindow(IntPtr hwnd, IntPtr hDC, uint nFlags);
    [StructLayout(LayoutKind.Sequential)]
    private struct Rect
    public int Left;
    public int Top;
    public int Right;
    public int Bottom;
    public static Bitmap Capture(IntPtr handle)
    Rect rect = new Rect();
    GetWindowRect(handle, ref rect);
    Bitmap Bmp = new Bitmap(rect.Right - rect.Left, rect.Bottom - rect.Top);
    Graphics memoryGraphics = Graphics.FromImage(Bmp);
    IntPtr dc = memoryGraphics.GetHdc();
    bool success = PrintWindow(handle, dc, 0);
    memoryGraphics.ReleaseHdc(dc);
    return Bmp;
    private void button1_Click(object sender, EventArgs e)
    IntPtr WindowHandle = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Chrome_WidgetWin_1", null);
    Bitmap BMP = Capture(WindowHandle);
    BMP.Save("C:\\Foo.bmp");
    BMP.Dispose();
    Any suggestions here is appreciated.

    Hello,
    I would prefer capture the screen rather than get it from that application directly.
    It has been discussed in the following thread.
    Is there any way to hide Chrome window and capture a screenshot or convert the Chrome window to image?
    In this case, you could remove the line "ShowWindowAsync(mainHandle, 0); " since you don't want to hide it.
    using System;
    using System.Runtime.InteropServices;
    using System.Diagnostics;
    using System.Drawing.Imaging;
    [DllImport("user32.dll")]
    private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
    [DllImport("user32.dll")]
    public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
    [DllImport("user32.dll")]
    public static extern bool PrintWindow(IntPtr hWnd, IntPtr hdcBlt, int nFlags);
    public WhateverMethod()
    //initialize process and get hWnd
    Process chrome = Process.Start("chrome.exe","http://www.cnn.com");
    //wait for chrome window to open AND page to load (important for process refresh)
    //you might need to increase the sleep time for the page to load or monitor the "loading" title on Chrome
    System.Threading.Thread.Sleep(4000);
    chrome.Refresh();
    IntPtr mainHandle = chrome.MainWindowHandle;
    RECT rc;
    GetWindowRect(mainHandle, out rc);
    Bitmap bmp = new Bitmap(rc.Width, rc.Height, PixelFormat.Format32bppArgb);
    Graphics gfxBmp = Graphics.FromImage(bmp);
    IntPtr hdcBitmap = gfxBmp.GetHdc();
    PrintWindow(mainHandle, hdcBitmap, 0);
    gfxBmp.ReleaseHdc(hdcBitmap);
    gfxBmp.Dispose();
    bmp.Save("c:\\temp\\test.png", ImageFormat.Png);
    ShowWindowAsync(mainHandle, 0);
    [StructLayout(LayoutKind.Sequential)]
    public struct RECT
    private int _Left;
    private int _Top;
    private int _Right;
    private int _Bottom;
    public RECT(RECT Rectangle)
    : this(Rectangle.Left, Rectangle.Top, Rectangle.Right, Rectangle.Bottom)
    public RECT(int Left, int Top, int Right, int Bottom)
    _Left = Left;
    _Top = Top;
    _Right = Right;
    _Bottom = Bottom;
    public int X
    get { return _Left; }
    set { _Left = value; }
    public int Y
    get { return _Top; }
    set { _Top = value; }
    public int Left
    get { return _Left; }
    set { _Left = value; }
    public int Top
    get { return _Top; }
    set { _Top = value; }
    public int Right
    get { return _Right; }
    set { _Right = value; }
    public int Bottom
    get { return _Bottom; }
    set { _Bottom = value; }
    public int Height
    get { return _Bottom - _Top; }
    set { _Bottom = value + _Top; }
    public int Width
    get { return _Right - _Left; }
    set { _Right = value + _Left; }
    public Point Location
    get { return new Point(Left, Top); }
    set
    _Left = value.X;
    _Top = value.Y;
    public Size Size
    get { return new Size(Width, Height); }
    set
    _Right = value.Width + _Left;
    _Bottom = value.Height + _Top;
    public static implicit operator Rectangle(RECT Rectangle)
    return new Rectangle(Rectangle.Left, Rectangle.Top, Rectangle.Width, Rectangle.Height);
    public static implicit operator RECT(Rectangle Rectangle)
    return new RECT(Rectangle.Left, Rectangle.Top, Rectangle.Right, Rectangle.Bottom);
    public static bool operator ==(RECT Rectangle1, RECT Rectangle2)
    return Rectangle1.Equals(Rectangle2);
    public static bool operator !=(RECT Rectangle1, RECT Rectangle2)
    return !Rectangle1.Equals(Rectangle2);
    public override string ToString()
    return "{ + _Left + "; " + " + _Top + "; Right: " + _Right + "; Bottom: " + _Bottom + "}";
    public override int GetHashCode()
    return ToString().GetHashCode();
    public bool Equals(RECT Rectangle)
    return Rectangle.Left == _Left && Rectangle.Top == _Top && Rectangle.Right == _Right && Rectangle.Bottom == _Bottom;
    public override bool Equals(object Object)
    if (Object is RECT)
    return Equals((RECT)Object);
    else if (Object is Rectangle)
    return Equals(new RECT((Rectangle)Object));
    return false;
    And the key method used is the one shared in
    Get a screenshot of a specific application.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to make a 2D array (or whatever-dimension) array like..

    Is it possible to make a 2D array (or whatever-dimension) array like this...
            collumn 1                   collumn 2
    Emulated Address   Real Memory address*
               (int)                            (int *)
    +----------------------+----------------------------+
    |            0                |              0xA0               | <-- row 1
    |            1                |              0xA1               | <-- row 2
    |            2                |              0xA2               | <-- row 3
    +----------------------+----------------------------+
    * A = Address.
    is it possible to make an array like that?
    if it is, please tell me how to do it...
    thanks.
    ... I'm trying to make an emulator to emulate the simplest memory.

    Given your other posts, I'm assuming you mean in C, right?
    If so, the answer is yes, but specifically how will depend on a needed clarification of your question.  What you present doesn't really need to be a 2 dimensional array, just one: that looks like a simple list of memory addresses, right?
    At the simplest you can declare an array with two dimensions `iny myarray[2][3];` but to make the table you put up there you'd only need `int *myarray[3];`
    If you also wanted space allocated somewhere that each element of that list pointed to, you could allocate them separately:
    int *myarray[3];
    myarray[0] = (int *) malloc(sizeof(int));
    myarray[1] = (int *) malloc(sizeof(int));
    myarray[2] = (int *) malloc(sizeof(int));
    Obviously with many entries this should be in a loop.  Perhaps not as obviously, why would you not just malloc a larger block of memory to start with?
    What is the end goal?
    EDIT: actually, upon rereading your question, the mallocs are probably irrelevant.  `int *myarray[3]` will get you the array you are looking for.  Just realize that until you point those pointers to memory you 'own' you shouldn't assign to or read from them.
    Last edited by Trilby (2013-04-19 10:06:31)

  • Make a screenshot from a panel?

    Hi,
    is it possible to make a screenshot from a panel? And save it
    in some object?

    yevgen_78,
    Flex 3 has an ImageSnapshot class which may do what you need.
    For more information, see
    http://livedocs.adobe.com/labs/flex3/langref/mx/graphics/ImageSnapshot.html
    Also, there are a few random examples at
    http://blog.flexexamples.com/category/imagesnapshot/
    which may give you some ideas.
    As for saving the pixels, you would probably need to send the
    raw image data to a server side script (ColdFusion, PHP, ASP, etc)
    to save it to a file.
    Hope that helps,
    Peter

  • Possible to make a script for duplicating index entries?

    I would like to make things easier than they seem to be.
    I have several references (1:st level topics) already that are correct with page numbers and all that.
    Now, I would like to create a 1:st level topic, under which I put "duplicates" of these already indexed references and put them as 2:nd level topics, under the main, 1:st level, topic.
    Example.
    Let's say I have these references (1:st level topics) already, with correct page numbers and everything:
    Audi 4-6, 8
    BMW 7, 21-24
    Citroen 11, 12
    Mercedes 80
    Volkswagen 31-36
    Okay, these are perfectly indexed and all the pages are correct.
    Now, I would like to have these references as both 1:st level topics, and also as second level topic references under the main topic "Cars", like this:
    Cars 4-80
    Audi 4-6, 8
    BMW 7, 21-24
    Citroen 11, 12
    Mercedes 80
    Volkswagen 31-36
    My question is. Is it possible to achieve this by a script, so I can copy (duplicate) all these references and put them under the topic "Cars" too (preserving the 1:st level topics too of course), without having to go to each of the pages and create new topics all over again for every single finished topic, that I intend to put under the main topic "Cars"?
    Just to inform you, the above named 5 topics, are NOT only the topics I want to put under "Cars"... there are like a hundred :).
    Is it possible to make a script like this? Or do I have to do all the work ALL OVER again?
    Martin

    Hmmm… This one copies all files which have 'flash' (could by x-shockwave-flash) string in mime type to /tmp/flash. Hope it will be helpful.
    for i in ~/.opera/cache4/* ; do file -i -F '' $i | grep flash | cut -d ' ' -f 1 | xargs cp -t /tmp/flash 2>/dev/null ; done
    UPDATE:
    Sorry, there was a little bug, I've just changed 'video' to 'flash' ('video' coundn't match 'x-shockwave-flash').
    Last edited by zergu (2008-12-25 21:16:38)

  • I'm using GarageBand 10.0.1. Do the built-in drum tracks only come in mono format, or is it possible to make them true stereo (i.e. Left and Right channels outputing different signals, to sound like the kit has been panned across the stereo field)?

    I'm using GarageBand 10.0.1. Do the built-in drum tracks only come in mono format, or is it possible to make them true stereo (i.e. Left and Right channels putting out different signals, to sound like the kit has been panned across the stereo field)?

    All the Drum Kits available for GarageBand are mixed in stereo.
    Logic provides the same 18 Drum Kits also as "Producer Kits", which are multi-track outputs,. Each Drum Kit Piece (Kick, Snare, HH, etc) and also room mice and overheads are routed to individual channel strips.
    Here is a screenshot of one Drum Kit in Logic Pro X with individual Channels Strips. Each Channel Strip can be loaded with individual effects (compressor) and adduced with individual sends, etc.
    What that means is that all the Drummers are professionally recorded and sampled with individual mics. The Stereo Drums Kits are just "stereo mix-downs" for easier handling and less CPU demand. I explain all the details about the Drummer ecosystem in my graphically enhanced manual "GarageBand X - How it Works"
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • I am trying to find out if I can change a setting of the calendar in my iPhone.   When I view calendar, in month, I would like to view it with the starting day of the week being Monday, not Sunday.  Is it possible to make this change? SS

    I am trying to find out if I can change a setting of the calendar in my iPhone. 
    When I view calendar, in month, I would like to view it with the starting day of the week being Monday, not Sunday.  Is it possible to make this change?

    Hello SMEvans32
    You can use iCloud to share the Calendar, that way she will always be up to date on that particular section of your work calendar. If you want to use iCloud, I would recommend backing up so you have a safe copy of your data.
    iCloud: Calendar sharing overview
    http://support.apple.com/kb/PH2689
    iCloud Setup
    http://www.apple.com/icloud/setup/
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Hello, i created 5 different books (photo album) and i would like to know if it's possible to make one single order (and pay the transportation fees only once...) i couldn't find how

    hello, i created 5 different books (photo album) and i would like to know if it's possible to make one single order (and pay the transportation fees only once...) i couldn't find how

    Soory, no, it is not possible. You can only combine multiple copies of the same book into one order.
    Regards
    Léonie

  • Is it possible to make a text box cycle/rotate through text, like a slide show does?

    Is it possible to make a text box cycle through 3 or 4 separate pieces/groups of text, like a slide show does with photos? So that when I open my site a text area says "Statement 1", then 10 seconds later it changes to "Statement 2", then 10 seconds later it chagnes to "Statement 3", etc.
    Its that possible with a text box? My desire is to have 3 or 4 testimonials that change every 10 seconds.
    You can see that right now it's a single testimonial:
    www.kmlstudio.com
    All help is appreciated
    Thanks!
    Kevin

    Right.  Some plugins have zip file downloads while others are just copy & paste.
    In DW, go to File > New > Blank page > JavaScript.
    Copy & paste the Cycle plugin code into your new JS page. 
    SaveAs   cycle.2.9.81.js  in whichever site folder you normally keep scripts.
    Link your HTML page to your new cycle script:
    Insert > Script > Script (browse to folder containing your cycle script). Hit OK.
    Don't forget to add a link to the jQuery core library, too.  Plugins don't work without it.
    Nancy O.

  • Is it possible to make GLaDOS like effect?

    Hi there
    I must admit, that I never use Audition. It comes with the bundle, and I thtough, I would give it a go for a change.
    Would any of you happen to know, if it's possible to modify my sound files to make them sound like GLaDOS from Portal?
    I genereate my voice files using Mac's text-to-speach feature.
    I would appreciate any suggestions.
    regards
    Mona

    I must admit that I had to Google GLaDOS to hear an example--I'd never hear of her before your post.
    However, having had a listen, I'd have to say that at least half the effect is the actress speaking in an artificial sounding mechanical rhythm.  You'd think that this would make the text-to-speech idea--but, in fact, Apple are doing their best to make that sound real, NOT artificial.  This, plus the lack of control you'll have (you can't direct a Mac like you can an actress) makes the success of your project luck of the draw.
    As MusicConductor says, the electronic part of the effect sounds like it's done with some form of pitch corrector...Autotune or similar.  Audition has a built in pitch corrector but whether it'll give the same sound...and whether the sound will work without an actress speaking in the proper cadence...will be a matter of experimenting.

  • Is it possible to make a menu in idvd. i like the possibility for example in the beginning of the dvd of two ours in the menu at the beginning van the dvd and between the scenes of the movie. thanks

    is it possible ta make a menu in idvd. I like different menu with linking to scenes in the movie. for example in a movie of two ours in the menu at the beginning of the movie so you can chose with part of the movie you wil play.  thank you for tips  (holland)

    djinte wrote:
    is it possible ta make a menu in idvd. ...
    iDVD has its own forum, here:
    https://discussions.apple.com/community/ilife/idvd
    what you're looking for is 'chapters', don't hesitate to make use of iM & iDVD's built-in Help.
    btw: no need to write extra-large ...

  • Is it possible make a parallax like in example?

    Is it possible make a parallax like in example?
    https://github.com/rogerwang/node-webkit/mooo

    Hello,
    You can achieve this by using and OAM file in Muse and the OAM file can be created in Edge Animate.
    Link below explained how to create this in Edge animate.
    Creating a Parallax Effect in Edge Animate - YouTube
    Link below explains how to publish an OAM file from Edge animate.
    https://helpx.adobe.com/edge-animate/using/publish-your-content.html
    Regards
    Vivek

  • I am living USA and Mexico for my work and I do have account in USA but is that possible to make Mexican account same time? I like to keep USA account when I'm in USA

    I am living USA and Mexico for my work and I do have account in USA but is that possible to make Mexican account same time? I like to keep USA account when I'm in USA

    If you have a valid payment method in Mexico (e.g. Mexican credit card) billed to a Mexican address then I guess you could.  There are certain disadvantages to having more than one account, but in your case I don't see they apply.  Just make sure you have copies of everything you buy from each country on backup because you will no longer be able to redownload items when you can no longer use that country's store.

Maybe you are looking for

  • How to stream live video from a TV card to my iPad 2 in Windows 7.

    Hi guys, I hope I'm doing things the right way - as you can see, this is my first post. I would like to steam live TV from my home server to my iPad. The server is running Windows 7 Ultimate and the TV input is from a TV card via RCA. Any help would

  • ALV - Excel download Date field sits in the last Column

    Hi, I have custom ALV grid report using OOp . From the report i am exporting the results to an EXCEL, but the date columns in the report sits as last column the exported excel. Any idea ? Thanks aRs

  • Macbook pro doesn't recognize camera on image capture

    My MacBook Pro doesn't recognize the built-in camera for a lot of my applications, including Image Capture. It doesn't show up anywhere in my system preferences. Any idea why this is so?

  • Field BSEG-SKFBT. does not exist in the screen

    Hi, While doing FBV0 the document is not posting and it is showing the error message as below. Field BSEG-SKFBT. does not exist in the screen SAPMF05A 0302 Message no. 00349 Diagnosis The specified field does not exist on the screen. Procedure Check

  • Some interview Question?

    hello all, as this forum has many brilliant minds, i have some interview question, if you mind please let me know the answer.... q1. default level at which validation accurs? q2. in which case property pallet display **** as a property value, what it