Messages - AEN007 [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 15next
26
Skwire Empire / Re: Trout playlist contextmenu bugs?
« on: December 08, 2011, 11:37 AM »
8December2011

Greetings.
The issue I am addressing is exactly as I have written and not app103's issue ...
8June2011

I have just noticed what seem to be some Trout playlist contextmenu (CM) bugs.
After I hit the CM key and the playlist CM pop ups,
Some of the &hotkeys in the CM do not seem to work.

For example, if I hit "s" for &Selection, nothing happens.
Then if I "arrow down" to &Selection,
I cannot then "arrow over" to expand to the &Selection subCM items...
I have to use/move the mouse to use &Selection.

"c" for &Clear playlist does not seem to work ...
"l" for &Last.fm does not seem to work ...
"o" for C&opy path/URL does not seem to work ...
5August2011
Trout has these contextmenu problems on my XPsp3 PII and my XPsp3 P4.
I suppose this problem might be similar to the problem
of AHK scripts not being able to send Trout hotkeys to Trout
because Trout is written in AHK.
Any helpful/replies insights appreciated ...

27
2December2011
Still hoping for a solution.
Any helpful replies/insights appreciated ...

28
Skwire Empire / Re: Trout playlist contextmenu bugs?
« on: December 02, 2011, 07:06 AM »
2December2011

Greetings.

I unloaded my persistent AHK scripts but still had/have these problems.
I would like to solve them and wonder what might be the problem/solution ...

The Trout homepage still lists current version Build 40.

I've noticed a significant drop in CPU usage with the latest foobar2k release.
Anyone else?
Maybe the drop in CPU usage is only noticeable on old CPUs like my PII ...

29
8November2011

Greetings.

I have a maybe a dozen WTM-related AHK scripts.

Here is a modified/enhanced version of what I already posted»
Code: Autohotkey [Select]
  1. scrX := 1
  2.     Perc := "%"
  3.     StatusBarGetText, CPU, 2, Windows Task ahk_class #32770
  4.     SLEEP, %Slb%
  5.     StringGetPos, pos, CPU, %Perc%
  6.     If (pos = 14) or ((pos = 19) and (CN = "T"))
  7.      {
  8.       CPU100 := 1
  9.       If (SS = "C98") or (SS = "M")
  10.        Process, Priority, %scrPID%, AboveNormal
  11.       CPUlim := CPUlim+1
  12.      }
  13.     else
  14.      {
  15.       If (CN <> "T")
  16.        StringMid, CPUU, CPU, 13, 2, L
  17.       else StringMid, CPUU, CPU, 18, 2, L
  18.       If (CPUU > 90)
  19.        {
  20.         CPU100 := 1
  21.         CPUlim := CPUlim+1
  22.         CuDa := A_YYYY A_MM A_DD
  23.         CuTi := A_Hour A_Min A_Sec
  24.         FileAppend, CPUU ¦ %CuDa%@%CuTi% ¦ %CPUU% ¦ SS:%SS% ¦ CPUlim:%CPUlim% `n, %PFa%\ahk\%CN%%SNt2%.txt
  25.        }
  26.       else CPU100 := 0
  27.      }
which can be used to test for CPU usage (CPUU) at 100 or 90 or any %;

I have but do not often use the SysIntern ProX.
I (like IainB & StoicJo) started watching the XP WTM
(I have always sorted like StoicJo posted) a long time ago -
mostly because I hate trying to work on an unresponsive computer.

The PC is largely unresponsive to the user & processes in general when CPUU is 100%.
(I have never found the trick of lowering the priority of the resource hog to be effective.
 Lowering the priority allows other exes to grap CPUU but does not lower CPUU from 100%,

If there is interest I could post some other WTM-related scripts.
These other scripts mostly (re-)position the XP WTM.
I always have the XP WTM open & in the lower right corner.
One of my AHK scripts short-circuits/supercharges my XP "AppsKey" (AK).
For example, when the XP WTM is active & I hit the AK,
the script(s) will reposition the the XP WTM various ways ...»
WTMin
WTMin is for when I want the XP WTM to take up the least screen real estate ...
WTMreg
WTMreg is for when the XP WTM doesn't need to be minimized/maximized ...
All I need to do is Alt-Tab to the WTM & then Ctrl-(Shift)-Tab between the Task/Processes/Summary ...
WTMax
WTMmax is for when I need to maximize the XP WTM  ...

In any case, the CPUtimes script reports the CPU usage to a TrayTip - not a variable.
I'm hoping to see a script example of how to have the CPU usage
of the active window reported to a variable ...
The GetProcessTimes(), GetSystemTimes() and GetIdleTimes() functions in that script return the data you want.  It's up to you dump that data into a variable:
Code: Autohotkey [Select]
  1. myVar := GetSystemTimes()
  2. ; myVar will now contain the total CPU load at that moment.
  3. ; Now do whatever you need to do with the variable and data.
Greetings & thanks for the reply ...
I have already been trying to do what you have posted,
but it has not been working for me.
I can get from the XP WTM what GetSystemTimes provides.
I want to put GetProcessTimes into a variable at any given moment.
I have used Sean's TrayIcons() & TaskButtons() in many scripts, like ...
Code: Autohotkey [Select]
  1. If (WxX = 0)
  2.  {
  3.   TBEE := TaskButtons("explorer.exe")
  4.   StringSplit, TBV, TBEE,|
  5.   idn :=  RegExReplace(TBV2, "idn: ")
  6.   StringTrimRight, idnT, idn, 1
  7.   idnNWC := idnT
  8.   HideButton(idnNWC, False)
  9.   SLEEP, %Slb%
  10.   HideButton(idnNWC, True)
  11.  }
Those TrayIcons() & TaskButtons script/functions reside in the AHK\Lib "PATH".
I should be able to access/use CPUTimes.ahk the same way, ja?

I have already tried the following»
Code: Autohotkey [Select]
  1. WinGet, AWpid, PID, A
  2. GPTpid := AWpid
  3. MsgBox, 0, GPTpid, %GPTpid%
  4. GST := GetSystemTimes()
  5. MsgBox, 0, GST, %GST%
  6. GPT := GetProcessTimes(GPTpid)
  7. MsgBox, 0, GPT, %GPT%
GST & GPT are always blank ...
Any helpful replies/insights appreciated ...

30
Skwire Empire / Re: Request: /pause & /unpause switches
« on: November 08, 2011, 04:20 AM »
I have always wondered why Trout was made with the WinAmp ahk_class?
Certainly complicated my AHK scripts ...
Because I wrote in partial support for the WinampAPI into Trout.
8November2011
Greetings.
Yesterday I was tweaking my AHK screensaver "control" script
to launch WinAmp to play overnight while screensavers are running.
I can iniWrite to tweak the WinAmp.ini to have WA launch a certain way.
I also found some interesting webpages about the WA API & commandline.
WACL
WAAPI
At the moment I am wondering about using the WA /CLASS: commandline switch
to launch Trout and change the Trout class to something else ... like maybe "SkwiresTrout" ...
The /CLASS: switch does not seem to work with Trout now,
but I thought it might be a possibility given the WA API in Trout ... ???
I have my SSctrl script change the WA class to make it easy to differentiate
if WA is running under normal or overnight SS conditions ....

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 15next
Go to full version