topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 22, 2019, 12:53 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pigeonlips [ switch to compact view ]

Pages: [1] 2 3next
1
Ecaradec's Software / Re: Qatapult
« on: April 23, 2012, 07:28 PM »
nice thanks.

couple of things .

Typo in my last comment.

#> textex just pastes text. Can be fixed by changing line 13 to " <script>paste(qatapult.getArgValue(0, "status"))</script> "

lol textex just pastes "Test" - pasting text doesnt sound to bad.

Also i'm working on another skin. Don't know if its something that's just affecting me, or by design but i can not draw anything > 600

eg
ui.fillRectangle(0, 0, 1680, 50, 0x88FFFFFF);
ui.drawInput(10,10, 1680, 50);

tried all sorts of widths but it looks like i can only get up to 600? ANything over this causes the fillrectangle to just draw a box 600 in w, draw input stops displaying after 600. I only ask as I was going to try my hand at a new skin that expands the whole monitor.


2
Ecaradec's Software / Re: Qatapult
« on: April 18, 2012, 06:05 PM »
wow - been a way a while.

Just downloaded the new version :) am very happy :)

Not read over everything i have missed so far but can report that i have the same problem as ewemoa.

#>If i create a shortcut to qatapult.exe called "scqatapult.exe" an select that one in the first pane it works fine( i see reload, quit etc).
#>If i select the actual exe just get the default verbs.

Also noted another thing:

#> The catalogs dont seem to work. If you type "(CAT" pick one from pane 1 you can open it but not action anything?
#> textex just pastes text. Can be fixed by changing line 13 to " <script>paste(qatapult.getArgValue(0, "status"))</script> "

I was a very nice surprise to see my skin bundled in the zip when i downloaded the new version. forgot that i finished a better version but forgot to add it here before i went.  Heres a much nicer one. Feel free to replace the old one!




Looking forward to playing the new version of qata more. so far its looking great!

Much love

3
Find And Run Robot / Re: Searching network shares
« on: March 28, 2012, 05:22 PM »
+1

4
Ecaradec's Software / Re: Qatapult
« on: March 09, 2012, 02:02 AM »
Forgot to say - I really want to extend the skin with two things:

ID3 tag info -

