Messages - skrommel [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 187next
1
You can watch all WM_SETCURSOR messages, take a look at the screenshot, @wraith808. :)


3
Finished Programs / Re: FINISHED: Reopen file after Wifi reconnects
« on: November 18, 2017, 07:13 AM »
Try ReOpen! :)

It closes a file when it becomes unavailable, and opens the file again when it becomes available.

Ta inn hele skjermen 18.11.2017 21.28.37.bmp.jpg

Download and install AutoHotkey to run the script.
Save the script as ReOpen.ahk and doubleclick to run.

Skrommel

;ReOpen.ahk
; Closes a file when it becomes unavailable, opens the file again when it becomes available
; The filename is saved to ReOpen.ini
;Skrommel @ 2017

#NoEnv
#SingleInstance,Force

Gosub,INIREAD
Gosub,GUI
Return


INIREAD:
IniRead,file,ReOpen.ini,Settings,file
If (file="ERROR")
  file=Spreadsheet.xlsx
Return


INIWRITE:
IniWrite,%file%,ReOpen.ini,Settings,file
IniWrite,%window%,ReOpen.ini,Settings,window
Return


GUI:
Gui,Add,Text,XM,File:
Gui,Add,Edit,XM Y+3 W300 Vfile,%file%
Gui,Add,Button,X+5 W50 GBROWSE,&Browse
Gui,Add,Button,XM+250 W50 GSTART,&Start
Gui,Add,Button,X+5 W50 GEXIT,E&xit
Gui,Show,,ReOpen
Return


START:
Gui,Hide
closed=1
IfWinNotExist,%title%
{
  Run,%file%,,UseErrorLevel,pid
  If (ErrorLevel=1)
    Return
  closed=0
}
Loop
{
  If closed=0
  IfNotExist,%file%
  {
    WinClose,Ahk_pid %pid%
    closed=1
  }
 
  If closed=1
  IfExist,%file%
  {
    Run,%file%,,UseErrorLevel,pid
    If (ErrorLevel=1)
      Return
    closed=0
  }
  Sleep,1000
}


BROWSE:
FileSelectFile,file,3,,Select a file,All files (*.*)
If (ErrorLevel=1)
{
  MsgBox,No file selected
  Return
}
GuiControl,,file,%file%
Return


EXIT:
Gosub,INIWRITE
ExitApp
Return

4
Post New Requests Here / Re: Super Simple "Alarm Clock"
« on: November 03, 2017, 03:03 PM »
Try now, @tomos, your AutoHotkey is too old! :)

5
Post New Requests Here / Re: Super Simple "Alarm Clock"
« on: November 02, 2017, 07:45 PM »
Try AlarmClock - just enter a time and a message to set an alarm! :)

A very simple alarm clock, I think it works with both 24 hour and am/pm system settings.

AlarmClock.jpg

Pages: [1] 2 3 4 5 6 ... 187next
Go to full version