topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday November 13, 2025, 9:38 pm
  • 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 ... 158 159 160 161 162 [163] 164 165 166 167 168 ... 309next
4051
General Software Discussion / Re: Firefox 15 less of a memory hog
« Last post by MilesAhead on October 06, 2012, 09:11 PM »
I just tried installing. No bookmark toolbar. I just didn't want the hassle so I took it off. 14.01 is good enough for the time being.  Chromium is my primary anyway. I mainly bring up FF if the site balks with the multi-media delay(I set chromium to block everything and right click to run video/audio clips etc.. some sites can't handle that hitch in the timing.)
4052
General Software Discussion / Re: Firefox 15 less of a memory hog
« Last post by MilesAhead on October 06, 2012, 08:42 PM »
Well, I went along and installed Beta 16.0, so we'll see what all that does. I also switched out Ghostery for TrackerBlock, on the theory that even if "less evil", Ghostery is run by an ad company, and hopefully PrivacyChoice.org ... isnt?

So my browser is back to being fast, so we'll see if it stays that way.

How long you been running 16? Is it rock solid?
4053
General Software Discussion / Re: Transpose 2.3.1.0
« Last post by MilesAhead on October 06, 2012, 05:17 PM »
Transpose 2.3.1.0 Changed Everything "autokill" check from 5 minute interval to 10 minutes.
4054
Didn't work for me on a first, quick try.  :(
I'll take another look later…
-cranioscopical (October 06, 2012, 03:34 PM)

You have to compile from the source.  The attachment posted by the author with no compression or icon didn't work for me at all.

I made a small mod for calling it as a function that sets DetectHiddenWindows On, then restores the original state at the end of the function. For AHK_L apps you can just include the file and call the function.

;~ #NoTrayIcon
;~ #SingleInstance force

;~ NoTrayOrphans()
;~ ExitApp
;~ Return

NoTrayOrphans() {
  DetectState := A_DetectHiddenWindows  ; mod MilesAhead
  DetectHiddenWindows, On  ; mod MilesAhead
   TrayInfo:= TrayIcons(sExeName,"ahk_class Shell_TrayWnd","ToolbarWindow32" . GetTrayBar()) "`n"
      . TrayIcons(sExeName,"ahk_class NotifyIconOverflowWindow","ToolbarWindow321")
   While Item:= StrX(TrayInfo, "idx:" ,N,0, "`n" ,1,0, N) {
      ProcessName:= StrX(Item, "| Process: ",1,11, "|",1,2)
      ProcesshWnd:= StrX(Item, "hWnd: ",1,6, " ",1,1)
      ProcessuID := StrX(Item, "| uID: ",1,7, " ",1,1)
      If !ProcessName
         RemoveTrayIcon(ProcesshWnd, ProcessuID)
      }
    DetectHiddenWindows, %DetectState%  ; mod MilesAhead
   }
RemoveTrayIcon(hWnd, uID, nMsg = 0, hIcon = 0, nRemove = 2) {
   NumPut(VarSetCapacity(ni,444,0), ni)
   NumPut(hWnd , ni, 4)
   NumPut(uID  , ni, 8)
   NumPut(1|2|4, ni,12)
   NumPut(nMsg , ni,16)
   NumPut(hIcon, ni,20)
   Return   DllCall("shell32\Shell_NotifyIconA", "Uint", nRemove, "Uint", &ni)
   }