and to use DWM (see this link - http://msdn.microsof...969521(v=vs.85).aspx) so that i can get it to draw the thumbnail of the window object.

Not sure how it will pan out, but incase i get anywhere fast with it, the first problem will be i dont have windows 7 to test if the DWM will work. . Anyone fancy being my gini-pig ?

Enjoy the weekend!

5
Ecaradec's Software / Re: Qatapult
« on: March 08, 2012, 10:19 PM »
Hi All,

Here's another update to the skin in case anyone wants to play around with it over the weekend and see the progress.

took another pass over the code and cleaned it up - added a few things. Got the focus in the bottom to indicate where you are to work nicely. Also made it so that's it all nicely aligned and i am mostly happy with the position of the components as its all worked out with fantastic Maths! The configuration can be tweaked at the top of the js.

Its almost ready for the "final cut" but i want to hold off on this until i can set the background to the results box.

Enjoy


6
Ecaradec's Software / Re: Qatapult
« on: March 08, 2012, 03:47 PM »
Good spot by ewemoa - i thought something felt wrong but couldnt put my finger on what!

"I'll add a fix for that, I just need to figure exactly how to do it"

any way i can fix this in the skin? Tried adding "qatapult.resultsvisible" to the if that shows the results but no success. Also tryed playing around with the "qatapult.getArgValue(focus,"status")" and text and type = EMPTY and adding that to the if, but no sucess. Now ewemoa's pointed it out its really bothering me  :D

7
Ecaradec's Software / Re: Qatapult
« on: March 08, 2012, 03:40 PM »
I was wanting to suggest this too. Good idea. It would be great to split out all the topics. (talk on plugins, skins, features, bugs etc.....)

8
Ecaradec's Software / Re: Qatapult
« on: March 07, 2012, 05:20 PM »
That's a very impressive work for a newcomer to javascript. - I've also added a few things to allow path trimming

lol - while writing and testing , writing and testing you wouldn't believe the pain i was causing qatapult and the crazy erratic behavior i got  :) - thanks for the kind comment, but i'm still worried its buggy.

also dont add to much - the learning curve is hard! LOL - just kidding.

9
Ecaradec's Software / Re: Qatapult
« on: March 07, 2012, 05:14 PM »
For text color you can use textcolor on the UI object. You can also use the fontfamily property to select a different font.

thanks i'll give this a try.

3. Uuuh ? I'm not sure about what you mean, I'll give a look at the skin tomorrow
Again i didnt explain this well. I didnt understand what was happening at first, but I think its on the matching of the status. In stead of colors i'll explain via text case. for example i type:

> appcatn

and in the bottom left by the 3 in the piture i get :

> APPliCATioN

only the Upper case text (its not really upper case - just making it that way to help explain) shows in an off white which is nearly invisible - its this text i would like to control the color off. The lower case text displays in the normal color i set so that bits fine. The only real problem is if its free text (using ' for example) then it all appears in uppercase. I understand it better now after more playing around so in a nutshell

- it would be nice to set the color of the matching text from the inputbox

4. Don't worry about the performance of getstring it's in memory, you'll run out of place on the skin before it get slow

Again i didnt explain this too well ether. I was worryed about preformance of the skin/qatapult if i coded to get properties of the object from other sources. ID3 tag of the file, EXIF info for images etc. I guess i just wanted a little hand holding, but the only way to find out is to give it a try.

I have and the new skin looks up extended properties of a FILE type. ID3 tags and EXIF are a little out of my reach for now.

I love the start of that skin

thanks :) - its still very early - It needs lots more polish. Little things like the alignment of contorls, text sizes etc. i'll make it nicer soon. Work in progress.

10
Ecaradec's Software / Re: Qatapult
« on: March 07, 2012, 04:53 PM »
For now here's a *cough* better version on the skin.

This skin is my first time ever using js so please point out anything that's wrong. Its but fugaly (code wise) but it does get closer to that "alfred app" experience.

Found out how to get the extended properties of a file.

Bashed my head against a wall trying to get data out of id3 tags, so for now album art only works if you have a cover.jpg in the folder of the mp3s listed. Lucky me i always have this. I need to include a library to get this done right but at the moment thats a little advanced for me.  Any tips around this will save me a lot off googleing

Also the extended property index of a file differ for windows OS (win Xp, 2000, vista, 7) so they need to be changed. I'll write a skin for each version, but can only test on xp.

I was using info from http://www.kixtart.o...at&Number=201630 to get them.

its still very rough but my heart isn't in getting it to look slick until it can be something other than white.

You post gives me hope. It looks nice. I cannot wait to try it out - let me know when its ready and how to set the transparency. Then i'll add tons more polish and finish it off.

If you just after the js (dont think the images changed):

Spoiler
var skin         ="skins\\alfred-like\\";
var SkinWidth      =500;
var SkinHeight      =300;
var SkinBorder      =10;

function draw(ui)
{
   // set the text color
   ui.textcolor   =0x88000000;
   ui.fontsize   =12;
   
   // draw the canvas
   ui.drawBitmap(skin+"background.png", 0, 0, SkinWidth, SkinHeight);
   
   //  >  ----------------------------------------------------------
   //  > I mieght make this bigger one day
   //  >  ----------------------------------------------------------
   ui.drawInput(30,42,SkinWidth-((SkinBorder+10)*2),15);
   
   // now draw the items - pane one
   if(qatapult.argscount==1)
   {
      drawItem(ui,0, SkinBorder + 20, SkinHeight - 47, 150, 36);
      //ui.drawBitmap(skin+"next.png",190,SkinHeight - 37, 15, 15);
   }
   // now draw the items - pane two
   if (qatapult.argscount==2)
   {
      drawItem(ui,0, SkinBorder + 20, SkinHeight - 47, 150, 36);
      drawItem(ui,1, SkinBorder + 200, SkinHeight - 47, 150, 36);
      ui.drawBitmap(skin+"next.png",190,SkinHeight - 37, 15, 15);   
   }
   // now draw the items - pane three
   if (qatapult.argscount==3)
   {
      drawItem(ui,0, SkinBorder + 20, SkinHeight - 47, 150, 36);
      drawItem(ui,1, SkinBorder + 200, SkinHeight - 47, 150, 36);
      drawItem(ui,2, SkinBorder + 350, SkinHeight - 47, 150, 36);
      ui.drawBitmap(skin+"next.png",340,SkinHeight - 37, 15, 15);
   }
   
   // draw results box
   if(qatapult.resultscount!=0)
   {
      var resultscount=Math.min(5,qatapult.resultscount);
      // >  ----------------------------------------------------------
      // >  new version might allow the background or color of the results box
      // >  to change - revisit if this happens as we need to set it here
      //  >  ----------------------------------------------------------

      ui.drawResults(SkinBorder,65,(SkinWidth/2) - SkinBorder,SkinHeight -(100+SkinBorder));
      
      if (qatapult.resultscount>4)
      {
         ui.fontsize   =   8;
         ui.drawText("... arrow down for more ...", SkinBorder,SkinHeight -(57+SkinBorder),(SkinWidth/2) - SkinBorder, 15);
      }
   }   
   else
   {
      ui.drawText("start typing ..... ", SkinBorder * 2 ,190,200,50);
   }
   
   if(qatapult.argscount>1)
   {
      // whats the type?
      type = qatapult.getArgValue(0, "type");
      
      if (type == "TEXT")
      {         
         // display the image of the object
         ui.drawBitmap("icons\\edit.png",320 ,65, 107, 91);

         // set text size and color
         ui.fontsize   =   14;
         ui.textcolor   =   0x88000000;
      
         // display the heading of the object
         ui.drawText("free text", SkinWidth/2 + SkinBorder,160,200,25);
         // reset the size
         ui.fontsize   =   8;
         ui.textcolor   =0x88000000;
         
         // display the text info about the object
         ui.drawText(qatapult.getArgValue(0, "status"), SkinWidth/2 + SkinBorder,190,200,50);
         
         /*
         // the first result at the bottom in free text is white. ? Add it here instead.
         ui.drawText(status, SkinBorder + 20,SkinHeight - 47, 150, 36);
         */
      }
      if (type == "WINDOW")
      {
         // set text size and color
         ui.fontsize   =   8;
         ui.textcolor   =   0x88000000;
         
         // draw the frame - this can be used for images or something.
         ui.drawBitmap(skin+"frame.png",320 ,65, 107, 91);
         
         // display some info in text
         winTitle       = qatapult.getArgValue(0, "title");
         winHWD       = qatapult.getArgValue(0, "hwnd");
         text       = qatapult.getArgValue(0, "text");
         ui.drawText(winTitle, SkinWidth/2 + SkinBorder,160,200,15); // seams static in the wrong position ?
         ui.drawText("Windows Handle : "+winHWD, SkinWidth/2 + SkinBorder,180,200,15); // seams centered?
         ui.fontsize   =   12;
      }
      if (type == "FILE")
      {
         var heading    =    "";
         var picture    =    "";
         var item1    =    "";
         var item2    =    "";
         var item3    =    "";

         var fileext   =    "";
      
         // what is the file and where is it. We'll need this most of the time in the if statements below. Get it early then.
         filedir = qatapult.getArgValue(0, "directory")
         filename = qatapult.getArgValue(0, "filename")
         
         // Time to work out the extention. WIth this we can target the best properties of an object to display
         fileext = filename.substring(filename.length,filename.length-4);
         // lower case the extension then it doesnt matter is its .xxx or .XXX or .XxX - we still know it
         fileext = fileext.toLowerCase()

         if ((fileext == ".png")||(fileext == ".jpg")||(fileext == ".bmp"))
         {
            heading    =    "Image";
            picture    =    filedir+"\\"+filename;
            
            // draw the picture border
            //ui.drawBitmap(skin+"frame.png",316 ,61, 116, 100);

            item1    =    "";
            item2    =    "";
            item3    =    "";
         }
         else if (fileext == ".mp3")
         {
            heading    = "Audio";
            // cheap but luckly me i keep cover.jpg in my music folders. - would be nice to rip the thumb from the id3 tag.
            // ui.drawBitmap(skin+"frame.png",316 ,61, 116, 100);
            picture    =    filedir+"\\cover.jpg";
            
            // now lets get the extended properties of the file.
            // these vaules are diffrent for XP win 7 and vista. Need to make seprate skins for this.
            // http://www.kixtart.o...at&Number=201630            
            var ARTIST_NAME    =    16; // Win7 use 216
            var ALBUM_TITLE    =    17; // Win7 use 14
            var YEAR          =    18; // Win7 use 15

            // need the filename to be an object!
            var oShell        =    new ActiveXObject("Shell.Application");
            var oFolder       =    oShell.Namespace(filedir);
            var oFile         =    oFolder.ParseName(filename);
                        
            item1   =   "Artist : "    + oFolder.GetDetailsOf(oFile, ARTIST_NAME);
            item2   =   "Album: "      + oFolder.GetDetailsOf(oFile, ALBUM_TITLE);
            item3   =   "Year: "      + oFolder.GetDetailsOf(oFile, YEAR);
   
         }
         else if (fileext == ".lnk")
         {
            heading    =    "Shortcut";         
            item1   =   qatapult.getArgValue(0, "rfilename");
            item2   =   qatapult.getArgValue(0, "rdirectory");            
         }
         else if (fileext == ".exe")
         {   
            heading = filename;
            // now lets get the extended properties of the file.
            // these vaules are diffrent for XP win 7 and vista. Need to make seprate skins for this.
            // http://www.kixtart.o...at&Number=201630            
            var COMPANY_NAME    =    35;
            var FILE_VERSION    =    37; // Win7 use 156
            var PROGRAM_DESC    =    30;

            // need the filename to be an object!
            var oShell     =   new ActiveXObject("Shell.Application");
            var oFolder    =    oShell.Namespace(filedir);
            var oFile      =    oFolder.ParseName(filename);
            
            item1   =   "Company Name : "       + oFolder.GetDetailsOf(oFile, COMPANY_NAME);
            item2   =   "File Version : "      + oFolder.GetDetailsOf(oFile, FILE_VERSION);
            item3   =   "Description : "      + oFolder.GetDetailsOf(oFile, PROGRAM_DESC);
         }
         else
         {
            // now lets get the extended properties of the file.
            // these vaules are diffrent for XP win 7 and vista. Need to make seprate skins for this.
            // http://www.kixtart.o...at&Number=201630            
            var FILE_TYPE       =    2;
            var DATE_CREATED    =    4; // Win7 use 156
            var FILE_SIZE          =    1;
            var ATTRIBUTES    =    6;

            // need the filename to be an object!
            var oShell     =    new ActiveXObject("Shell.Application");
            var oFolder    =    oShell.Namespace(filedir);
            var oFile      =    oFolder.ParseName(filename);
            
            heading       =    oFolder.GetDetailsOf(oFile, FILE_TYPE);      
            item1      =   "Created : "       + oFolder.GetDetailsOf(oFile, DATE_CREATED);
            item2      =   "Size : "         + oFolder.GetDetailsOf(oFile, FILE_SIZE);
            item3      =   "Attributes : "      + oFolder.GetDetailsOf(oFile, ATTRIBUTES);
         }

         // Draw the properties of the object for type FILE depending on whats been set above
         
         // display the image of the object
         if (picture !="")
         {
            ui.drawBitmap(picture,320 ,65, 107, 91);
         }
         else
         {
            drawItem(ui,0,320 ,65, 107, 91);
         }
         
         // set text size and color for header
         ui.fontsize   =   14;
         ui.textcolor   =   0x88000000;
      
         // display the heading of the object
         ui.drawText(heading, SkinWidth/2 + SkinBorder,160,200,25);
         
         // reset the size for the rest
         ui.fontsize   =   8;
         ui.textcolor   =   0x88000000;
         
         // display the text info about the object
         ui.drawText(item1, SkinWidth/2 + SkinBorder,190,200,15);
         ui.drawText(item2, SkinWidth/2 + SkinBorder,210,200,15);
         ui.drawText(item3, SkinWidth/2 + SkinBorder,230,200,15);
      }
      else
      {
         drawItem(ui,0,320 ,65, 107, 91);
      }
}

   // draw the menu button
   ui.drawBitmap(skin+"ui-radio-button.png", SkinWidth-33, SkinBorder+2, 16, 16);

    // drawn index progress
    ui.fontsize   =   8;
    ui.textcolor   =   0x88000000;
    if(qatapult.crawlprogress!=0 && qatapult.crawlprogress!=100)
        ui.drawText("Updating index : "+qatapult.crawlprogress+"%",SkinBorder,SkinBorder,SkinWidth-(SkinBorder*2),15)

      
   // this drew status line - opting out of this as i dont know where to put it at the moment
   /*
   var focus=qatapult.getFocus();
   ui.drawEmphased(qatapult.getArgValue(focus,"status"),qatapult.getQuery(focus),15,SkinHeight-20,SkinWidth-30,10);
   */
   
   
   // determine the mode - will add support for this later.
   /*
    if(qatapult.textmode)
    {
        //ui.drawBitmap(skin+"textbackground.png", 0, 0, 350, 200);
        //ui.drawInput(25,25,305,138);
        //height=200;
    }
    else
    {
        //ui.textcolor=0xFF000000;
        // draw the background according to the number of current args
        if(qatapult.argscount<3)
      {
            //ui.drawBitmap(skin+"background.png", 0, 0, 350, 120);
            //height=120;
        }
      else
      {
            //ui.drawBitmap(skin+"background_3.png", 0, 0, 350, 170);
            //height=170;
        }
    }
    */
}

function drawItem(ui,i,x,y,w,h)
{    
    if(qatapult.getArgValue(i,"type")=="TEXT")
    {
      // HELP >  ----------------------------------------------------------
      // HELP > free text always appears in white. Dont know how to set the color?
      // ui.drawItem(i,x+5,y+5,w-10,h-20);
    }
    else
    {
        // draw the item visual and draw it's label below
        ui.drawItem(i,x+2,y+2,h-4,h-4);
        var text   =   "";
        //if(qatapult.getArgValue(i,"email")!="")
          //  var text=" <"+qatapult.getArgValue(i,"email")+">";
        ui.drawEmphased(qatapult.getArgValue(i,"text")+text,qatapult.getQuery(i),x+h,y+10,w-2*h,30);
    }
}

//   ui.drawBitmap(skin+"ui-radio-button.png", SkinWidth-33, SkinBorder+2, 16, 16);
function onClick(x,y)
{
    if(x > SkinWidth-33 && x < SkinWidth-17 && y > SkinBorder + 2 && y < SkinBorder + 18)
        qatapult.showmenu(x,y);
}


11
Ecaradec's Software / Re: Qatapult
« on: March 06, 2012, 02:27 PM »
Hi All,

heres an attempt at an Alfred like skin (note i have never used it so its based on the screen shots I've seen)

I wouldn't recommend using it as its far from finished, but i was hoping for a little help (or to find out whats possible)

Any hints on the following:



1 - any way of making the text in the input box a different size and color?

2 -

A) the results box background is white and i don't know how (or if) you can set a background. If i could then the skin could be something more classy than white. The ideal would be if i could make the background color transparent as that way there's less images to load for the skin.

B) is there any way of controlling the size of the results? This way i could fit more into results without the skin being very large.

