Welcome Guest. October 22, 2014, 07:23:01 AM

Or did you miss your validation email?

Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.

 You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 The N.A.N.Y. Challenge 2011! Download 30+ custom programs! Entire Forum This board This topic Members Help Desk Entire Site
Pages: Prev 1 2 3 4 5 [6] 7 8 9 10 11 ... 14 Next   Go Down
 Reply  |  New Topic  |  Print
 Author Topic: Qatapult  (Read 66940 times)
ewemoa
Honorary Member

Posts: 2,478

 « Reply #125 on: February 16, 2012, 06:49:18 PM »

I've updated the Window (former winpult-mod) plugin -- should be attached to this post.

This update addresses the problem I was having earlier:

Quote
after I press right-arrow and subsequently select a window, pressing TAB doesn't appear to do anything -- I expected the second pane to receive focus, but it is blank.

MD5: 8d168c6b6184b6909c865c02cffbfab0
ewemoa
Honorary Member

Posts: 2,478

 « Reply #126 on: February 16, 2012, 06:53:14 PM »

BTW, for my local version I'm using the AHK plugin and this contains an appropriate Lib directory.  I don't know if it's helpful for this to be in the top level of Qatapult's directory as it seems to be in the current zip file -- perhaps that is now unnecessary?
 « Last Edit: February 16, 2012, 07:50:19 PM by ewemoa » Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #127 on: February 16, 2012, 08:32:08 PM »

Was able to test -- looks nice

 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #128 on: February 18, 2012, 02:41:33 AM »

Attached should be a very primitive one-off timer plugin.

Usage:

• Pane 1: A string representing some amount of time in the future (e.g. 10 or 20:05 or 1h5s -- 10 seconds, 20 minutes and 5 seconds, and 1 hour and 5 seconds)
• Pane 2: Timer
• Pane 3: Optional text message to display

Using this functionality, I noticed that if I set a timer and then use the Calculate action before the timer has expired, the process for the timer (AutoHotkey.exe) seems to go away so the timer never expires...

MD5: e3c36921d6e7afafa224237b96ba3634
Honorary Member

Posts: 408

 « Reply #129 on: February 18, 2012, 03:08:05 PM »

That timer thing makes me think that a calendar source would be very nice. I could add pseudo-dates like tomorrow, next week, next month, etc...
 Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
Honorary Member

Posts: 408

 « Reply #130 on: February 18, 2012, 03:09:47 PM »

However I tried it and haven't been able to see any displayed message... Where should it show up ?
 Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
ewemoa
Honorary Member

Posts: 2,478

 « Reply #131 on: February 18, 2012, 05:31:16 PM »

It uses code similar to LargeType -- the message is supposed to show up as "lime" green text in an OSD-like manner.

For:
• Pane 1: 5
• Pane 2: Timer
• Pane 3: (Empty)

I get "Time is up!" after around 5 seconds.

Using dbgview.exe, I get the following output:

Quote
shellexecute 'plugins\AHK\AutoHotkey.exe' 'plugins\Timer\Timer.ahk "5" ""' ''
Number of arguments passed in: 2
TimeStr: 5
MessageStr: Time is up!
Parsed Seconds Value: 5
Period: 5000

Note that the AHK plugin is a dependency.
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #132 on: February 19, 2012, 03:51:19 AM »

FWIW, tested Timer successfully with XP Pro SP3 and 7 Pro 64-bit.

I wonder what's not working...perhaps it's worth changing TimeUp to the following to see if it makes any difference:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]TimeUp:{  MsgBox, % MessageStr  SoundBeep  Return}
 Logged
Honorary Member

Posts: 408

 « Reply #133 on: February 19, 2012, 07:03:47 AM »

Just forget about it. I forgot to add the ahk lib to my plugin directory. It works.

It would be very nice to combine that timer plugin with snarl https://sites.google.com/site/snarlapp/ . May be I should handle some sort of notification plugin that would handle everything about notifications so that that could be redirected to any app ?
 Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
ewemoa
Honorary Member

Posts: 2,478

 « Reply #134 on: February 19, 2012, 07:14:21 AM »

May be I should handle some sort of notification plugin that would handle everything about notifications so that that could be redirected to any app ?

Sounds like an interesting idea

May be you will find the "Handlers" and "Notifications" sections starting on page 32 of the QS manual to be worth investigating.
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #135 on: February 19, 2012, 07:36:41 PM »

Is there currently a way for a plugin to dynamically generate objects for Qatapult and/or provide Catalog objects?
 Logged
Honorary Member

Posts: 408

 « Reply #136 on: February 20, 2012, 07:28:34 AM »

Not yet. That's definitly on my list, but I'm very careful about it since unlike rules I'll need to add a real extension mecanism with dll, etc... Requesting it might accelerate the whole thing. Sources have to provide the \$x.variables and I'm not completly determined on the list of thoses variables.