TrayIcons(sExeName,traywindow,control) {
   DetectHiddenWindows, On
   WinGet,   pidTaskbar, PID, %traywindow%
   hProc:=   DllCall("OpenProcess", "Uint", 0x38, "int", 0, "Uint", pidTaskbar)
   pProc:=   DllCall("VirtualAllocEx", "Uint", hProc, "Uint", 0, "Uint", 32, "Uint", 0x1000, "Uint", 0x4)
   SendMessage, 0x418, 0, 0, %control%, %traywindow%
   Loop,   %ErrorLevel%
   {
   SendMessage, 0x417, A_Index-1, pProc, %control%, %traywindow%
   VarSetCapacity(btn,32,0), VarSetCapacity(nfo,32,0)
   DllCall("ReadProcessMemory", "Uint", hProc, "Uint", pProc, "Uint", &btn, "Uint", 32, "Uint", 0)
   iBitmap   := NumGet(btn, 0)
   idn   := NumGet(btn, 4)
   Statyle := NumGet(btn, 8)
   If   dwData   := NumGet(btn,12)
   iString   := NumGet(btn,16)
   Else   dwData   := NumGet(btn,16,"int64"), iString:=NumGet(btn,24,"int64")
   DllCall("ReadProcessMemory", "Uint", hProc, "Uint", dwData, "Uint", &nfo, "Uint", 32, "Uint", 0)
   If   NumGet(btn,12)
   hWnd   := NumGet(nfo, 0)
   ,   uID   := NumGet(nfo, 4)
   ,   nMsg   := NumGet(nfo, 8)
   ,   hIcon   := NumGet(nfo,20)
   Else   hWnd   := NumGet(nfo, 0,"int64"), uID:=NumGet(nfo, 8), nMsg:=NumGet(nfo,12), hIcon := NumGet(nfo,24)
   WinGet, pid, PID,              ahk_id %hWnd%
   WinGet, sProcess, ProcessName, ahk_id %hWnd%
   WinGetClass, sClass,           ahk_id %hWnd%
   If !sExeName || (sExeName = sProcess) || (sExeName = pid)
   VarSetCapacity(sTooltip,128), VarSetCapacity(wTooltip,128*2)
   ,   DllCall("ReadProcessMemory", "Uint", hProc, "Uint", iString, "Uint", &wTooltip, "Uint", 128*2, "Uint", 0)
   ,   DllCall("WideCharToMultiByte", "Uint", 0, "Uint", 0, "str", wTooltip, "int", -1, "str", sTooltip, "int", 128, "Uint", 0, "Uint", 0)
   ,   sTrayIcons .= "idx: " . A_Index-1 . " | idn: " . idn . " | Pid: " . pid . " | uID: " . uID . " | MessageID: " . nMsg . " | hWnd: " . hWnd . " | Class: " . sClass . " | Process: " . sProcess . " | Icon: " . hIcon . " | Tooltip: " . wTooltip . "`n"
   }
   DllCall("VirtualFreeEx", "Uint", hProc, "Uint", pProc, "Uint", 0, "Uint", 0x8000)
   DllCall("CloseHandle", "Uint", hProc)
   return   sTrayIcons
   }
GetTrayBar() {
   ControlGet, hParent, hWnd,, TrayNotifyWnd1  , ahk_class Shell_TrayWnd
   ControlGet, hChild , hWnd,, ToolbarWindow321, ahk_id %hParent%
   Loop {
      ControlGet, hWnd, hWnd,, ToolbarWindow32%A_Index%, ahk_class Shell_TrayWnd
      If  Not   hWnd
      Break
      Else If   hWnd = %hChild%
         {
         idxTB := A_Index
         Break
         }
      }
   Return   idxTB
   }
StrX( H,  Bs="",BO=0,BT=1,   ES="",EO=0,ET=1,  ByRef N="" ) {
   Return SubStr(H,P:=(((Z:=StrLen(ES))+(X:=StrLen(H))+StrLen(Bs)-Z-X)?((T:=InStr(H,Bs,0,((BO
   <0)?(1):(BO))))?(T+BT):(X+1)):(1)),(N:=P+((Z)?((T:=InStr(H,ES,0,((EO)?(P+1):(0))))?(T-P+Z
   +(0-ET)):(X+P)):(X)))-P)
   }   ; By SKAN:   http://www.autohotkey.com/community/viewtopic.php?p=312116#p312116
4055
Thanks, MilesAhead.
I had some code to do this under XP but it broke with W7. As a stop-gap measure I've been running the mouse around under program control in order to clean up  :-[
-cranioscopical (October 06, 2012, 01:32 PM)

This is the 3rd solution I've tried that I can remember.  The first 2 seemed to work about 1/2 the time. This one looks more promising.
4056
This is not my code. The author has generously granted permission to distribute the utility with your programs. If your app is written in AHK_L then you could just include the function. For apps implemented in other languages, compile as a stand-alone exe and run the exe when you wish to clear the task tray of dead icons.

As one example, I wrote a hack for my own use that launches Giganews accelerator, then runs my Newsreader and waits.  When I close the Newsreader app, it kills Giganews, then runs the orphan killer app to clear the GA icon from the tray.

NoTrayOrphans
4057
General Software Discussion / Re: Transpose 2.3.0.9
« Last post by MilesAhead on October 05, 2012, 12:59 PM »
Transpose 2.3.0.9 Added code to search Path for NoTrayOrphans.exe if not found in script folder.
4058
General Software Discussion / Re: Transpose 2.3.0.8
« Last post by MilesAhead on October 05, 2012, 10:18 AM »
Transpose 2.3.0.8 Added a new wrinkle for Everything Search interaction. When Shift-Backspace hotkey is hit, the hotkey is either passed on or Everything is launched as before.  But now the routine sets a 5 minute timer. During the timer routine, if it detects Everything's Window, it assumes you want to keep using it, so it returns taking no action other than to keep checking every 5 minutes. If the window is not found and Everything process exists, meaning Everything is just sitting in the Tray, the process is closed and the timer routine is canceled.