3 - the text of the type TEXT always appears white at the bottom. I have no idea how to set this.

4 - you'll have to try the skin for this one but it would be nice to set some more properties depending on the type. Any way of finding out whats available by type in qatapult.getArgValue(0, "XXXX")
also Is it a bad idea to use code in the script to get other properties. I was thinking somthing like

if (last bit of filename = "mp3")
 show filename.album
 show filename.artist
 show filename.track

I'm not sure if this is ill advised as performance hit to qatapult is not what i want. I guess i might just have to try that one out.

Spoiler
Code: Javascript [Select]
  1. var skin="skins\\alfred-like\\";
  2. var SkinWidth=500;
  3. var SkinHeight=300;
  4. var SkinBorder=10;
  5.  
  6. function draw(ui)
  7. {
  8.         // set the text color
  9.         ui.textcolor=0x88000000;
  10.         ui.fontsize=12;
  11.         // draw the canvas
  12.         ui.drawBitmap(skin+"background.png", 0, 0, SkinWidth, SkinHeight);
  13.        
  14.         // draw the input box
  15.         // HELP >  ----------------------------------------------------------
  16.         // HELP >
  17.         // HELP > ui.fontsize=16; /* doesnt affect the size of the input box below */
  18.         // HELP >  ----------------------------------------------------------
  19.         ui.drawInput(30,42,SkinWidth-((SkinBorder+10)*2),15);
  20.        
  21.         // now draw the items - pane one
  22.         if(qatapult.argscount==1)
  23.         {
  24.                 drawItem(ui,0, SkinBorder + 20, SkinHeight - 47, 150, 36);
  25.                 //ui.drawBitmap(skin+"next.png",190,SkinHeight - 37, 15, 15);
  26.         }
  27.         // now draw the items - pane two
  28.         if (qatapult.argscount==2)
  29.         {
  30.                 drawItem(ui,0, SkinBorder + 20, SkinHeight - 47, 150, 36);
  31.                 drawItem(ui,1, SkinBorder + 200, SkinHeight - 47, 150, 36);
  32.                 ui.drawBitmap(skin+"next.png",190,SkinHeight - 37, 15, 15);    
  33.         }
  34.         // now draw the items - pane three
  35.         if (qatapult.argscount==3)
  36.         {
  37.                 drawItem(ui,0, SkinBorder + 20, SkinHeight - 47, 150, 36);
  38.                 drawItem(ui,1, SkinBorder + 200, SkinHeight - 47, 150, 36);
  39.                 drawItem(ui,2, SkinBorder + 350, SkinHeight - 47, 150, 36);
  40.                 ui.drawBitmap(skin+"next.png",340,SkinHeight - 37, 15, 15);
  41.         }
  42.        
  43.         // draw results box
  44.         if(/*qatapult.resultsvisible && */qatapult.resultscount!=0)
  45.         {
  46.                 var resultscount=Math.min(5,qatapult.resultscount);
  47.                 // HELP >  ----------------------------------------------------------
  48.                 // HELP >  can we change the background or color of the results box?
  49.                 // HELP >  I have am using a white skin so that it matchs the background of the results
  50.                 // HELP >  ----------------------------------------------------------
  51.                
  52.                 // HELP >  ----------------------------------------------------------
  53.                 // HELP >  can the size of the items be set. If it where smaller i could fit in more results
  54.                 // HELP >  ----------------------------------------------------------
  55.                
  56.                 ui.drawResults(SkinBorder,65,(SkinWidth/2) - SkinBorder,SkinHeight -(100+SkinBorder));
  57.         }      
  58.        
  59.         if(qatapult.argscount>1)
  60.         {
  61.                 // whats the type?
  62.                 type = qatapult.getArgValue(0, "type")
  63.        
  64.                 if (type == "TEXT")
  65.                 {
  66.                         // set text size and color
  67.                         ui.fontsize=8;
  68.                         ui.textcolor=0x88000000;
  69.                        
  70.                         // draw the frame - this can be used for images or something.
  71.                         ui.drawBitmap(skin+"frame.png",320 ,65, 107, 91);
  72.                        
  73.                         // display some info in text
  74.                         status = qatapult.getArgValue(0, "status")
  75.                         email = qatapult.getArgValue(0, "email")
  76.                         text = qatapult.getArgValue(0, "text")
  77.                         ui.drawText("type : "+type, SkinWidth/2 + SkinBorder,160,200,15); // seams static in the wrong position ?
  78.                         ui.drawText("status : "+status, SkinWidth/2 + SkinBorder,180,200,15); // seams centered?
  79.                         ui.drawText("email : "+email, SkinWidth/2 + SkinBorder,200,200,15); // seams static in the wrong position ?
  80.                         ui.drawText("text : "+text, SkinWidth/2 + SkinBorder,220,200,15); // seams centered?
  81.                         ui.fontsize=12;
  82.                        
  83.                         // the first result at the bottom in free text is white. ? Add it here instead.
  84.                         ui.drawText(status, SkinBorder + 20,SkinHeight - 47, 150, 36);
  85.                 }
  86.                 if (type == "FILE")
  87.                 {
  88.                         // set text size and color
  89.                         ui.fontsize=14;
  90.                         ui.textcolor=0x88000000;
  91.                        
  92.                         // draw the Icon
  93.                         drawItem(ui,0,320 ,65, 107, 91);
  94.                        
  95.                         // display some info in text
  96.                         filedir = qatapult.getArgValue(0, "rdirectory")
  97.                         filename = qatapult.getArgValue(0, "rfilename")
  98.  
  99.                         ui.drawText(filename, SkinWidth/2 + SkinBorder,160,200,25);
  100.                        
  101.                         ui.fontsize=8;
  102.                         ui.drawText("directory : ", SkinWidth/2 + SkinBorder,190,200,15);
  103.                         ui.drawText(filedir, SkinWidth/2 + SkinBorder,205,200,30);
  104.                         ui.fontsize=12;
  105.                        
  106.                 }
  107.                 if (type == "WINDOW")
  108.                 {
  109.                         // set text size and color
  110.                         ui.fontsize=8;
  111.                         ui.textcolor=0x88000000;
  112.                        
  113.                         // draw the frame - this can be used for images or something.
  114.                         ui.drawBitmap(skin+"frame.png",320 ,65, 107, 91);
  115.                        
  116.                         // display some info in text
  117.                         winTitle = qatapult.getArgValue(0, "title")
  118.                         winHWD = qatapult.getArgValue(0, "hwnd")
  119.                         text = qatapult.getArgValue(0, "text")
  120.                         ui.drawText(winTitle, SkinWidth/2 + SkinBorder,160,200,15); // seams static in the wrong position ?
  121.                         ui.drawText("Windows Handle : "+winHWD, SkinWidth/2 + SkinBorder,180,200,15); // seams centered?
  122.                         ui.fontsize=12;
  123.                 }
  124.                 else
  125.  
  126.                 {
  127.                         drawItem(ui,0,320 ,65, 107, 91);
  128.                 }
  129.         }
  130.  
  131.  
  132.        
  133.         // draw the menu button
  134.         ui.drawBitmap(skin+"ui-radio-button.png", SkinWidth-40, SkinBorder, 16, 16);
  135.  
  136.     // drawn index progress
  137.     ui.fontsize=8;
  138.     ui.textcolor=0x88000000;
  139.     if(qatapult.crawlprogress!=0 && qatapult.crawlprogress!=100)
  140.         ui.drawText("Updating index : "+qatapult.crawlprogress+"%",SkinBorder,SkinBorder,SkinWidth-(SkinBorder*2),15)
  141.  
  142.                
  143.         // this drew status line - opting out of this as i dont know where to put it at the moment
  144.         /*
  145.         var focus=qatapult.getFocus();
  146.         ui.drawEmphased(qatapult.getArgValue(focus,"status"),qatapult.getQuery(focus),15,SkinHeight-20,SkinWidth-30,10);
  147.         */
  148.        
  149.        
  150.         // determine the mode - will add support for this later.
  151.         /*
  152.     if(qatapult.textmode)
  153.     {
  154.         //ui.drawBitmap(skin+"textbackground.png", 0, 0, 350, 200);
  155.         //ui.drawInput(25,25,305,138);
  156.         //height=200;
  157.     }
  158.     else
  159.     {
  160.         //ui.textcolor=0xFF000000;
  161.         // draw the background according to the number of current args
  162.         if(qatapult.argscount<3)
  163.            {
  164.             //ui.drawBitmap(skin+"background.png", 0, 0, 350, 120);
  165.             //height=120;
  166.         }
  167.            else
  168.            {
  169.             //ui.drawBitmap(skin+"background_3.png", 0, 0, 350, 170);
  170.             //height=170;
  171.         }
  172.     }
  173.     */
  174. }
  175.  
  176. function drawItem(ui,i,x,y,w,h) {
  177.    
  178.     if(qatapult.getArgValue(i,"type")=="TEXT") {
  179.                 // HELP >  ----------------------------------------------------------
  180.                 // HELP > free text always appears in white. Dont know how to set the color?
  181.                 // ui.drawItem(i,x+5,y+5,w-10,h-20);
  182.     } else {
  183.         // draw the item visual and draw it's label below
  184.         ui.drawItem(i,x+2,y+2,h-4,h-4);
  185.         var text="";
  186.         //if(qatapult.getArgValue(i,"email")!="")
  187.           //  var text=" <"+qatapult.getArgValue(i,"email")+">";
  188.         ui.drawEmphased(qatapult.getArgValue(i,"text")+text,qatapult.getQuery(i),x+h,y+10,w-2*h,30);
  189.     }
  190.    
  191. }
  192.  
  193. function onClick(x,y) {
  194.     if(x>SkinWidth-(SkinBorder*2) && x<SkinWidth-(SkinBorder*2)+16 && y>SkinBorder && y<SkinBorder+20)
  195.         qatapult.showmenu(x,y);
  196. }






