Messages - skrommel [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 187next
26
Uploaded the sourcecode. So your displays disconnect when they go to sleep, and not when the PC sleeps? That could possibly be detected in the program by watching the mouse and keyboard inactivity?

27
 :) WinPosSaver saves the window positions every minute, and restores the layout after sleep or hibernation.

WinPosSaver.gif

You can quickly test it by using Save layout and Load layout from the menu.

This is the first draft, so please report errors. I have plenty of ideas for it, like saving and loading multiple layouts, option to automatically restart the programs when loading layouts, detecting when monitors are added and removed...

26.07.2017: Added monitor sleep detection. Also logs power changes to Log.txt

Skrommel

28
Post New Requests Here / Re: Manipulate lines in a txt file
« on: July 25, 2017, 02:13 PM »
 :) How about this one?

Fill inn source and target and save the script as Parts.ahk. Download and install Autohotkey to run the script.

Skrommel

source=Source.txt
target=Target.txt

#NoEnv
#SingleInstance,Force
SetBatchLines,-1

string:=""
FileRead,lines,%source%
Loop,Parse,lines,`n                                ; Split by line break
{
  StringSplit,part_,A_LoopField,.                  ; Split by period
  If part_0<3                                      ; 1 part
    line:=A_LoopField
  Else
    StringReplace,line,A_LoopField,%part_1%.,      ; Remove part 1
  line=%line%                                      ; Remove trailing space
  string.=line "`n"                                ; Add line break
}
FileDelete,%target%
FileAppend,%string%,%target%

29
Uploaded the script, orbis.

30
Could it be the tooltip? What game are you running?

:) Yes! It was the tooltip. Try the latest version.

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