I've also considered various possible way of extensions, one of them would be to regularly run an executable that would index things and return them as an csv output file.

Do you have an idea of Catalog you'd like to write, or is it just an idea ? Do you know which language you'd like to use ? C,C++ probably would be first as they'd be the most flexible, but I'm not sure if that would be the best option for most peoples.

 Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
pigeonlips
Participant

Posts: 69

 « Reply #137 on: February 20, 2012, 05:46:55 PM »

@ewemoa
Quote
* If there had been problems, investigation might have been easier than working with a compiled version too as I've found being able to examine and modify source and test the results often helps in such situations.
.....
asdasd

I like the simplicity of the complied version. But i agree with all your points. I'll always include the .ahk file in the plugins folder. asdasd - guess i shouldnt be sticking strings in the script that for testing - lol If i wasnt compiling this wouldnt have happened!

Quote

sorry - first hit on google. Not sure how to upload an attachment to donationcode. Seems like the best place to put it so i'm glad your changing an re uploading them here. Thanks.

Quote
primitive one-off timer plugin.

nice thanks. "12:30 > Timer > lunch" \
Quote
It would be very nice to combine that timer plugin with snarl

- i'm a big fan of snarl. It comes with a small app called heysnarl that you can use to quick and easy leverage the api. For the timer app you could play around with this. Not tested yet but i'm sure it will work.

I have used snarl with other scripts i've written a ton of times. Normal approch for me passing in a arg for the "displaytype" and an case statement to run the notification in a msgbox, TrayTip, or Snarl.

If you want to play around with snarl : Add this bit at the top of the script:
[copy or print]
HeySnarlLocation :=path\to\heysnarl.exe ; change this to the path to hey snarl app exe

then in the TimeUp label use this:

[copy or print]
; register with snarl
run "%HeySnarlLocation%" "register?app-sig=app/timer&title="Qataplut Timer"
; display definition
; unregister with snarl
run "%HeySnarlLocation%" "unregister?app-sig=app/timer&title="Qataplut Timer"
SoundBeep
Return

Quote
the results pane now won't go further than the right side of Qatapult and center under each position of the cursor

I know its only cosmetic but i think it makes the app look nicer! Thanks.

Quote
By the way if you need to get an old version they are all available here : http://emmanuelcaradec.com/qatapult/bin

thanks

Quote
Do you have an idea of Catalog you'd like to write, or is it just an idea ?

* I'd like to try my hand at a paste bin type cat. IE a cat that has predifend text strings that can be pasted into the currently focused app. Think Email signatures, etc.

* also a plugin to get my bookmarks from my browser and add this to the website

Unfortunately my coding skills in a real languge are none existent. Outside a little autohotkey, vbs, python, i'm usless.

-----------------------------------------

is the number under the item in the drop down the weighting for relavence? just curious.

Thanks
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #138 on: February 20, 2012, 05:53:00 PM »

Do you have an idea of Catalog you'd like to write, or is it just an idea ?

Two items I started considering are:

• OpenWith plugin - a bit like the FARR Akete plugin - show in the third pane candidate applications a user has pre-specified
• Timers Catalog - this would allow a user to access already-set timers so they might be cancelled or rescheduled

Quote
Do you know which language you'd like to use ? C,C++ probably would be first as they'd be the most flexible, but I'm not sure if that would be the best option for most peoples.

I confess that C / C++ / Objective C are languages I have worked hard in the past to avoid -- sometimes writing plugins in C++ / Objective C that enable use of other programming languages instead.

With the popularity of ECMAScript, I think that would be a natural candidate -- not to mention the fact that JScript comes with Windows (so potentially no additional download).  I haven't figured out if it's possible to load a DLL using JScript though.  I'm curious about V8 (and possibly node.js) but I wonder about the potential impact on the size of the host application.
 « Last Edit: February 20, 2012, 08:18:07 PM by ewemoa » Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #139 on: February 20, 2012, 08:01:06 PM »

I like the simplicity of the complied version. But i agree with all your points. I'll always include the .ahk file in the plugins folder.

I also like the simplicity of compiled things.  Perhaps there's some way to get the benefits of both in one download...not sure how though.

Appreciate your sharing the .ahk versions

Quote
Not sure how to upload an attachment to donationcode.

May be this will help:

1. Press the Browse button

2. Locate an appropriate file via the resulting dialog

3. Verify the path to the file

Note there are restrictions via file extensions and file size but I usually don't find this to be a problem -- these are listed in text below the Browse button.

For other attachment capabilities, may be the following will help:

new forum feature coded - ability to inline link attachments!
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #140 on: February 20, 2012, 08:09:33 PM »

nice thanks. "12:30 > Timer > lunch" \

Just to clarify, the current implementation only works with expressions that represent durations from now -- not actual times, so unless you're planning to start "lunching" 12 minutes and 30 seconds from now...