12
Ecaradec's Software / Re: Qatapult
« on: March 01, 2012, 06:51 PM »
do you have to run the .js first or is having it in the plugins folder enough?

13
Ecaradec's Software / Re: Qatapult
« on: March 01, 2012, 06:41 PM »
humm - i must be doing something wrong. Snippets extracted to plugins, qatapult loads a-ok but i have no idea how to make it work from here on out

14
Ecaradec's Software / Re: Qatapult
« on: March 01, 2012, 05:46 PM »
downloaded and installed. I have no idea how to invoke it.  do we call this from a plugin.xml?

I'm not realy a dev so a little out my depth.

15
Ecaradec's Software / Re: Qatapult
« on: February 29, 2012, 09:54 PM »
The subtle background is nice too

do you mean the transparency - i'm not following that bit


16
Ecaradec's Software / Re: Qatapult
« on: February 29, 2012, 09:45 PM »
just tryed it and it looks bad. Mostly because of the white text on a pale background, also forgot but it applys to all the panes (ie free type in pane two etc)

17
Ecaradec's Software / Re: Qatapult
« on: February 29, 2012, 09:32 PM »
@ewemoa

for the change in color - did you want it to look highlighted like the screeny above. If not i could easy knock up a skin with any color you like for text focus. (i think). One problem is that the text is white (not sure how to change that) and that there's no binding on the first pane in terms of H x W so it fills the background image.


