topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • January 18, 2018, 12:13 AM
  • Proudly celebrating 10 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - skrommel [ switch to compact view ]

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

3
Post New Requests Here / Re: IDEA: 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

6
Try Chime v1.6, @stisev! :)

I added a checkbox so you can ignore the volume slider.

7
Coding Snacks / Re: Reading a book and learning vocabulary
« on: September 14, 2017, 03:35 AM »
What layout do you need on the output, Contro?

8
I've not got Python installed... May I suggest trying RDCMan instead? It's got a live thumnail preview of all connected servers.

9
Coding Snacks / Re: Reading a book and learning vocabulary
« on: September 09, 2017, 02:08 PM »
 :) Try Dictionary! It looks up a list of words on Dictionary.com.

Dictionary.jpg

Add new words to the text file, the default is words.txt, and the definitions are downloaded from Dictionary.com and saved to html.html.

Skrommel

10
 :) Try ImagesToIcon! It will create an icon from three images drawn on top of each other.

ImagesToIcon.jpg

Use 256x256 pixel PNG-files for File1 and File3. File2 can be PNG, JPG or BMP and is resized to 216x216 pixels.
The file Icon1.ico is created in the selected folder, and renamed automatically if the file already exists.

The first time it runs, it downloads and unpacks ImageMagic and three test PNG-files. Also, the last used files and folder paths are saved to ImagesToIcon.ini.

Skrommel

11
For generation icons, maybe ImageMagick is a better tool? You can layer and position images, and export them to an icon, all using the command line.

output.png

Download and install ImageMagick here.

Here's a script that resizes 2.jpg,
merges 1.png, 2.jpg and 3.png,
saves the result as icon.ico. 

Save the script at Merge.cmd in the ImageMagic folder, also either place the images here, or change the script to point to the correct images.

convert.exe 2.jpg -resize 216x216 output.png
convert.exe 1.png output.png -gravity center -composite output.png
convert.exe output.png 3.png -gravity center -composite output.png
convert.exe output.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico

12
Post New Requests Here / Re: Speed It Up, or Slow It Down
« on: September 05, 2017, 07:26 PM »
@nkormanik: I swapped the Num-keys and added two lines at the bottom. If you remove the ; you can make the program only send PageDown to FPReader.

13
@Stamimail: Added a folder to the icon, sorry I didn't interpret your description correctly the first time. Download the Folder.png and Flip.png and place them in the same folder as the script.

About the unicode filenames, did you download the unicode version of AutoHotkey?

I also removed the path of the icon-file to make it work if a folder is moved.

14
:) Try ImageToFolderIcon! Choose an image file and a folder, and it will change the icon of the folder.

ImageToFolderIcon.jpg

It's a first draft, test it and give me some feedback. You may have to restart explorer.exe or your computer to force the folder icon to update, I'll see if there's a solution to this.

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

06.09.2017: Added folder image to icon. Download and place Folder.png and Flip.png in the same folder as the script.
06.09.2017: Made the icon path relative to allow for moving of folders.

Skrommel

15
Post New Requests Here / Re: Speed It Up, or Slow It Down
« on: September 05, 2017, 07:32 AM »
 :) Try PageDown.  The program presses PageDown every x seconds. Press Num+ and Num- to change the delay.

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

Skrommel

;PageDown.ahk
;  Presses PageDown every x seconds. Press Num+ and Num- to change the delay.
;Skrommel @ 2017

#NoEnv
#SingleInstance,Force

delay=1000
GOTO,PAGEDOWN

NumPadSub::
delay+=1000
ToolTip,Delay: %delay%
Return

NumPadAdd::
delay-=1000
If (delay<1000)
  delay=1000
ToolTip,Delay: %delay%
Return

PAGEDOWN:
Sleep,%delay%
;IfWinNotActive,FBReader
;  Goto,PAGEDOWN
Send,{PgDn}
ToolTip,PageDown
Goto,PAGEDOWN

16
@orbis: Uploaded a new version with corrected timing.

@nogojoe: I'm sorry, but I can't replicate your problem.

17
@orbis: I use a timer set to 60 seconds, so it can be off by almost a minute. It's just to be as easy on the CPU as possible, but I can easily change it.

@nogojoe: So the test works, but when you click Run, there's no sound?

18
Post New Requests Here / Re: Auto print Email Attachment
« on: August 07, 2017, 08:56 AM »
I've used GetMail for several years, with no problems. :)

19
No, Sleep puts the monitor to sleep, as requested. :) I've also added command line options
-load <filename> -save <filename> -sleep -help -exit

20
Great to hear it's working, mouser! :) Yes, AutoHotkey has a few quirks, but you have picked it up fast!

Ta inn hele skjermen 28.07.2017 03.55.06.bmp.jpg

I've started adding a few options, check out the settings screenshot. I hope to have a working version soon.

21
Some serious logging there, mouser! :) I'm sitting at a laptop on my holiday, so I haven't been able to test multiple monitors properly, but I'm surprised that wrong max positions was the solution to your problem. And I can't test it, because I can't get your script to do anything on my computer...

22
 :) IdleWinPosSaver is a much simpler solution. Change the idle= line to your monitor idle time. After idling, it waits for a key or mouse action, then it waits for all monitors to reattach, and then it moves the windows.

23
So it detects the monitor off and on correctly? Maybe a delay before moving the windows around is needed? Or wait for all the monitors to reattach?

24
Have you checked the log.txt? Does all power events register?

If not, I can make a pure "wait for keypress/mousemove after idle for 30 minutes", and just watch the number of monitors connected.

There's a two second time gap to save things before the system shuts down, so it should be possible, but some part of the code can't get it's information during this time, and crashes.

By just saving the hWnds after x minutes of idle and restoring them when there's activity + a delay, it should work.

25
Try the latest version. I added monitor sleep detection, and logs power events to log.txt.

Pages: [1] 2 3 4 5 6 ... 38next