topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday November 11, 2025, 6:22 am
  • Proudly celebrating 15+ 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

Recent Posts

Pages: prev1 ... 60 61 62 63 64 [65] 66 67 68 69 70 ... 73next
1601
Living Room / Re: Recommend some music videos to me!
« Last post by Target on December 10, 2008, 06:41 PM »
another worth a look or listen <a href="http://au.youtube.co.../watch?v=WG48Ftsr3OI"> Eric Bogle - And The Band Played Waltzing Matilda</a>

covered by many others it echoes a common sentiment...

more vids here - Eric Bogle
1602
Living Room / Re: Recommend some music videos to me!
« Last post by Target on December 03, 2008, 06:07 PM »
It's all a bit beyond me!  I learned to count on my fingers... gloves on/gloves off
lets stick to binary then - the image of you counting past 20 in base10 scares the crap out of me... :o
1603
Living Room / Re: Recommend some music videos to me!
« Last post by Target on December 03, 2008, 04:54 PM »
There are two kinds of people in the world, those who understand binary and 10 who don't.
-cranioscopical (December 03, 2008, 11:07 AM)

not sure of the maths here but isn't that 3 kinds? (I know that quote as 'there are 10 kinds of people in the world, those who understand binary, and those who don't...')
1604
Living Room / Re: Recommend some music videos to me!
« Last post by Target on December 02, 2008, 09:51 PM »
then there's this one from Peter Gabriel (one of my all time faves)

Sledgehammer
1605
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on November 17, 2008, 11:11 PM »
and at the risk of flogging a dead horse (just one of my superpowers!!), here's a single file version...

EDIT: bug fix posted 06/07/09
1606
General Software Discussion / Re: Renamers, Picture Viewers, etc., 1999 before 2
« Last post by Target on November 10, 2008, 05:37 PM »
what about a simple AHK script?

the following would handle up 99,999 files

fileselectfolder, root, ::{20d04fe0-3aea-1069-a2d8-08002b30309d},3,Select the target folder