18
Ecaradec's Software / Re: Qatapult
« on: February 29, 2012, 03:04 PM »
Hi all,

Yeah i can clairy. It was going to be used for the Name so like this:

Web Cat > Add to > URL > Name.

In the end i left it out in my struggle to make it work. I should now be easy to put back in. That upload was very very rough. I should have held off till it was fully finished :o

Also it would be cool if there was a way of setting a hint or something as with this approach i can not think of a way to notify the user what goes where in the GUI (IE s/he would need to know the order is > URL > NAME. ). Theres no "un-documented" way to set the text at the top (indexing) or preferably bottom (path) is there ?  :D




I feel a bit lost without a focus
too true. I had played around with the focus.png and as gutted i couldn't get it to work, Thanks for the tip with the backgrounds. Here's what i got (see attachment)

re-position icons and text depending on the pane your on might be cool. I really would like to try a skin that instead of focus, uses size to indicate what pane your on.

Also that Alfred link looks great. I would try replicating it (will if you want), but the bit that looks the best is the preview part on the right.

I'd love to see something like that in qatapult with thumbnails but i guess that's a pretty big feature. If your keen just having the sources (ie IndexedFiles, Filesystem, Network, Window, Web, etc would be handy as a start. Thats just an idea though.

Great new update with the release. Thanks Heaps. I think its great how much progress you are making with it. The fairy-tale is fast becoming a legend to be sung in songs of old!

Maybe the 1% will start to get jealous  :D


PS - forgot to ask - qatapult defaults to center screen - any way of configuring this. I'd like to try a skin that's at the top of the screen.

19
Ecaradec's Software / Re: Qatapult
« on: February 27, 2012, 10:10 PM »
skinning is fun!


20
Ecaradec's Software / Re: Qatapult
« on: February 27, 2012, 08:41 PM »
$0.display was missing and while testing i had 'new' in the args bit. Corrected the post again.


21
Ecaradec's Software / Re: Qatapult
« on: February 27, 2012, 06:09 PM »
opps - typos in the plugin.xml - updated the post.

looking forward to trying the new version :)

