Search found 109 matches

by TheMartian
Sat Apr 10, 2010 8:30 pm
Forum: General programming
Topic: A screendump program the Hollywood way
Replies: 0
Views: 3645

A screendump program the Hollywood way

Hi Here is a Screen dump program that will dump any selected area of the Desktop to the RAM: disk as a .BMP file. Multiple dumps are possible. I kind of like the idea using of a Hollywood display as the marker for which area to dump. It saves a lot of work because displays can be resizable and dragg...
by TheMartian
Sat Apr 10, 2010 7:53 pm
Forum: Hollywood bugs
Topic: ShowDisplay() fails if display outside of visible screen
Replies: 3
Views: 5908

ShowDisplay() fails if display outside of visible screen

Hi If I move a display partly outside the visible screen and later hide and display it i get a message like this: Unable to change displaysize to 1024 x 1024 ...(if that is the size of the display). The code below triggers the error as my display has the dimensions 1920 x 1200. So 300+1024 is beyond...
by TheMartian
Sat Apr 10, 2010 11:00 am
Forum: Hollywood bugs
Topic: GrabDesktop does not grab sections of Desktop
Replies: 1
Views: 3827

Re: GrabDesktop does not grab sections of Desktop

Hi again

Ouppps - SOrry. Just got it... :lol:


I need to write it like this:

GrabDesktop(10,{x=x,y=y,width=w,height=h})

So - no problem after all.

regards
Jesper
by TheMartian
Sat Apr 10, 2010 10:56 am
Forum: Hollywood bugs
Topic: GrabDesktop does not grab sections of Desktop
Replies: 1
Views: 3827

GrabDesktop does not grab sections of Desktop

Hi I was programming a small utility to grab a section of the desktop and store it as a BMP picture. For this I used the GrapDesktop function. However it seems to ignores the parameters in the table (x, y, width, height) and just copies the entire desktop whether the parameters are there or not. I u...
by TheMartian
Sun Apr 04, 2010 8:17 pm
Forum: General programming
Topic: How to make Powerbar?
Replies: 3
Views: 6294

Re: How to make Powerbar?

Hi again It occurred to me that it might be better to actually come up with some code. So here we go... :P regards Jesper /* This is an example of one approach to creating a powerbar that is colored using a gradient running from blue (representing 0%) to red (representing 100%) */ /* First we create...
by TheMartian
Sun Apr 04, 2010 3:50 pm
Forum: General programming
Topic: How to make Powerbar?
Replies: 3
Views: 6294

Re: How to make Powerbar?

Hi I think that the easiest way to implement such a powerbar would be to first create a brush representing the entire bar with the colorsheme you are looking for and then simply copy as much of it from the left (assuming that 100% is to the right) as your 'powerrating' requires to a layer. This laye...
by TheMartian
Sat Mar 27, 2010 8:23 pm
Forum: Hollywood bugs
Topic: exe bit not set when compiling to JXFS partition
Replies: 3
Views: 6134

Re: exe bit not set when compiling to JXFS partition

Hi The results from running the test program is as follows: Writing to the RAM: drive. Read, Write, Execute and Delete bits set. Archive and script bits not set. Writing to a JXFS formatted partition: Read, Write, Delete bits set. Execute, Archive and Script bit not set. I did change the test progra...
by TheMartian
Thu Mar 25, 2010 11:59 pm
Forum: Hollywood bugs
Topic: exe bit not set when compiling to JXFS partition
Replies: 3
Views: 6134

exe bit not set when compiling to JXFS partition

While testing Codebench SE 0.13 for Hollywood I noticed that whenever I compiled a script the .exe file created would not immediately execute because the execute bit was not set for the created file. I thought it was a quirk in Codebench. But I stand corrected. Codebench works fine. The problem happ...
by TheMartian
Sun Feb 28, 2010 12:55 pm
Forum: General programming
Topic: Some ways of making you Hollywood code faster
Replies: 0
Views: 3630

Some ways of making you Hollywood code faster

While looking at ways of optimizing the code in one of my programs I did a small test on some appearently straightforward code that surely must be in use in many places. To my surprise a change in this simple code gave a considerable speed increase. The test was made on a 733MHz SAM-Flex. I use the ...