loop, %root%\*.*,0,1
{
tmp:= a_loopfilename
stringtrimright, tmp,tmp,4
loop
{
if len >= 5
{
len:=0
break
}
tmp:= "0" . tmp
stringlen,len, tmp
}
filemove, %a_loopfilefullpath%, %a_loopfiledir%\%tmp%`.%a_loopfileext%
}

1607
looks like one answer is paste special - copy the records in the first sheet then go to the target sheet and do paste special .  There's a LINKS button at the bottom left of the dialog box

obviously this is a manual process, and you'll need to do it for each sheet in the book, but it should get you started...

One potential issue is if the number of records within each sheet increases then those changes won't be reflected (if it decreases you will get blanks...)  
1608
General Software Discussion / Re: Excel 2007 question
« Last post by Target on November 03, 2008, 11:56 PM »
advanced filters are supposed to be able to do this, though having said that I've never been able to get it to work...

You could write an on change routine to amend the existing filter criteria though
1609
Developer's Corner / Calculus lifesaver
« Last post by Target on November 03, 2008, 05:03 PM »
this may be of interest/use (from <a href="http://shellcity.net/?foo=e">Shell Extension City</a> this morning)

The Calculus Lifesaver:
All the Tools You Need to Excel at Calculus
<snipped>
Welcome to the video page for The Calculus Lifesaver. Here you can access streaming and downloadable videos of lectures given by the author, Adrian Banner. Most of the examples come from The Calculus Lifesaver.

<a href="http://press.princeton.edu/video/banner/">http://press.princeton.edu/video/banner/</a>

the page links to a series of video's of a series of lectures given by the author at Princeton in 06/07
1610
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on October 31, 2008, 12:15 AM »
aha! I was looking at the hard code (DOH!!)
1611
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on October 30, 2008, 11:39 PM »
Updated my scripts to fix the remaining issues (image aspect ratios, correcting the alignment) and it now works as intended

ninja999 - i can't get your script to find any images??
1612
Living Room / Re: High Capacity Portable MP3 Player
« Last post by Target on October 29, 2008, 01:48 AM »
If I may ask, which train journey would require a MP3 player with that much capacity?
the ghan?
the indian pacific?

highlights one of the silly things about MP3 players in general though - I know storage is (relatively) cheap, but who needs to carry their entire collection (and probably then some) around with them all the time?  There is no known (portable) player that will run long enough to play it all, and even if there was, the likelihood is that you would be sick of it w a a a y before you got to the end (I often am, and FWIW my round trip commute is about 5 hours a day)  
1613
Finished Programs / Re: AHK Coding Snack Idea: Deluxe AHK Script Manager (AXEM)
« Last post by Target on October 28, 2008, 12:15 AM »
that'll do it...
1614
Finished Programs / Re: AHK Coding Snack Idea: Deluxe AHK Script Manager (AXEM)
« Last post by Target on October 27, 2008, 11:50 PM »
(5) Place the "Rescan", "Change Folder", and "Hide" buttons at the top of the Axem window as a toolbar strip since these are higher level commands.
-VideoInPicture (October 27, 2008, 11:21 PM)

just add them as a menu bar, that way they'll always be visible...

with ref to the comments issue, how about a 'flyout/popup'?  Adding comments is likely to make the interface too busy (perhaps a button at right of each item)
1615
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on October 27, 2008, 06:34 PM »
I realise that this is probably a non issue given the work already done on Skrommels script, but I really hate to leave a job half done...

've amended my code so that it works as intended, ie it correctly detects removable media.  Also added the option to set the defaults (from the tray menu).

still looking at displaying image aspect ratio correctly...
1616
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on October 11, 2008, 08:39 PM »
Wow, that's great too, Target.  A couple of things:
The polling doesn't work with my card reader, because when you remove the card, the drive itself still exists (it just says Removable Disk whatever), so your script launches the kiosk every second, which says "No images found, remove card and press OK."  Also, the thumbnails were stretched to fit the square rather than keeping the aspect ratio & whitespace.  Also, when I selected all, then none, rather than clearing the checkboxes, it made them all completely colored in.  Wow, bad word choice.  Here's non-checked: [ ], here's checked: [v], here's "colored in":
  • .  When I clicked each individual checkbox, it cycled through those three settings rather than just checked/unchecked.  Finally, I'm not quite sure how to set the destination folder.  Other than that, it's great.
hmmm, interesting, but all in all a total failure...

I thought about the aspect ratio but figured that this was just a means of getting it from the card to the HDD and not an image viewer, so it wasn't really that important (it seemed safe to assume that the individuals would already know what the images were, they just needed a means of choosing the ones they wanted)

I also wondered what would happen with your card reader - I don't have one to test with so I used a USB key.  Not sure how to get around this one...

The 'greying' of the checkboxes was supposed to indicate that an image had already been copied, I never thought about the fact that there were now 3 options when you check the boxes (DOH!), I'll have a look and see if I can amend that on a control by control basis.  Actually this isn't really that important so it could be omitted (I've amended my code)

Re the destination folder, you should get a dialog box the first time you run the polling script that lets you select a folder.  This is then stored in the ini file - you can edit the ini file by hand, or delete it and you'll be prompted again (be aware that if you delete it your folder count will be reset) 

I'm off on holdidays for the next couple of weeks so I mightn't be about, but I'll look at this and see if I can solve some of those issues - thanks for the feedback
1617
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on October 11, 2008, 05:38 AM »
here's another take

I have no idea what crossover there is with Skrommels code 'cos I haven't really looked at it yet, but it was a fun exercise

it's not full screen (6 images across) cos I had no idea what sort of display your using (and I haven't the time to work this part out  :-[) - feel free to amend the script

there are 2 scripts - the first runs all the time and simply polls your removable drives on a 1 second cycle.  As soon as one becomes available it launches (on first launch it prompts you for a target directory and stores it in an ini file)
/*
Author - Target OCT08
script will scan all removable drives on a 1.5 second cycle
found drives will launch the kiosk (kiosk.AHK)
defaults can be set from the tray icon
*/

#persistent
#singleinstance, forced
menu, tray, nostandard
Menu, tray, add, Set_Defaults
menu, tray, add
menu, tray, add, Exit_Script

ifnotexist, kiosk.ini
gosub, Set_Defaults

loop
{
driveget, DrvLst, list, removable
if DrvLst
{
loop, parse, drvlst
{
driveget, drvstat,status, %a_loopfield%:
if drvstat = ready
{
runwait, kiosk.ahk
sleep, 3000
}
}
DrvLst:=
}
sleep, 1500
}

Set_Defaults:
ifexist, kiosk.ini
{
iniread, target, kiosk.ini, HomeDir, target
iniread, foldind, kiosk.ini, folderIndex, foldcount
}
else
foldind:= 0

gui, add, edit, x10 y10 w200 vTarget, %target%
gui, add, button, x220 y10 gPathout,...
gui, add, text, x10 y38, Folder Index:
gui, add, edit, x90 y38 w120 vFoldInd gsave, %FoldInd%

gui, add, button, x10 y65 w230 gSave, Set Defaults ; Output Directory
gui, show
return

FoldCount:
gui, submit, nohide
return

Save:
iniwrite, %target%, kiosk.ini, homedir, target
iniwrite, %foldInd%, kiosk.ini, FolderIndex, foldcount
gui, destroy
return

Pathout:
fileselectfolder, target, ::{20d04fe0-3aea-1069-a2d8-08002b30309d},3,Select the target folder
guicontrol,,target, %target%
return

Exit_Script:
exitapp
As soon as one becomes available it launches the second script (the actual kiosk part)

/*
Author - Target 09OCT08
credits to AHKLerner and Lexikos for the scroll bar code
script will scan all REMOVABLE drives for eligible images then display in a grid
images can be (un)selected by clicking on either the image or the check box
files are copied or moved using the menu options
copied/moved files have their respective controls disabled
*/

#persistent
#singleinstance
menu, tray, nostandard

iniread, target, kiosk.ini, HomeDir, target
iniread, foldind, kiosk.ini, folderIndex, foldcount

pind = 0

splashtexton,,,SCANNING...

driveget, DrvLst, list, removable

loop, parse, drvlst
{
loop, %a_loopfield%:\*.*,0,1
{
if a_loopfilename contains BMP,JPG,PNG,TIF,GIF,JPEG,JPE,WMF,EMF
{
pind++
gui, add, picture, vt%pind% , %a_loopfilelongpath%
guicontrolget,picsize, pos, t%pind%
gui, destroy

if picsizeh > %picsizew%
gui, add, picture, w-1 h125 vt%pind% , %a_loopfilelongpath%
else
gui, add, picture, w125 h-1 vt%pind% , %a_loopfilelongpath%

guicontrolget,picsize, pos, t%pind%
gui, destroy

if picsizeh > %picsizew%
{
off:= 125 - picsizew
picsizew:= -1
}
else
{
off:= 125 - picsizeh
picsizeh:= -1
}

off//=2

FLst.= a_loopfilelongpath . "," . picsizeh . "," . picsizew . "," . off . "," . "#"
}
}
}
pind:=0

;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

px = 10
py = 10
cx = 67
cy = 140

looop = 1

OnMessage(0x115, "OnScroll") ; WM_VSCROLL
OnMessage(0x114, "OnScroll") ; WM_HSCROLL

Gui, +Resize +0x300000 ; WS_VSCROLL | WS_HSCROLL

menu, menubar,add, All
menu, menubar,add, None
menu, menubar,add, Copy
menu, menubar,add, Move
menu, menubar,add, Quit
gui, menu, menubar

loop, parse, flst , `#
{
stringsplit, item, a_loopfield , `,

pyy:= py
pxx:= px

if item3 = -1 ;> item%3%
pxx+= item4
else
pyy+= item4

gui, add, picture, w%item3% h%item2% y%pyy% x%pxx% vp%a_index% gclicpic, %item1%
gui, add, checkbox, x%cx% y%cy% vc%a_index% gclicpic check3
p%a_index%:= item1
c%a_index%:= 0

pind++
looop++

if looop < 7
{
px+= 145
cx+= 145
}
else
{
px = 10
py+= 150
cx= 67
cy+= 150
looop = 1
}
}

splashtextoff
gui, show, autosize center
Gui, +LastFound
GroupAdd, MyGui, % "ahk_id " . WinExist()
return

All:
loop, %pind%
{
guicontrol, , c%a_index%, 1
gui, submit, nohide
}
gui, show, autosize ; center
return

None:
loop, %pind%
{
guicontrol, , c%a_index%, 0
gui, submit, nohide
}
gui, show, autosize ; center
return

Copy:
formattime, Folder,, yyMMdd_HHmm
ifnotexist, %mytarget%\%folder%
filecreatedir, %mytarget%\%folder%

loop, %pind%
{
guicontrolget, chk,,c%a_index%
if chk
{
guicontrolget, pth,,p%a_index%
splashtexton,500,30,Copying, %pth%
filecopy, %pth%, %MyTarget%\%folder%
guicontrol,,c%a_index%, -1
guicontrol,disable,c%a_index%
guicontrol,disable,p%a_index%
gui, submit, nohide
}
}
splashtextoff
return

Move:
formattime, Folder,, yyMMdd_HHmm
ifnotexist, %mytarget%\%folder%
filecreatedir, %mytarget%\%folder%

loop, %pind%
{
guicontrolget, chk,,c%a_index%
if chk
{
guicontrolget, pth,,p%a_index%
splashtexton,500,30,Moving, %pth%
filemove, %pth%, %MyTarget%\%folder%
guicontrol,,c%a_index%, -1
guicontrol,disable,c%a_index%
guicontrol,disable,p%a_index%
gui, submit, nohide
}
}
splashtextoff
return

clicpic:
stringtrimleft, tmp, a_guicontrol, 1
if c%tmp%
guicontrol,, c%tmp%,0
else
guicontrol,, c%tmp%,1

gui, submit, nohide
gui, show, autosize
return

Quit:
escape::
guiclose:
msgbox, Remove card then press OK
exitapp

;^R::
;reload
;return

GuiSize:
    UpdateScrollBars(A_Gui, A_GuiWidth, A_GuiHeight)
return

#IfWinActive ahk_group MyGui
WheelUp::
WheelDown::
+WheelUp::
+WheelDown::
up::
Down::
    ; SB_LINEDOWN=1, SB_LINEUP=0, WM_HSCROLL=0x114, WM_VSCROLL=0x115
    OnScroll(InStr(A_ThisHotkey,"Down") ? 1 : 0, 0, GetKeyState("Shift") ? 0x114 : 0x115, WinExist())
return

#IfWinActive
UpdateScrollBars(GuiNum, GuiWidth, GuiHeight)
{
    static SIF_RANGE=0x1, SIF_PAGE=0x2, SIF_DISABLENOSCROLL=0x8, SB_HORZ=0, SB_VERT=1
   
    Gui, %GuiNum%:Default
    Gui, +LastFound
   
    ; Calculate scrolling area.
    Left := Top := 9999
    Right := Bottom := 0
    WinGet, ControlList, ControlList
    Loop, Parse, ControlList, `n
    {
        GuiControlGet, c, Pos, %A_LoopField%
        if (cX < Left)
            Left := cX
        if (cY < Top)
            Top := cY
        if (cX + cW > Right)
            Right := cX + cW
        if (cY + cH > Bottom)
            Bottom := cY + cH
    }
    Left -= 8
    Top -= 8
    Right += 8
    Bottom += 8
    ScrollWidth := Right-Left
    ScrollHeight := Bottom-Top
   
    ; Initialize SCROLLINFO.
    VarSetCapacity(si, 28, 0)
    NumPut(28, si) ; cbSize
    NumPut(SIF_RANGE | SIF_PAGE, si, 4) ; fMask
   
    ; Update horizontal scroll bar.
    NumPut(ScrollWidth, si, 12) ; nMax
    NumPut(GuiWidth, si, 16) ; nPage
    DllCall("SetScrollInfo", "uint", WinExist(), "uint", SB_HORZ, "uint", &si, "int", 1)
   
    ; Update vertical scroll bar.
;     NumPut(SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL, si, 4) ; fMask
    NumPut(ScrollHeight, si, 12) ; nMax
    NumPut(GuiHeight, si, 16) ; nPage
    DllCall("SetScrollInfo", "uint", WinExist(), "uint", SB_VERT, "uint", &si, "int", 1)
   
    if (Left < 0 && Right < GuiWidth)
        x := Abs(Left) > GuiWidth-Right ? GuiWidth-Right : Abs(Left)
    if (Top < 0 && Bottom < GuiHeight)
        y := Abs(Top) > GuiHeight-Bottom ? GuiHeight-Bottom : Abs(Top)
    if (x || y)
        DllCall("ScrollWindow", "uint", WinExist(), "int", x, "int", y, "uint", 0, "uint", 0)
}

OnScroll(wParam, lParam, msg, hwnd)
{
    static SIF_ALL=0x17, SCROLL_STEP=10
   
    bar := msg=0x115 ; SB_HORZ=0, SB_VERT=1
   
    VarSetCapacity(si, 28, 0)
    NumPut(28, si) ; cbSize
    NumPut(SIF_ALL, si, 4) ; fMask
    if !DllCall("GetScrollInfo", "uint", hwnd, "int", bar, "uint", &si)
        return
   
    VarSetCapacity(rect, 16)
    DllCall("GetClientRect", "uint", hwnd, "uint", &rect)
   
    new_pos := NumGet(si, 20) ; nPos
   
    action := wParam & 0xFFFF
    if action = 0 ; SB_LINEUP
        new_pos -= SCROLL_STEP
    else if action = 1 ; SB_LINEDOWN
        new_pos += SCROLL_STEP
    else if action = 2 ; SB_PAGEUP
        new_pos -= NumGet(rect, 12, "int") - SCROLL_STEP
    else if action = 3 ; SB_PAGEDOWN
        new_pos += NumGet(rect, 12, "int") - SCROLL_STEP
    else if action = 5 ; SB_THUMBTRACK
        new_pos := NumGet(si, 24, "int") ; nTrackPos
    else if action = 6 ; SB_TOP
        new_pos := NumGet(si, 8, "int") ; nMin
    else if action = 7 ; SB_BOTTOM
        new_pos := NumGet(si, 12, "int") ; nMax
    else
        return
   
    min := NumGet(si, 8, "int") ; nMin
    max := NumGet(si, 12, "int") - NumGet(si, 16) ; nMax-nPage
    new_pos := new_pos > max ? max : new_pos
    new_pos := new_pos < min ? min : new_pos
   
    old_pos := NumGet(si, 20, "int") ; nPos
   
    x := y := 0
    if bar = 0 ; SB_HORZ
        x := old_pos-new_pos
    else
        y := old_pos-new_pos
    ; Scroll contents of window and invalidate uncovered area.
    DllCall("ScrollWindow", "uint", hwnd, "int", x, "int", y, "uint", 0, "uint", 0)
   
    ; Update scroll bar.
    NumPut(new_pos, si, 20, "int") ; nPos
    DllCall("SetScrollInfo", "uint", hwnd, "int", bar, "uint", &si, "int", 1)
}

copy/move/select all/select none from the menu bar

click on either an image or it's check box to select.  Copied files have their check box greyed out, moved files are disabled

each time a card is inserted and files are copied or moved, a new (sequential) folder is created in the target folder

when your done, select quit from the menu bar - users are prompted to remove their card before proceeding, and the script ends.

one issue that I haven't quite worked out yet is that repeatedly selecting all/selecting none shrinks the window ( :huh:)

EDIT - 28OCT08 09:25
        - amended 'polling' script to work as intended (now correctly detects removable media) 
        - added option to set defaults (from Tray menu)
        - fixed the shrinking GUI behaviour

to do - fix aspect ratio of images

EDIT - 31OCT08 14:35
        - fixed image aspect ratio
        - correctly aligned images

1618
General Software Discussion / Re: looking for...a wiki?
« Last post by Target on October 08, 2008, 01:46 AM »
sadly, this isn't an option...
1619
Finished Programs / Re: IDEA: Photo Downloader Kiosk
« Last post by Target on October 07, 2008, 11:37 PM »
do you want/need thumbnails?
1620
Developer's Corner / Re: Introduction to Computer Science...
« Last post by Target on September 29, 2008, 06:41 PM »
you're most welcome (sorry to steal your thunder :o)
1621
Developer's Corner / Introduction to Computer Science...
« Last post by Target on September 29, 2008, 05:58 PM »
may be old news to some, but this from <a href="http://shellcity.net/?foo=e>Shell extension City</a> this morning...

INTRODUCTION TO COMPUTER SCIENCE - STANFORD..........Free online, one of Stanford’s most popular engineering sequences: the three-course Introduction to Computer Science taken by the majority of Stanford undergraduates, and seven more advanced courses in artificial intelligence and electrical engineering.....(free)


link here - <a href="http://see.stanford.edu/SEE/courses.aspx">http://see.stanford.edu/SEE/courses.aspx</a>
1622
UrlSnooper / Re: Newbie question - How to GET a movie from the URL
« Last post by Target on September 25, 2008, 11:13 PM »
downloaded from that link without problems using <a href="http://www.freedownloadmanager.org/">free downloader</a> 

that's a flash file so you'll need something that will play that format - <a href="http://www.globfx.co.../products/swfplayer/">Swiff Player</a> is one such (note that this is not a recommendation, it's just the first one I came to...)
1623
Living Room / Re: News Article: Aussie Speed Cameras To Become Surveillance Devices
« Last post by Target on September 25, 2008, 01:04 AM »
hardly a perversion of justice, more like another example of a poorly executed response to a perceived problem that is typical of most governments.
1624
General Software Discussion / Re: 'open with' doesn;t remember entries
« Last post by Target on September 18, 2008, 06:31 PM »
or <a href="http://thesoftpro.tr...od.com/downloads/fe/">Fast Explorer</a>...
1625
mouser, this is still a bit flakey for me (using GreenBrowser/IE)

selecting any more than a couple of pins appears to overload things and i lose all display (I can see the page, but the map disappears...).  refreshing doesn't seem to help...

seems 2b OK in FF though...
Pages: prev1 ... 60 61 62 63 64 [65] 66 67 68 69 70 ... 73next