22
Ecaradec's Software / Re: Qatapult
« on: February 23, 2012, 06:33 PM »
forget that last post - I'm winning:

<settings>
    <rules>
        <rule>
            <arg>WEBSITE</arg>
            <arg>
               <item>
                    <lbl>Add Bookmark</lbl>
                    <ico>plugins\.png</ico>
               </item>                
            </arg>  
        <cmd>cmd.exe</cmd>
        <workdir>plugins\Bookmarks\</workdir>
        <args>/c sqlite3.exe "..\..\databases\websites.db" "insert into websites values ('new','new','','','website','0');"</args>
        </rule>
        <rule>
            <arg>WEBSITE</arg>
            <arg>   
               <item>
                    <lbl>Delete Bookmark</lbl>
                    <ico>plugins\.png</ico>
               </item>         
            </arg>  
        <cmd>cmd.exe</cmd>
        <workdir>plugins\Bookmarks\</workdir>
        <args>/c sqlite3.exe "..\..\databases\websites.db" "delete from websites where display = 'new';"</args>
        </rule>          
    </rules>
</settings>


I win - hooray for me!

create your  plugin folder ( i called it 'bookmark')

add an icon in there called bookadd.png, bookrem.png, bookname.png and book.png

download and extract sqlite3.exe (http://www.sqlite.org/sqlite.html) to that folder.

add the plugin xml

<settings>
    <rules>
        <rule>
            <arg>TEXT</arg>
            <arg>
               <item>
                    <lbl>Add Bookmark As</lbl>
                    <ico>plugins\bookmark\bookadd.png</ico>
               </item>
            </arg>  
            <arg>TEXT</arg>
            <arg>
               <item>
                    <lbl>Bookmark Name?</lbl>
                    <ico>plugins\bookmark\bookadd.png</ico>
               </item>
            </arg>  
 <cmd>cmd.exe</cmd>
 <workdir>plugins\bookmark\</workdir>
 <args>/c sqlite3.exe "..\..\databases\websites.db" "insert into websites values ('$2.text','$2.text','$0.text','','website','0');"</args>
        </rule>
        <rule>
            <arg>WEBSITE</arg>
            <arg>
               <item>
                    <lbl>Open Bookmark</lbl>
                    <ico>plugins\bookmark\book.png</ico>
               </item>
            </arg>  
 <cmd>$0.href</cmd>
        </rule>  
        <rule>
            <arg>WEBSITE</arg>
            <arg>
               <item>
                    <lbl>Delete Bookmark</lbl>
                    <ico>plugins\bookmark\bookrem.png</ico>
               </item>
            </arg>  
 <cmd>cmd.exe</cmd>
 <workdir>plugins\bookmark\</workdir>
 <args>/c sqlite3.exe "..\..\databases\websites.db" "delete from websites where display = '$0.display';"</args>
        </rule>    
        <rule>
            <arg>WEBSITE</arg>
            <arg>
               <item>
                    <lbl>Rename Bookmark</lbl>
                    <ico>plugins\bookmark\bookname.png</ico>
               </item>
            </arg>  
   <arg>TEXT</arg>
            <arg>
               <item>
                    <lbl>Bookmark Name?</lbl>
                    <ico>plugins\bookmark\bookname.png</ico>
               </item>
            </arg>  
 <cmd>cmd.exe</cmd>
 <workdir>plugins\bookmark\</workdir>
 <args>/c sqlite3.exe "..\..\databases\websites.db" "update websites set display ='$2.text' where display = '$0.display';"</args>
        </rule>  
    </rules>
</settings>


23
Ecaradec's Software / Re: Qatapult
« on: February 23, 2012, 06:19 PM »
nice - thanks - looks good. Them quicksliver folks know good ui :)