The zip now includes another exe, NoTrayOrphans.exe, with permission from the author. See the Readme.txt Revisions section. If Everything process is closed this program is called to clear the dead icon from the Task Tray. I'm still testing the orphan cleaner app. If it works well then I'll be including it with other utilities where appropriate. Sure would be nice to finally have a reliable way to get rid of orphan icons. :)

Edit: I've recompiled the NoTrayOrphans.exe, rezipped and uploaded the new zip. If the one you have does not have the Green 'A' ahk icon, it may not get rid of the tray icon without a mouse over. The new compile seems to work. I haven't changed version number.  The only difference is I compiled the orphan program without compression.

IOW, if you have to mouse over to get rid of Everything tray icon, download the zip again. :)
4059
General Software Discussion / Re: Path too long utilities supere barrier
« Last post by MilesAhead on October 04, 2012, 07:15 PM »
Nice indeed Miles. Adopted
 :P :Thmbsup:

Glad it's helpful. :)
4060
General Software Discussion / Re: Path too long utilities supere barrier
« Last post by MilesAhead on October 04, 2012, 09:55 AM »
Understood.
Then the good application may be that one that locate all the chains whose lenght is > 255 chrs.
A good one for that ?

Attached is my mod of TLPD.  It accepts length in the range 4 to 32767 chars. At the end, a text file pops up with a report. I just modified the original to use UNC notation so that it could search for longer paths. Also changed the InputBox a bit.  The AutoIt3 source is included.

edit: Please refer all questions about the operation of the program, such as InjectEnvVars() to the original author on SourceForge.  All I did was modify the check() and InputBox routines to accept longer paths. For best results I suggest running my mod with no command line args.  Just enter all info using the dialog boxes. I don't think I tested it using the environment variable injection stuff.


4061
General Software Discussion / Re: Path too long utilities supere barrier
« Last post by MilesAhead on October 03, 2012, 01:36 PM »
To rename a file/folder is accomplished via move. They're synonymous in this context.

You may be able to use a tool to rename the file but unless the total length can be handled by Explorer then you still have problems. IOW, if the path up to the name is close to or greater than 260 chars then even though programs can create file paths much longer, you'll be hobbled when trying to do anything in Explorer. In effect to get around the issue you'd have to alter the directory path by chopping down the length of the directory names. So in effect you have to move the file someplace that doesn't cause Explorer to choke.

4062
General Software Discussion / Re: Path too long utilities supere barrier
« Last post by MilesAhead on October 02, 2012, 08:42 PM »
This doesn't let you move the files. It only detects paths longer than what you specify in the InputBox:

https://www.donation...ex.php?topic=28359.0

The main culprit is Explorer.  It doesn't like total path longer than 260 chars.
4063
General Software Discussion / Re: Transpose 2.3.0.7
« Last post by MilesAhead on October 02, 2012, 07:21 PM »
Running to try Miles
http://img101.imageshack.us/img101/7251/besotene2.gif


 :Thmbsup:
4064
Coding Snacks / Re: Single click focus, double click bring to front
« Last post by MilesAhead on October 02, 2012, 02:38 PM »
I'm not certain they are talking about the same thing here

Seems like hover the mouse instead of single click. I would recommend backing up the registry before making changes of course. :)
4065
Coding Snacks / Re: Single click focus, double click bring to front
« Last post by MilesAhead on October 02, 2012, 02:18 PM »
For Windows, WinSize2 may be worth a look. In addition to placement, there are some other bells and whistles.
4066
General Software Discussion / Re: Transpose 2.3.0.7
« Last post by MilesAhead on October 02, 2012, 11:13 AM »
Transpose 2.3.0.7 Added code to Shift-Backspace handler that detects Everything Search. There is a global variable EverythingShortcut to be set to the shortcut used to launch Everything in background mode. This enables the script to get the exact name of the everything executable rather than forcing a rename of the file without the version numbers.

On Shift-Backsapce if Everything process is running, it just sends the hotkey on(I have Shift-Backspace set as my Everything hotkey.) If the process is not detected, the script uses the path gleaned from the shortcut to launch it.

This way I don't have to include Everything in my startup apps.

The source is included if you wish to comment all this out. :)

4067
Coding Snacks / Re: Single click focus, double click bring to front
« Last post by MilesAhead on October 02, 2012, 10:26 AM »
I have a free one.  See Topmost Toggle on my Hotkeys Page

Activate a window by clicking normally on it, if it's not active already. Then hotkey on the window to toggle the Topmost attribute. A tooltip pops up quickly to show the current state after you hotkey. It also has a couple of other window functions. See About Box for usage.
4068
I never noticed Quick Search before. I just tried it. The response typing in the search seems fast. But it could use more options. For example I type in a folder name and it finds 2 or 3 matches. But it won't let me select the 3 matches and hit Enter to open all the folders.  Seems to want double click with the mouse.

