Multiple undo and redo
Will Revolution ever support multiple undo/redo? This seems like a pretty basic thing to have for a mature product. I cannot imagine why it is missing, even in the script editor. I think this has gone beyond the point where it is that would be something nice to have. Lacking multiple undo/redo is a problem. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Multiple undo and redo
In the Script Editor as well as in the form designer (for lack of a better term). In fact, while designing forms, even basic Undo itself does not seem to work. I'm using beta 2.8. Create a new stack. Create two buttons. Delete one of the buttons. Go Edit-Undo, and nothing happens. Imagine if this button had all the scripts for your application. This is a problem. -Ben Fisher wrote: Will Revolution ever support multiple undo/redo? Are you wanting this just for the Script Editor, or are you looking for an API to implement multiple-Undo in your own apps? -- Richard Gaskin Managing Editor, revJournal ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Looping over all controls
Is there a convenient way to loop over all controls in a card or group? I could keep a list of IDs, adding and deleting as necessary, but this isn't so simple. In the past I have used: repeat with x = 1 to the number of btns in this cd if there is a btn x then --Do something with this btn end if end repeat But it seems error-prone and not the best way. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Multiple undo and redo
As far as the form designer goes: I understand that this is not trivial. I assume that your point is that anything done from, say the message box, would be hard to keep track of and undo. True. It would be reasonable if basic IDE actions could be undone. Other form designers can accomplish this. ( Right now it appears that moving an object can be undone, and typing, but little else. The menu is not grayed out, but selecting it does nothing. ) Reasonable undo capabilities: I refer to a stack, meaning LIFO data structure. Create a stack in memory called data_undo. When a basic action is performed, say the user selects a button and presses Delete, the following could happen: - If the stack is too big, say 10 elements, get rid of the oldest element. - An action saying Delete and the button data is pushed into data_undo, in whatever internal representation of a button is used. The user now selects a new item. No action is recorded, because this action is ignored. The user types in something in the message box and presses enter. No action is recorded, because this type of action is too hard to keep track of and could have multiple effects. The user switches tools. No action is recorded. (The way Revolution is now, switching tools clears the Undo.) The user begins editing a lengthy and complicated group script. While in the script editor, undo and redo are handled by the script editor. The user presses Ctrl+G, thinking that this will be the shortcut for Go to Line. Instead, the message is passed to the IDE which ungroups the selected objects, effectively deleting the group script and properties without warning. The user is still able to undo this Ungroup command by using Undo. In the script editor: there is no good reason. I have written undo for small scale text editors, simply by remembering the last 10 states. It is not like this is storing images in memory or something. -Ben --Have you ever implemented Undo for a scripted application? -- -- Richard Gaskin Managing Editor, revJournal -- ___ -- Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Looping over all controls
Thanks. This works, repeat with x=1 to the number of controls in this cd put word 1 of the name of control x into controltype if controltype is button then ... else if controltype is field then ... end if end repeat look in the dictionary for controls Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: Revolution back to HyperCard
I was wondering if somebody knew or could provide a very simple XCode project of an external function that I could use as a starting point (some kind of Hello World! would do). For now I ended up with a project that compiled a bundle, but when I set my externals to that bundle the function was not recognized (the externalFunctions is empty). A Windows user, I too was in this situation a long time ago. I was fairly adept at C but couldn't get the Externals SDK to compile, or to be recognized by Revolution. Finally, with some help from others I was able to start writing externals. (The so-called Externals SDK is an incomprehensible jumble of information that probably just confuses people when none of the sample code will compile.) I think a true how-to kit for externals would be a real benefit to the Revolution community. If I had more time, I would definitely volunteer to write the Windows part of this kit. This kit would be targeted towards people who do have at least some C/C++ experience. E-mail me at [EMAIL PROTECTED] if you would like to assist me. I hope everyone understands that externals are not a magic bullet that takes your Transcript code and magically makes it run faster. Externals are typically written in C or C++, and these languages have none of the user-friendliness of Transcript. The syntax is nearly 100% different than Transcript and the code must be compiled. -Ben Fisher ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Constellation
Well, I guess Constellation beat me to it... I had also been working on a similar script editing interface. It looks pretty nice though. Just a few comments... It seems like a lot of the plug-ins and tools for Revolution lately are being sold. There is nothing wrong with this, in fact most of the time these products look nicer and are easier to use. However, I am always more attracted to free open-source projects, not just because of the price, but also because of the spirit. Developers helping each other, one of the reasons I subscribe to this list. If I download open-source code, I can contribute to the project. All fellow developers can profit from my contributions, and not just the few who can afford to buy. Perhaps Revolution is partly at fault: that stacks (not being text files) are not as easy to be developed by a team. Or maybe I just belong to a different generation of coders? After thriving off of free software for so long, it felt kind of awkward for me to spend the money to even upgrade my version of Revolution. Paying money just to get the language? I'm sure many other potential Rev developers are discouraged by the same type of feelings. I propose that a central website be created, full of code from the Rev universe. More structured than a wiki, files would be uploaded into categories and directories, but the whole database could be quickly searched. Most importantly, there would be a section composed of tools and utilities all completely free and open source. I know websites like this already exist, but it would be so much cooler if there were one authoritative Rev Source. -Ben Fisher ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Players and menus don't mix
I've started using players, a type of control I don't use normally. However, there's one problem that is driving me nuts. It is easily reproduced. 1) Create a new stack. 2) Create a player object in the middle of the screen. 3) Create a button just a little above the player. 4) Choose the select tool, right click on the button (contextual menu), and click on edit script or something. The player object starts blinking really quickly. Revolution is unresponsive for a while but then goes back to normal. It looks a little scary but I haven't lost anything. I think normal menus, and not just contextual menus, might cause the problem but haven't tested this yet. Is this a known issue? (I'm using Rev 2.5.1 on WinXP, this might have been fixed in 2.6) -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Arrays in Revolution
I just wrote a cool library for working with arrays and matrices. Even if you don't use arrays too often, I encourage you to check it out. It has useful functions like Push, and its split and join functions don't mess with your strings the way the built-in functions do. I also wrote functions for array equality, searching an array, and two dimensional arrays. If you're interested, documentation explaining everything is online at http://www.angeltowns2.net//jamonben/libarrayutil.pdf. The stack is on RevOnline: User Space:benJam Stack: libArrayUtil 1.0 -Ben Please give me feedback and tell me if you plan on using it. I can add more features if there is interest. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
New project
Hi Revolution community, I was wondering if there would be any interest for a new utility I'm writing in Revolution. It would include a variable watcher (that can view arrays), property watcher, much-improved message box, perform operations on files/folders, script editor, command-line prompt, and maybe more. One could also define macros to perform repetitive tasks. If you have any other ideas that would be helpful for Rev programmers, please tell me and if it's not too hard I'll try to do it. This project will probably done in about a month. I really like Rev's way to set up a ui, but sometimes the scripts get a little wordy. Like after working in c++ it's hard to look at put 3 into x and take it seriously. I'm thinking about writing something in the script editor that could interpret things like x=3 and then expand them. Also it would be nice to do things like myButton.customProp = 4. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
System beep
Here's something funny and not too important: The rev docs say that the beepDuration, beepLoudness, and beepPitch properties only work on Linux. However, they work perfectly on my WinXP laptop. And you can even put in little songs, remeniscent of the Hypercard play command days. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Pointer tool in a standalone
For some reason, the pointer tool works perfectly in development but not in a standalone. In a project of mine, the user needs to resize and move graphics on the screen. I could have manually coded this using mouseUp and mouseDown, but Revolution has a built-in way to do this: the pointer tool. So what I do is set the tool to pointer tool. Then the user can move around graphics, and it works perfectly. (I use the cantselect property to ensure the user doesn't move around something that should stay.) This method works well in the development, even when Suspend development tools is on. However, when the program is made into a standalone, it doesn't work. Setting the tool to pointer yields the pointer cursor, but no graphics can be selected, even those with cantselect set to false. I think this used to work before. (The cantmodify of the stack is false and so editing should be possible.) -Ben Fisher ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Zooming in on an image
I'm wondering what is the most efficient way to resize a large image. I'm trying to create a zoom-in effect by displaying a 600x800 image and then slowly increasing the dimensions of the image (while still keeping the image centered on the screen). Ideally this would be smooth and non-cpu intensive. I wrote some code to do this. However, the results look awkward at best. At first, the zooming in is rapid, but then it slows down. After a while (when the zoom factor is about 4), the computer is bogged down and the image change is very slow and jerky. I would like to keep the rate even, although I will not know the processor speed of the client's machine. It is disheartening to me to see the performance so lousy on a Pentium 4 3.0 Ghz. Does anyone know a better way to zoom in images? It shouldn't be so processor-intensive - I tried Preview in WinXp and images easily zoom in and out without any lag. -Ben F ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Weird number behavior
Subtracting 0 from a number makes it bigger? I guess so in Revolution. set the numberformat to 0.### answer 0.91 answer 0.91 - 0 This is documented in the docs under numberFormat, but is causing me problems with some sensitive calculations. I guess you'd run against the same thing with doubles in C++, but at least there are alternatives with better precision (I.e. long double). I wish you could declare a variable so that it would have better precision. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Table behavior
I have just started playing around with fields that have table behavior. I was planning on writing a little spreadsheet program. However, it appears that the closeField message is not sent to the field when its behavior is like a Table. This can be demonstrated: create a new Table from the toolbox. Put this in its script: on closefield answer closefield was called end closefield When the user edits a cell and then clicks on a different field, no message is sent. But when the Cell Editing property of the field is turned off, then the message is sent as I expected. I'd like to know when the data in the field changes. But if closefield doesn't work (and exitfield is sent only when data is not changed) then what do you use? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Can Revolution create a large, colored cursor?
If one is interested in cursor effects, check out my Cursor Effects stack on RevOnline. User Name:BenJam Stack: Cursor Effects It works by setting the loc of an image to the mouseloc every time the mouse moves. There is no flicker because the real cursor is set to none. It would be easy to include modify my stack to add a color cursor, just replace the curs image with one of your own. Just be sure to turn the effects off when doing this. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Who do I have to pay?
My Image Processor Stack features Brightness and Contrast. It's on RevOnline User Name: BenJam Stack: Basic Image Processor. If you aren't impressed, a newer version of this stack will be online later this week with convolution and other goodies. I'm almost done with an external for doing this and other image manipulation. -Ben , ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
cursor effects
I posted a couple of cursor effects to my RevOnline user space. If you want to know how to make your cursor rotate, check it out! User Name: BenJam Stack: Cursor Effects On my Windows machine, my fake cursor blends right in with the Windows cursor. Hopefully this will still look ok on other platforms. -Ben - ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
System sleep
As far as Windows goes, there do exist shutdown programs that can be shelled to put the computer in Standby, which is like sleep. However, different versions of Windows have different ways of shutting down. Unfortunately, this is most difficult in Windows XP. Check out http://personal-computer-tutor.com/abc3/v24/vic24.htm, it looks like what you want. - Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
cursed
I have recently been plagued by a number of disturbing problems in Revolution. Suddenly, I have been getting all sorts of weird errors. I have been cursed. This started spontaneously this morning, and isn't stopping. These are some of the problems: The Error box pops up at random times, but it is completely empty, just an empty box that says RevErrorDisplay. Not even any old errors. Since my stack doesn't use any send messages or pending messages, this shouldn't happen. Changing tools in the tool box doesn't work. You sometimes have to click a lot of times just to get from Browse to Select tool. Also, in the Objects menu all of the items are grayed out. Why? When closing Revolution, you have to close each of the windows. I mean, once you click the main close box it should close everything, right? But I have to individually close everything. The toolbox stays on the screen and doesn't disappear, I've had to use alt-F4 to close it. The weirdest part is that when you open up the message box, all the time you see this message in the lower part. Got here. No script of mine does this, and it is there before you even open a stack. For now I will try replacing all of the component files and see if that fixes it. If anyone knows what is going on please help me. A Revolution virus? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Midi Comunications
Hi Mark, I too am interested in MIDI, as I have an old Casio Midi keyboard that I use occasionally. It would be really cool to see how MIDIs work and write an editor. For the past couple of years I've been playing around with the idea but never found the time. In older versions of Rev, there used to be a sample MIDI program. I think it lives at http://support.runrev.com/resources/unsupported.php This might be the first step in looking at the hex behind midis. Most good midi editors have a score view. (Of course they also cost $$$ and so I don't have them.) From playing the piano, I know how musical notation works and with a little effort could put something like that together (I.e. a program turning a list of notes into musical notation). Maybe you could use Rev's read from port commands to get data from the MIDI port? These days, most MIDI devices use USB, and so I guess they are out of reach at least for now. If you learn something cool, please tell me at [EMAIL PROTECTED] -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Record sound problem on Windows
Here's how to change the page file size on WinXP: Open up Control Panel, open System Click the Advanced tab. (I always mess with these settings :) Click on Settings under Performance Click the Advanced tab (Wow, advanced settings of the advanced settings...) Click Change under Virtual Memory Note - you don't want to make this too low, it'll mess things up. Otherwise you're fine. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Split command key order
I know that the combine command will yield a list that is not in any particular order. However, I always thought the split command would split out the keys in the order of the original list. I too was disappointed by the split and commands. One project involves turning arrays into lists back into arrays. This is pretty slow manually, and I thought that split and combine could do the trick. However, the weird order messed things up. There should be a listToMatrix function that does something like this: mydata= 1,1,1,2,3 1,1,2,3,4 put ListToMatrix(myData,comma,return) into matrx The result would be a 2x5 matrix where matrx[1,1] would be 1, matrx[2,4] would be 3, and so on. There would also be a MatrixToList which be the reverse. One could also transform 3d matrices by something like put ListToMatrix(myData,comma,tab, return). Of course you can do all of this manually through scripts but it is pretty slow, at least for the size of matrices I'm working with. Looking through the docs, there isn't much on arrays or matrices. It would be nice to have one doc page that is an overview of their capabilities. My docs don't work, but I guess that's another story. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: custom property searching speed question
What algorithm is RR using for searching? I find that I have to keep writing Boyer-Moore-Sunday search algorithms for most of the devlopment tools I use. Whatever algorithm RR uses to search the docs, it doesn't work. When I try to Search for: something, I get a spinning beach ball for a while, and then Rev stops responding. Also it is funny how the docs mention the Animation Builder several times, without ever once saying it is gone. Seriously considering a bugzilla, Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Comment on editing front scripts
Debugging front scripts that contain events like (mouseMove, mouseUp, mouseDown...), is impossible in Rev. Rev's script editor changes size erratically and buttons on the editor move to unknown places. So I switched to my trusty copy of MC to work on them. Dawg gone of MC did not give it the best try to work on them. For the most part, editing was ok. Then I realized that variables are still updating live as your mouse moves across your app to get to the script editor. Thus things start falling apart. I also have had weird results with these type of front scripts. The solution that worked well for me was to put a line like this into all of the front scripts. if the tool is not browse tool then pass mousemove --or whatever other handler That way, when editing scripts all I had to do was switch to the select tool and all of the frontscripts would be disabled, and editing scripts worked ok again. Best of all, this line doesn't need to be removed after you're done debugging and ready to compile. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: rev and zip files
There is a way to zip files or even folders without an external. I did this by shelling another zipping utility. To be even more sly about it, the zipping executable is embedded in the stack in a custom property. It's on RevOnline. User Name: Benjam Program: Windows ZipFolder This program only works for windows. Also, it hasn't been tested that well. If it doesn't work please e-mail me at [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]. -Ben P.S. Is it true that you can read from the standard input and output from a exe? Is this the same iostream that c++ uses? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
image contrast and brightness
I think someone was wondering how to do Contrast and Brightness effects on images... Anyways I made a little stack to do this and other effects. It's actually pretty fast without using any externals. Please check it out and give me some feedback. User Name: Benjam Program: Basic Image Processor Right now the code may be hard to understand. I'll update it soon with better comments. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Arrays
Thanks Phil and Mark. It seems like Rev is really lacking documentation about its array and matrix capabilities. I like the idea of having flexible arrays, I.e. myArray[key]. Is there a page in the docs that specifically outlines what array features there are? (Whenever I try to search for something in the docs, the spinning-beach ball cursor appears but Rev crashes.) I'm having problems using the combine and split commands; for some reason the data never is processed quite correctly. I'm working on image processing. Let's say I wanted to lighten every shade in the image by 2. The way I do this now is by getting the chartonum of each char in the imagedata (except for every fourth char which is always 0), adding 2, getting the numtochar, and putting this after a variable. Then I set the imagedata of the image to that variable. It works great, but it's a little slow. Too slow for a smooth animation which is what I'm trying to accomplish. Is there a way to directly add something to the imagedata in binary? For example, adding 2 to all the red in an image in one step rather than going through all the data manually. Or is converting binarydecimalbinary necessary? -Ben In fact, it isn't necessary to set the the customPropertySet if you don't need to access elements of it directly. If you simply want to store an array you can do this: ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Arrays
I'm using fairly large arrays. These need to be stored as a file on the hard drive or in some other manner. The trick is that they have to be quickly retrieved. The way I'm handling this now is to write all the elements of the array into return-delimited data, compressing this data, and then writing it to the file. This is slow to retrieve. I know that it's slow to find the nth line of something, but I can't think of another way to delimit the data. Can anyone think of a way to store an array? Can it be saved into the stack somehow? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
shell start
You'll need to separate that into two different lines. Try putting a return after myLocation. If you're still having problems, I've found that sometimes if you write all the shell data to a temporary .bat file it will work better. That way also you can debug by examining the .bat to make sure the commands look right. A tip:If myLocation isn't on the same drive as the SBUnet.exe program, your shell might not work. The cd command will change the directory but *not* the drive. This used to drive me nuts. -Ben Can anyone please tell me why this isn't working... get shell(cd myLocation start SBUnet.exe quote targetURL quote) I'm trying to launch another instance of my program, with the URL I supply. Unfortunatly it doesn't do anything. This should work...shouldn't it? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Selecting or deleting in an image by color or color range?
Here's something I would use: (put in the script of the image) on mouseUp put the mousecolor into mcolor put numtochar(0) numtochar(item 1 of mcolor) into hexcolor put numtochar(item 2 of mcolor) numtochar(item 3 of mcolor) after hexcolor put numtochar(255)numtochar(255) numtochar(255)numtochar(255) into blankcolor put the imagedata of me into idata replace hexcolor with blankcolor in idata set the imagedata of me to idata end mouseUp Now isn't that elegant!! This will turn all the instances of that color white, or at least it should. You'll need to use maskdata if you want to make the areas transparent. (This script is untested.) -Ben Can an image have a selection by color or color range from within Runtime so as to delete that color or range of colors in the image? It would be like the eraser tool for a color. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Open Control Panel via Shell in Rev
Hi Derek, This page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/conpanel.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/conpanel.asp should answer your question. -Ben -quote- The user or an application can start a Control Panel item by executing it directly from the command line prompt. An application can open the Control Panel programmatically using the WinExec function. WinExec(c:\windows\system32\control.exe, SW_NORMAL); The following example shows how an application can start the Control Panel item named MyCpl.cpl by using the WinExec function. WinExec(c:\windows\system32\control.exe MyCpl.cpl, SW_NORMAL); When Control Panel starts, it immediately executes the Control Panel item MyCpl.cpl. After the user finishes using the item and closes it, Control Panel ends. When you use the WinExec function, the system can recognize special Control Panel commands. control.exe desktop Launches the Display Properties window. control.exe color Launches the Display Properties window with the Appearance tab preselected. control.exe date/time Launches the Date and Time Properties window. control.exe international Launches the Regional and Language Options window. control.exe mouse Launches the Mouse Properties window. control.exe keyboard Launches the Keyboard Properties window. control.exe printers Displays the Printers and Faxes folder. control.exe fonts Displays the Fonts folder. For Windows 2000 and later systems: control.exe folders Launches the Folder Options window. control.exe netware Launches the Novell NetWare window (if installed). control.exe telephony Launches the Phone and Modem Options window. control.exe admintools Displays the Administrative Tools folder. control.exe schedtasks Displays the Scheduled Tasks folder. control.exe netconnections Displays the Network Connections folder. control.exe infrared Launches the Infrared Monitor window (if installed). control.exe userpasswords Launches the User Accounts window. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Selecting or deleting in an image by color or color range?
Oops, The script worked for everything I tried. I guess in theory it might possibly erase unintended colors, although the odds of this are slim. In imagedata the colors are handled as a set of four, with the first entry always being zero. My solution might, trying to delete the color 0,12,12, end up accidentally turning the color (0),12,12,13 into (0),0,0,13. A revised solution would use offset to find matches. If the mod base 4 of the offset isn't 1, then don't replace. This hopefully would fix the problem. Tell me if you need clarification of this. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Standalones
That's too bad that you can't build for classic on Windows. I use a PC and all the computers at my school are mac classics. Using Dreamcard player won't work for me. Martin, that's a good idea. Could someone please look into this? Or maybe an enhancement in Bugzilla? -Ben I wonder if it would be difficult for RR to make a module for PPC which *only* built classic standalones. I mean no IDE or any of that, simply a standalone builder that you could download. You would still need a Mac to run it, and perhaps a valid license key for Windows or Unix, but you wouldn't need to buy 2 copies of studio just so you could still build a Mac classic standalone despite the fact that you do the development on windows. Just musing aloud, ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
copy image from application browser
Hi Bob, There's a quick way to do this. Using the select tool, right-click on the image and choose Launch Editor. Now you can find the Photoshop application and click ok. From then on, you can use Photoshop to edit all of your images. When you're done editing, just save and close and Revolution should update the image. Or if you want a more general way to edit a picture on the screen, hit Alt-Printscreen. Then the contents of the screen will be in the clipboard, and you can paste into photoshop. I generally use this method. In a script you can use the Import Snapshot command. See docs for more info. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
How to paint a background and place graphics on top of if?
Hi Thomas, If I understand you correctly, you're trying to make a background with a pattern that can scroll. I'm not really sure exactly what you're trying to do but here's a simple way to add a pattern to an object. 1) Use the rect tool to draw a rectangle graphic. 2) Open up the properties inspector and edit Colors Patterns (on the menu). 3) Click on the light gray box just to the right of the word Fill 4) Choose a pattern. Look under Default Patterns or MetaCard Compatible Patterns for some good ones. If you want to set this pattern in a script, just remember the ID of the pattern you chose and then use this line. set the backgroundpattern of graphic myGraphic to patternID Or if you want to use your own pattern, import the image and remember its id. Then use the same script. set the backgroundpattern of graphic myGraphic to imageId I'm not familiar with Cliptrect and so I'm not sure what you're trying to do as far as the objects on top. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Standalones
I'm using Rev 2.5 on Windows XP. When I open up the Standalone Application Settings, the Mac OS icon is grayed out. I'd like to be able to save as a Mac classic standalone. Is this still possible? I'd rather not have to use Dreamcard Player. I am a Studio user. Doesn't this mean I can save standalones for all platforms? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: What do most Rev developers do?
Are most of you using it for educational software, or to help with projects at a large company, or for independent programming for small businesses? Just curious, Jonathan I learned Hypercard when I was in 3rd grade. I made all sorts of animations, I.e. Copy Card, Paste Card, move the ball, Copy Card, Paste card, move the ball... Hypercard was a really fun tool and I still use it occasionally for kicks. You can make some great games. Having learned C++ and Java, I really appreciate things that other Rev developers might take for granted. These languages might have speed, but they really fail when it comes to graphics or multimedia. Do you know how many lines of code it takes in Java to make a set of radio buttons behave correctly? Now, I use Revolution for a lot of things, none of them having to do with money. I wish like others on this list that I could use Rev in a job. (I don't have a job right now; I'm just a high school student.) I'm creating simple models of physics phenomena. (Supposedly Java is the best for this, not in my opinion.) My graphing calculator and primitive computer-algebra-system is about a quarter done. I also wrote a really big Civil War strategy game. If any of you are into fractals like me, I wrote a plugin in Rev for Ultra Fractal 3 that lets you make fractal animations. Soon I plan to make a Page-Maker style layout manager for rev. Although I still have a few HyperCard bad habits, my xtalk writing is very fast, sometimes even faster than typing in English :) -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
externals kit
Thanks for the response, everyone. I'll get started with the externals kit as soon as possible. Unfortunately, as far as porting existing dlls into rev use is a little beyond me at the moment. I learned C++ on a mac system don't really know how to reference a dll. I'm not actually as experienced in c++ as I might have came across. This idea has real potential though. It would be cool to use DirectX's 3d capabilities within a rev stack. So far my external ideas (beyond simple examples) are: A math library for number crunching A fractal program A MIDI library for importing and exporting -Ben P.S. Does anyone know how to retrieve MIDI data from that port? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
externals kit
Hi Revolutionaries, I'm planning on making a kit/instructions on how to create externals for rev (in c++). I would include a detailed pdf on C++ and have examples of common tasks for externals. This would all use a free compiler such as Dev-C++. Would anyone be interested in paying a modest fee for this? What features or content would you like to have? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OT-distribution to MAC OS 9.1 users
Any clue on how to proceed from here? Meanwhile back to search for some location on the internet where and old copy of StuffItExpander is still available. Hi Sannyasin, I know exactly what you mean. It's hard to find classic software these days. Also I suspect that e-mailing will not work because Resource forks are typically not sent correctly. I happen to have a couple of old stuffit expander versions on an old mac. I'm not sure about the version though. Just e-mail me [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] and I can e-mail them to you. try this, looks promising. http://mac.iconet.com.br/preview/206997.htmlhttp://mac.iconet.com.br/preview/206997.html -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Disappearing Image?
I just submitted the bug to Bugzilla (first time I've used Bugzilla) If this is as annoying to you as it is to me, please help by voting on this bug (#2560) I've found a couple workarounds. It seems like if you change other things in the properties box (blend, etc.) and then change the name, all is normal. Also changing the name in a script causes no difficulties. Summary: Changing name of image makes it disappear Product: Revolution Version: 2.5.1 A3 Platform: PC OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: Images AssignedTo: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] QAContact: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] -Ben Recently I have come across a disturbing error while creating a game in Rev. I have imported a few graphics as controls (not referenced). The weird part is that when I change the name of the graphic and close the properties box, the image *disappears*. The control still exists, but all of its imagedata transparent. This only happens when the name is changed with the Properties box. When I change the name through a script, it works fine. I'm pretty sure that this isn't supposed to happen. In further investigation, it seems that the imagedata of the image is changed when its name is changed. Why this should happen I don't know. Also, changing the name will sometimes work normally when other properties are changed in the Properties box. I'm using the latest rev 2.5 on winxp. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Disappearing image?
Recently I have come across a disturbing error while creating a game in Rev. I have imported a few graphics as controls (not referenced). The weird part is that when I change the name of the graphic and close the properties box, the image *disappears*. The control still exists, but all of its imagedata is transparent. This only happens when the name is changed with the Properties box. When I change the name through a script, it works fine. I'm pretty sure that this isn't supposed to happen. In further investigation, it seems that the imagedata of the image is changed when its name is changed. Why this should happen I don't know. Also, changing the name will sometimes work normally when other properties are changed in the Properties box. I'm using the latest rev 2.5 on winxp. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Icon help
I need Icon help! I have a program IconCool Editor 4.0 but the icons are not compatible with Rev programs. What icon Editor do I need? This is my last step of making my first Rev program. Paul, I've come across this problem in making windows icons too. In earlier versions of Rev, only 16-color icons were accepted, but now it seems they've gone overboard and 32-bit color icons are *required*! :( Windows .ico files are built of many parts. These different icons will be displayed based on available colors or size. According to Rev, icon files must have these parts: 16 Color 16x16 16 color 32x32 16 color 48x48 256 color 16x16 256 color 32x32 256 color 48x48 Windows XP (32-bit color) 16x16 Windows XP (32-bit color) 32x32 Windows XP (32-bit color) 48x48 I used to use IconEdit32, which supported all of the formats except for the last three. Now, I guess I'll have to use another program. IconCool Editor 4.4, I know, will support xp icons and I'm surprised it won't work for you. The Microsoft site http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/winxpicons.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/winxpicons.asp says to use a program called Gif Movie Gear. (?) It's shareware. Icon Sushi supported the right files, but it was very frustrating to use. Axalias will probably work, you can try a trial version. http://www.axialis.com/iconworkshop/http://www.axialis.com/iconworkshop/ I too am very frustrated that apparently you cannot create custom icons for a rev app without paying for some other icon software. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
icon help
Finally have found a good icon editor for win xp. Frontbase Image to Icon. http://www.make-icon.com/http://www.make-icon.com/ It will support and automatically create these formats. 16 Color 16x16 16 color 32x32 16 color 48x48 256 color 16x16 256 color 32x32 256 color 48x48 Windows XP (32-bit color) 16x16 Windows XP (32-bit color) 32x32 Windows XP (32-bit color) 48x48 without having to do anything, the icon will be compatible with rev. You can download a trial version. I tried exporting an icon, and then loading it in Revolution standalone settings and it worked! I still don't see why rev has to be so picky about icos, though. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
jpg graphics
I need to insert text information in a jpg graphics then when the computer loads the pics, I want the information extracted and used in the program. Any one know anything about this? Paul, You know how ID3 tags can reside in an mp3 file and store info about title and artist? There are several tag formats like this for graphics. Try looking up IPTC or NAA, which are compatible with jpgs. For example, in Photoshop you can go File - File Info and enter in comments that will stay with the file. I have no idea how to retrieve them in rev, though. I think the answer will be on the internet somewhere. Probably you will have to search the hex data of the jpg for a certain header that indicates IPTC. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
rev burning cds
Matt, You could try shelling a DOS program for burning cds. http://www.goldenhawk.com/freeware.htmhttp://www.goldenhawk.com/freewarehtm looks interesting, should have a finalize and other features. There's a huge list of dos tools at http://www.opus.co.tt/dave/index.htmhttp://www.opus.co.tt/dave/index.htm I don't know about osx, but there might be some program out there. As far as I know, rev has no way to directly burn cds. In WinXP, you can just drag a file from explorer on to the cd and it will burn. Maybe revcopyfile or put url will do the same? I haven't tested. -Ben Hi all. Does anyone have experience burning CDs using Rev? We are building a prototype and need some way of burning to a CD (preferably/eventually at System Level, OSX and WinXP). We need to control much of the process, ie multi-session etc. Any suggestions? Cheers M@ Matt Denton ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
iTunes-like software
Hi Richard, Check and see if you can get a version of MusicMatch. Even though it appears they are abandoning their mac versions, it still would be worth it to get a copy, and they should have something for classic. From what I hear it is the only free ripping program for classic. I have musicmatch on my dell and it is perfect for ripping cd's, and it even supports mp3pro (a really nice upgrade to mp3 with no loss in sound quality). The music library is also nice. At least on the windows version, it supports transferring mp3s to any device. The way to do this is to go View- Portable Device Manager. Any of you have a recommendation on an iTunes-like package for Classic? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[no subject]
Jim, have you tried rounding the number? I know it shouldn't make a difference but maybe it's a problem with using floating points. Jim on mouseUP set the loc of grc ball to 100, 100 put .1 into dx put .1 into dy put the loc of grc ball into tBallLoc repeat 5000 add dx to item 1 of tBallLoc add dy to item 2 of tBallLoc -- set the loc of grc ball to round(item 1 of tBallLoc), round(item 2 of tBallLoc) --wait 1 millisec end repeat set the loc of grc ball to 100,100 end mouseUP -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[no subject]
hi i want a premade website for free Cory, here's a site with webpage templates for free. http://freesitetemplates.com/templates/browse/frames/ http://www.free-webhosts.com/free-website-templates.php Then you could upload that onto a free web hosting service, which will put your site online for free. Sometimes these hosts will have ads, but the best don't have any. Search for them here at http://www.free-webhosts.com/ http://www.000k.com/refer.php?id=benjam0 - best ever! go there now if you want free hosting! This service is really good - you get 125 Mb of space and no ads It's a little complicated to set up, just click Order Service -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Circular Object
Hi Folks... I'm looking for an object that is circular and has the 24 hours of the day divided up into quarter hour segments where each segment is an object that can be clicked. Has anyone created one of these? Jim Jim, It wouldn't be that hard to do using some trigonometry :) But there's an easier way. If you're looking for a pie-slices type diagram...you could use arcs of a circle graphic. For example you would have 24 identical circle graphics, all centered on the same point. Then you would set the arc angle of one of them from 0 to 15, the next from 15 to 30, from 30 to 45, and so on until 360. That way you'd have a pie chart - type graphic with each segment an object. You could further subdivide using smaller angles. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Set icon of button to a graphic
How can I convert a graphic to an image? Bill, You can just take a snapshot of the screen. When you have the graphic looking the way you want it, it cmd-shift-F3 (mac) or alt-printscreen (pc) to take a screen snapshot. Then use a graphics program to save this as a png, adding transparency if you want, and then import it back into the stack as an image. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Compressing folders in WinXP
http://www.angeltowns4.com/members/ben/RevCompressXP.zip Here's my program to zip/ unzip folders in Windows XP, and probably other versions of windows. All of the files in the package are necessary. Of course, this is a really messy way to do it, but it works. Because the command-line utility I used didn't support absolute paths, things get really messy - the files to be compressed are copied to a temporary directory. I'm sure there's a more efficient way to do this. In the card script are two mini programs that will shell several lines at once, and also remove a directory using dos. It might not work in other versions of windows. It is snowing very heavily :) no school today here in the northwest corner of Washington state. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Writing externals
I'm a pretty experienced Revolution user, but I'm new to externals in the form of dlls. I'd like to create these, but I only have the Borland C++ compiler which I hear doesn't work for externals. Could someone please come up with a list of the languages or compilers that are compatible? Hopefully those compilers are available for free. The guide in RunRevExternalSDK seems a little complicated. Maybe it would help to have a simple example. It'd be cool for someone to make an IDE for creating externals in C. I'll do it as soon as I understand myself. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[no subject]
What is the perpendicular distance between a point and a line? Application for which there is no redeeming social value: Thanks for sharing that code, James. I'm taking calculus right now and that type of thing might come in handy. Also thanks for not using repeat until the mouse is up. I always make that mistake because of hypercard habits. -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Webserver
Hi Ton, I've actually just started a program that would do just that. It uses a DOS command-line utility(http://www.7-zip.org/http://www.7-zip.org/) to zip the files, (I guess this won't work on PC, unless you can find a OSX shell program?). When I'm done - like next week - I'll let you know if you want. The intention of my program is to batch compress or uncompress a lot of files at once. -Ben Hi, I need to upload a folder containing files and subfolders to a webserver. No problems in setting that up using RR, but I need to compress the folder first... The compress function only works on files, has anyone created a FolderCompresser which works on both Mac and PC? The result should be a compressed file which can be uncompressed on a Windows server using WinZip. Any help would be welcome. Warm regards, ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
[no subject]
Thanks, -Ben Yup. See the files function in the dictionary, particularly the detailed files option. That gives this info. and the convert function that is able to show the seconds of the creation and modification time in a specific date: ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Pixels
Hi, I was wondering if there is some way to draw pixels directly onto the screen without having to create an object. My program (it's for a math class) creates a list of pixels to be drawn on the screen. Right now it clicks using the pencil tool and is *very* sluggish. Probably creating graphic objects for these points will be even slower. The only other idea I have would be to write to imagedata, and then to put that in an image and display it. This might be slow also though, and would be complicated. Is there a way to just draw a pixel on the screen (without an object), like in Java? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
File info
Hello Revolution Wizards, I was wondering if there's some way to retrieve the Created or Modified dates from a file. I'm using Windows XP. I have a feeling this data isn't stored in the file itself, but then where could it be? -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Using QT Transitions
Okay, but wouldn't that bring up a dialog box for the user of my stack? I would like Card A to gradient wipe to Card B without asking the user. I'm still not getting it. Mark G. You don't have to put the answer effect in your script that runs every time. Just put it in the message box, because it only needs to be run once. answer effect if it is not empty then set the myCustomEffect of this stack to it Once you have the effect data, it can be placed in a custom property and can be retrieved w/o having to use answer effect. No one needs to see the dialog again, the data is stored in myCustomEffect. Then, put this into the script you want. visual effect (the myCustomEffect of this stack) go card My Card -Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution