Google
www ResExcellence

Application Makeovers
Desktop Snapshots
iTunes Skins
Mighty Mouse Cursors
Uploads
Boot Images
Dock Poofs
Links List
Photoshop Goodies
Users Forum
Boot Panels
Download Stats
Log-In Panels
REALbasic
Clocks
GUI Software
Mac OS X Mods
Safari Stuff
Desktop Pictures
Icons
Mac OS X Themes
Splash Screens
Homepage
Download a free demo of REALbasic!
Download a free demo of REALbasic!
Recent Articles...
3D
3D Photo Gallery (Part 2)
3D Photo Gallery (Part 1)

Audio
iPod Tricks (Part 3)
iPod Tricks (Part 2)
iPod Tricks (Part 1)
Laugh Track Machine
Audio Player with Reverb
Shepard Melody
RB Phone Home
Build a Drum Machine

Custom Controls
Custom Buttons
Custom Buttons Part II
iTunes-style Listboxes
Custom Controls

General RB
Wiggle Window
JPEG in PDF
Hey! You got your Checkbox in my Listbox!
Background Applications
Listbox Auto-Find
Virtual Volumes
Time Tracker
Software Distribution (Part 4)
Software Distribution (Part 3)
Software Distribution (Part 2)
Software Distribution (Part 1)
Exceptions
Living on the Edge
Tips and Tricks
Review of REALbasic 3.0
Text Clippings Made Easy

Graphics
Image Spinner
Cropping Graphics (Part 4)
Cropping Graphics (Part 3)
Cropping Graphics (Part 2)
Cropping Graphics (Part 1)
Shimmer Graphics
Lissajous Figures
Simple Screen Capture
Vector Graphics
Kaleidoscope Images
Stegonography
Spirals!
Image Table
RB Magnifying Lens
Screen Capture
Color Picker Tutorial

Hacks
Ghost Grab
Speedy Mouse Extension
iTunes Plugins
iTunes Skinner

Internet
Display Web Image In Canvas
HTML IMG Tags
Version Tracking
Even Smarter Instant Messaging
Web Tiler
JavaScript and REALbasic
Stock Ticker (Part 2)
Stock Ticker (Part I)
AIM Mate

Mac OS X
Using Sheets in REALbasic
Build a Bundle (Part 2)
Build a Bundle (Part 1)
Dock Your Passwords
Mac OS X Debugging
REALbasic Mac OS X Icon Tutorial
Animate Your Dock
RB and the Command Line

Novelty
Guessing Game
Calendar Trivia
Tile Mixer
Zip Code Finder
Happy Valentine's Day
Merlin Simulator (Part 3)
Merlin Simulator (Part 2)
Merlin Simulator (Part 1)
Buzzword Machine
AppleSoft BASIC

Printing
Print to PDF

Registration
Registration Code Validation

Resources
Picture Extractor (Part 2)
Picture Extractor (Part 1)

Serial
Caller ID (Part 3)
Caller ID (Part 2)
Caller ID (Part 1)

Speech
Speech Recognition

Video
Big Brother Video Capture

Newest Dev Tools!

Book Alert !
REALbasic for Dummies
by Erick Tejkowski
$19.99 @ Amazon

Made with REALbasic!

Problems?
Downloads are in StuffIt 5 format (free download).
Tell me about a bad link (Thanks!).
Submission Policy

9-12-02

Simple Screen Capture for Jaguar by Erick Tejkowsi

Mac OS X 10.2 added a new command line tool called screencapture. This handy command lets you take screenshots in all sorts of ways. The problem? There are so many options that it begins to become difficult to remember what everything does. REALbasic comes to the rescue! Today we'll build a simple 5-minute project that lets you add an interface to this powerful new command line tool.


Build the Interface

The interface this week is really simple to create: one PushButton and two RadioButtons. When you add them to a window, leave their default names as is. (i.e. PushButton1, RadioButton1, and RadioButton2).

  • PushButton1 - Caption = "Capture"
  • RadioButton1 - Caption = "Clipboard"
  • RadioButton2 - Caption = "File on Desktop"

Arrange the interface any way you want. Mine looks like this:

09-12-02_interface.jpg (20k)

Source Code

Like the interface, the code this week is also simple. Double-click PushButton1 and add the following code to its Action event:

  
  Dim s As Shell
  dim d as date
  dim f as string 
  
  //NOTE: Mac OS X 10.2 or higher required
  s=New Shell
  If TargetCarbon then
    if radioButton1.value then
      //capture to the clipboard
      s.execute "screencapture -c"
    else 
      //capture to a file
      d=new date 
      f = str(d.totalSeconds)+".pdf"
      s.execute "screencapture ~/Desktop/" + f 
    end if
    If s.errorCode<>0 then
      MsgBox "Error Code: "+Str(s.errorCode)
    end if
  end if
  

Keep in mind that this project only covers a few options available to you with the new screencapture command. To learn about the other features, use the man command:

    man screencapture

With just a little effort, it wouldn't be too tough to add the rest of the options.

Conclusion

That's it for this week. Select Debug->Run to test your work. As usual, you can download the finished project. See you next week!


9-10-02

REALbasic News by Erick Tejkowsi

Game Creation - MWRB
SilverNetworks has released a bug fix release for their free game creation program, SilverCreator, version 1.0.1. You can download SilverCreator v1.0.1 now for OS 7.5.5 - 9.2.2 and Mac OS X. All of the runtime packages are included for easy compiling.And, of course, SilverNetworks is Maade with REALbasic.

I Declare!
Kevin Ballard has updated the popular Carbon Declare Library. It includes a few new functions and some bug fixes. Check it out!

Apple GUI Guide
Apple has posted an informative piece for "switchers" (read: ex-Windows geeks) about the Mac OS interface. Despite being intended for the "switching" crowd, it serves as a nice introduction to some important GUI features of Mac OS X, which you can put to use in your everyday REALbasic activities.

Marc Zeedar Tutorial and Review
Marc Zeedar begins his coverage of the latest REALbasic release by looking at the many subtle improvements in REALbasic 4.5. While we're on the topic of Marc, you can also find a handy tutorial by him called SimplePaint

easyPalette
fracturedSoftware has announced the release of easyPalette preview1. easyPalette makes it fast and easy to add cross platform, customisable tearoff palettes to your REALbasic project ( win32 palettes will be available in the next release ).

PrintWindow
For those who would like to print things under RB (e.g. text, styled text or graphics) on Windows and Mac, Tony Barry has made available an RB project called PrintWindow. What does it do?

  • It provides a styled editField which you can type into, and print from.
  • It gets around the current dysfunctional StyledTextPrinter on Windows, which does not print styles at present.
  • It also provides a Print Preview window, to save paper and show what the printer will actually print.
  • No plugins are used in the project. It is being released as donationware, and the source code is ... well, all there.


Application Makeovers
Desktop Snapshots
iTunes Skins
Mighty Mouse Cursors
Uploads
Boot Images
Dock Poofs
Links List
Photoshop Goodies
Users Forum
Boot Panels
Download Stats
Log-In Panels
REALbasic
Clocks
GUI Software
Mac OS X Mods
Safari Stuff
Desktop Pictures
Icons
Mac OS X Themes
Splash Screens
Homepage

Maintained by the Staff of ResExcellence. This entire site ©1997-2003 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.

[an error occurred while processing this directive]on the ResEx LinuxPPC Server