Also on double click, it insists on opening the folder window maximized.  Could be nice with a few improvements though. Also I really don't see the need for an installer with this type of utility. Just unzip to an empty folder should be good enough.

The other thing is hard-wired hotkey of double pumping the Control key. Not conducive to triggering with another app. I have a hotkey set up for Shift-Backspace. If Everything Search is running, it handles the hotkey. If not, I activate UltraSearch window if present or run UltraSearch if not already running. It's nice to be able to chain in 2 or 3 similar utilities to one hotkey so I can change which one I use without having to remember to hit a different key combination.

4069
Developer's Corner / Re: DVD Burning
« Last post by MilesAhead on October 01, 2012, 03:41 PM »
This is an excellent search engine for DVD Players

You put in the formats you want it to handle and it displays any that match the criteria.  Also if you find a specific DVD Player there may be comments with manipulations of the remote control that may turn the region code to 0. In effect it's the same as paying $150 extra for a "region free" player, except you don't pay the $150 extra.

Also on that videohelp site there's a search engine for converters. One of the easiest to use is DVD Flick. But it's dated now.  Another option, instead of converting, is a set top box. If you can spend around $100 there are boxes that can play and upconvert many video formats.

I have always purchased Philips DVD players with divx support. They have some nice features but one limitation that is annoying is that they will only play SD format. If you have an .avi file that's already HD res, it won't play it. You can find yourself in the absurd predicament of downsizing video so it will be accepted by the player which then upconverts it back to HD.  Lame!!  :)

I have WD HDTV for USB. It is a bit quirky, but most times if I have to encode a video to get it to play it's just audio encoding and muxing into another container. For example, it won't play DTS audio. So anything with only a DTS audio track I have to convert the audio to AC3 or AAC.  There are free tools that work quite well for this.  One example is MkvToMP4.

For a DVD Player that can only play the standard DVD video format, then see the software conversion database

Some of the free converters actually produce better quality than paid, unless we are talking expensive professional authoring/video creation suites. Check out the comments on each software for an idea if it will work for you.
4070
Looks cool. :)
4071
I started programming using Turbo Pascal 6
...

I learned Pascal on Turbo Pascal 3.0. Back then it still spit out .com files, not .exe. By then I was already into QB 3.0 and MASM.  The Turbo stuff was more fun though. The magazines covering Turbo languages didn't take themselves so seriously. I enjoyed the stuff written by Jeff Duntemann quite a bit. He wrote with humor while still imparting the technical knowledge. Not easy to do.
4072
Turbo! Go from 4.4mhz to 11mhz with the push of a button!

4.4 to 11?? That's not fair! Mine only toggled 4.77<=>7.15 Mhz  :)

The switch was on this beast:



It came with 12" yellow monochrome monitor and Hercules Graphics.  The graphics had 256KB of ram while the system came with 512KB main memory. I changed the monochrome monitor to EGA. I upgraded the ram to 640KB then ran an Expanded Memory TSR (probably from PC Magazine) to "borrow" the graphics card ram unused when the card was in character mode.

If the first system I had was fast to start with I probably would never have bothered with assembler. Funny but since most everyone just had Dos back then, I could actually accomplish quite a bit on such a hobbled system. But forget about writing device drivers without even a break-out switch. :)
4073
I should be able to do that. I'll add that either later tonight or tomorrow.

Cool. I think that will make it a generally useful utility for the toolbox. :)
4074
I considered doing something like a FileOpenDialog with .lnk file type as default file type. This would allow selecting a shortcut with all params and window startup type already filled in and presumably tested.  IOW, the shortcut you usually use to run the task. But I don't think there are that many long tasks that would have a shutdown option, that don't have a checkbox or option for it already provided.  For example large file download programs like binary news readers usually have an option to shut down when done.  Video conversion, same thing. Image backup programs etc.. For that reason I figured batch is good enough.

For shutdown type first param on command line would be good enough. But some people just prefer Gui for everything. :)

edit: if I could offer some suggestions.. How about your Gui generating a shortcut to the RunThenShutdown app with all the info filled in instead of launching directly?  That way the work is saved and shortcuts for multiple things, if there's a need for it, can be made with shutdown when done logic built in?  Perhaps even have drag & drop so the user can drop an existing shortcut on the Gui?

4075
http://technet.micro...ibrary/bb491003.aspx

Use a .cmd file with simpler commands above shutdown.exe in the batch until you feel you have it perfected. I really don't want to write scripts that mess with people's backups. Esp. since I never use SyncToy and have no idea what a "bad param" is.
Pages: prev1 ... 158 159 160 161 162 [163] 164 165 166 167 168 ... 309next