Thanks for the Snarl tips.  I hope to take a look in more detail soon.
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #141 on: February 21, 2012, 07:14:38 PM »

pigeonlips:

Regarding Snarl -- do you know if there are instructions for using it portably?  Or perhaps a portable version?  I haven't had much luck locating anything definite.
 Logged
pigeonlips
Participant

Posts: 69

 « Reply #142 on: February 21, 2012, 07:53:41 PM »

Ok big disclaimer. This is very rough.

very very rough.

Its to import bookmarks from chromium.

You'll probably need to change the plugins.xml and also i have only tested on win xp with chromium.

It *should* add a rule to import all your bookmarks from chromium. If your a google chrome user you can possibly change line 13 in the import.vbs

Next steps are to make it work nicly, then to add support for firefox.

Firefox (from what i remember) uses SQLite too so this may be much easier.

all the same - enjoy.
pigeonlips
Participant

Posts: 69

 « Reply #143 on: February 21, 2012, 09:00:24 PM »

@ewemoa

don't think its portable. Sorry!
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #144 on: February 22, 2012, 02:04:31 AM »

don't think its portable.

Thanks for the clarification.

It's not likely I will use Snarl at this time.  Perhaps there will eventually be a portable version...
 Logged
Honorary Member

Posts: 408

 « Reply #145 on: February 22, 2012, 07:16:59 AM »

Quote
I know its only cosmetic but i think it makes the app look nicer ! Thanks.
Qatapult is a very cosmetic app, so this is a good fix

I agree about the ECMAScript being the probable best choice. It would probably be JScript except if I can find a good reason not to use that if we go javascript. Beyond that it will probably be much faster that way because I've some familiarity with it . The annoying thing with JScript is the lack of libraries which means that I'll have to implement everything in the client, or that we'll have to rely on activexobject. I might also bind the libffi probably with a jsctypes taste to access the native api : https://wiki.mozilla.org/JSctypes

Beyond that we'll probably need a native extension mecanism that would allows more things, but as a starting point a script based thing might be powerful enough.

I'm also working on a skin thing these day. I'm a bit strugling making a system that works with various dimensions of input fields : most sources have a unique display (CONTACT looks different from FILE, or TEXT etc... ), which means that they'll need to handle drawing within variable dimensions. I'm approching a good comprise still.
 Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
ewemoa
Honorary Member

Posts: 2,478

 « Reply #146 on: February 22, 2012, 06:54:27 PM »

Thanks for the status report

The annoying thing with JScript is the lack of libraries which means that I'll have to implement everything in the client, or that we'll have to rely on activexobject. I might also bind the libffi probably with a jsctypes taste to access the native api : https://wiki.mozilla.org/JSctypes

I agree about lack of libraries being a problem.

Some kind of FFI as you suggest does sound like it might be a good strategic choice.

I hope that whatever choice is made, the app can remain portable.  When working with fscript.dll I often found myself looking for additional functionality -- and one route that seemed technically feasible was to get additional functionality by installing some COM-related bits.  IIRC, that often (always?) entails some kind of non-portable changes to the system via regsvr32 -- and I think that's not portable-friendly.  Do you know if this understanding is correct?
 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #147 on: February 22, 2012, 07:31:11 PM »

Its to import bookmarks from chromium.

Is the following close to what it does?

• Read Chrom(e|ium)'s Bookmarks file collecting URLs and associated names
• Add the collected info to Qatapult's websites.db using sqlite3.exe
 Logged
pigeonlips
Participant

Posts: 69

 « Reply #148 on: February 22, 2012, 09:35:18 PM »

yeah. In a nutshell,

VB script scraps the bookmarks file for Chrom(e|ium) looking for the name and the URL.

it strips out duff charators that cause some problems for SQLite and outputs the results into a text file in the %TEMP% folder that's formated into a sql query.

Then sqlite3.exe (bunddled commandlite tool for SQLite) runs the script and inserts data.

There are some limitations. I'm busy at the mo - but will put out another post (hopefully with some improvments) and a detailed explaination soon.

Much love.

 Logged
ewemoa
Honorary Member

Posts: 2,478

 « Reply #149 on: February 23, 2012, 02:22:24 AM »

I edited settings.xml to try out relative paths for searchFolders (e.g. ..) and it seems like it works   I hope this functionality remains as it is nice for portable set-ups where the drive letter can change easily.

I don't see the corresponding entry for .. via the Options dialog and when I edit via the Options dialog, I think the entry for .. get overwritten.
 Logged
Pages: Prev 1 2 3 4 5 [6] 7 8 9 10 11 ... 14 Next   Go Up
 Reply  |  New Topic  |  Print

[ Page time: 0.061s | Server load: 0.25 ]

 Translate Arabic Bulgarian Catalan Chinese Croatian Czech Danish Dutch Filipino Finnish French German Greek Hebrew Hindi Indonesian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Ukrainian Vietnamese