ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: simple tool needed: start x.exe in y seconds

<< < (3/4) > >>

brotherS:
FINALLY!

After countless hours of blood, sweat and hard thinking it's finally working! :D
AutoHotkey strikes again! :-*


--- ---;2005-11-02
;Start .exe file in x minutes
;http://www.autohotkey.com/forum/viewtopic.php?p=36314#36314
^q::
#Persistent
InputBox, Laufzeit, enter Time to start program in minutes     
Laufzeit := Laufzeit * 60000

Zeit = %A_TickCount%
Settimer, Anzeiger, 250
Settimer, Start_Program, %Laufzeit%
return

Anzeiger:
  till_start_minutes := (laufzeit - A_TickCount + zeit)/60000
  till_start_minutes := Floor(till_start_minutes)
  till_start_seconds := (laufzeit - A_TickCount + zeit)/1000 - (till_start_minutes *

60)
  till_start_seconds := Floor(till_start_seconds)

  CoordMode, ToolTip, Screen
  ToolTip, time until .exe starts: %till_start_minutes%:%till_start_seconds%,80,1010
return

start_Program:
  settimer, Anzeiger, off
  ToolTip
msgbox, SUCCESS! ; replace with run, C:\xxxxxxxxxxxx.exe
settimer, Start_Program, off
return
;Start .exe file in x minutes
;http://www.autohotkey.com/forum/viewtopic.php?p=36314#36314

Carol Haynes:
Marginally modified version here:

I have changed it to seconds (rather than minutes) and added an input field for the filename to Open, which saves having to edit the file.

It is worth grabbing NinoTech Path Copy for use with this (worth having anyway). It is a shell extension that can copy the filename, pathname, folderpath to the clipboard (in both long and short forms).


--- ---;2005-11-02
;Start .exe file in x minutes
;http://www.autohotkey.com/forum/viewtopic.php?p=36314#36314
^q::
#Persistent
InputBox, FilenameToLoad, Enter filename to Open here
InputBox, Laufzeit, Enter Delay to start program (in seconds):
Laufzeit := Laufzeit * 1000

Zeit = %A_TickCount%
Settimer, Anzeiger, 250
Settimer, Start_Program, %Laufzeit%
return

Anzeiger:
  till_start_minutes := (laufzeit - A_TickCount + zeit)/60000
  till_start_minutes := Floor(till_start_minutes)
  till_start_seconds := (laufzeit - A_TickCount + zeit)/1000 - (till_start_minutes * 60)
  till_start_seconds := Floor(till_start_seconds)

  CoordMode, ToolTip, Screen
  ToolTip, time until .exe starts: %till_start_minutes%:%till_start_seconds%,80,1010
return

start_Program:
  settimer, Anzeiger, off
  ToolTip
run, %FilenameToLoad%
settimer, Start_Program, off
return
;Start .exe file in x minutes
;http://www.autohotkey.com/forum/viewtopic.php?p=36314#36314

mouser:
oh my it seems soon we will have a board full of skrommels  ;D


DC UNABRIDGED DICTIONARY
-----------------------------------------
skrommel: a small furry creature who lives in forums and can code autohotkey scripts in his/her sleep.

Carol Haynes:
Actually I jibbered posting that - my furriness is not yet fully developed  :eusa_dance:

brotherS:
Marginally modified version here:

I have changed it to seconds (rather than minutes) and added an input field for the filename to Open, which saves having to edit the file.
-CarolHaynes (November 02, 2005, 04:37 AM)
--- End quote ---
Thanks Carol, I admit I customized it to fit my needs :) I want to only use it for one .exe and while working with the code I found that it is better to use minutes since I mostly would want to start up stuff in more than 1 minute anyway and one minute intervals are also enough.

@mouser: :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version