heres an example of (doesnt work) on how to add and delete from the website db.

you need sqlite3.exe in the plugin folder. http://www.sqlite.org/sqlite.html


<settings>
    <rules>
        <rule>
            <arg>WEBSITE</arg>
            <arg>
               <item>
                    <lbl>Add Bookmark</lbl>
                    <ico>plugins\.png</ico>
               </item>                
            </arg>  
        <cmd>plugins\Bookmarks\sqlite3.exe</cmd>
        <args>"..\..\databases\websites.db" "insert into websites values ('new','new','','','website','0');"</args>
        </rule>
        <rule>
            <arg>WEBSITE</arg>
            <arg>   
               <item>
                    <lbl>Delete Bookmark</lbl>
                    <ico>plugins\.png</ico>
               </item>         
            </arg>  
        <cmd>plugins\Bookmarks\sqlite3.exe </cmd>
        <args>"..\..\databases\websites.db" "delete from websites where display = 'new';"</args>
        </rule>          
    </rules>
</settings>

It doesnt work, and i think this is because of the "'s. @ewemoa you posted that you had this problem too - did you ever get around it. I think its the dbling up on the "". Tried all sorts.

If i can get this to work then i can replace the 'new' with $1.name and deleting at least will work.




24
Ecaradec's Software / Re: Qatapult
« on: February 23, 2012, 05:09 PM »
The following screenshot is from one of the launcher's pages

thanks was just about to upload an example screen shot!

25
Ecaradec's Software / Re: Qatapult
« on: February 23, 2012, 05:08 PM »
so would that be

Website (Cat) > Add Bookmark > Name , URL ?

i like it although it assumes the user knows what values need to be in each side of the comma. All the same i like it!

Pages: [1] 2 3next