topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday November 6, 2025, 7:08 am
  • Proudly celebrating 15+ 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

Recent Posts

Pages: prev1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 46next
426
Living Room / Re: Recreate yourself: simpson style!
« Last post by AbteriX on July 25, 2007, 06:10 AM »
WOW justice, ...  great find, thanks  :Thmbsup:

Harr harr that's FUN  :harhar:

Avatar9-2.png
Marge missed brother
427
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 12:44 PM »


> Gui, Add, Edit, r5 w250 vf2,%f2%

That is the trick,   :greenclp: of course :read: :wallbash:
428
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 10:30 AM »
> Gui, Submit,nohide

I think the GUI should hide?????????????????
Just go to all field and fill in your text
and press 'Apply' at the last field only ?!
429
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 10:28 AM »
Upppsss, to late  :(
any way .... FUN  ;D :beerchug:
430
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 10:27 AM »
Onces started it is easy to continue
so i playing around a while with this code :D

Spoiler
;Replacement for Giggles Beta 9
;CompuTech Computer Maintenance and Coding Co
;Coded by Brandon Seal
#SingleInstance force


/*
;TEST  .... i didn't get this part to work --- but i have to go now
Ifexist %A_ScriptName%.ini
{
Loop 5
{
IniRead, readMe ,   %A_ScriptName%.ini, Settings, f%A_Index%
MsgBox %readMe% = f%A_Index% ;control
f%A_Index% := readMe
}
}
*/



myINFO =
(
Welcome to WreckedGiggles, the
Giggles Test Replacement.
This is still in development,
and there are bugs to be expected.
If you have used Giggles before,
you should understand the
system here, so go ahead and
get started!
Otherwise, click the button below.
)

myABOUT =
(
WreckedGiggles is a replacement for the popular
Giggles program developed for There.
It is coded by Brandon Seal, owner of
CompuTech Computer Maintenance and Coding Co.
This program is known as DonationWare
; it is free, but donations are requested if
you like the program.
)

myTABS = Info|About|Setup F2|Setup F3|Setup F4|Setup F5|Setup F6|
myTABS = %myTABS%Setup F7|Setup F8|Setup F9|Setup F10|Setup F11|Setup F12

Gui, Add, Tab,, %myTABS%
Gui, Font, Norm
Gui, Add, Text, , %myINFO%
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Add, Button, gInstructions, Instructions
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Tab, 2
Gui, Add, Text, , %myABOUT%
Gui, Tab, 3
Gui, Add, Edit, r5 vf2
Gui, Add, Button, gfsave, Apply
Gui, Tab, 4
Gui, Add, Edit, r5 vf3
Gui, Add, Button,gfsave, Apply
Gui, Tab, 5
Gui, Add, Edit, r5 vf4
Gui, Add, Button, gfsave, Apply
Gui, Tab, 6
Gui, Add, Edit, r5 vf5
Gui, Add, Button, gfsave, Apply
Gui, Tab, 7
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 8
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 9
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 10
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 11
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 12
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 13
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Show
return


;Command list

Instructions:
myINSTRUC =
(
WreckedGiggles is simple to setup & use- you can be done in minutes!`n
Step 1: Click each of the Function Key tabs and set your desired text and click Apply.
Step 2: Close the main window of the WreckedGiggles program.
Step 3: When in-world, press the desired Function key (F2 through F11)
              and your text and emotes will display!
)
MsgBox, %myINSTRUC%

fsave:
Gui, Submit
;GuiControlGet, f2
Loop 11
{
GuiControlGet, f%A_Index%
storeMe := f%A_Index%
IniWrite, %storeMe%, %A_ScriptName%.ini, Settings, f%A_Index%
}
/* TEST
IniWrite, %f2%, %A_ScriptName%.ini, Settings, f2
IniWrite, %f3%, %A_ScriptName%.ini, Settings, f3
IniWrite, %f4%, %A_ScriptName%.ini, Settings, f4
*/
Return



F2::
MsgBox %f2%  ; test only
;sendraw %f2% ; output to current editor
return

F3::
MsgBox %f3%  ; test only
;sendraw %f3%
Return

F4::
MsgBox %f4%  ; test only
;sendraw %f4%
Return

431
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 09:09 AM »
OK, i looked on the script.
1) why v12 ?
The one and only var is vf2 ?
And you have to refer to this var for an GUI without the 'v' as %f2%

2)
f2save:
Gui, Submit
Return

is  not complied because you do nowhere store your text and the infos are gone if you close the script

 
3)
{F2}:
GuiControlGet, v12

is wrong because
a] an HotKey is followed by two columns :: ( instead of only one : )
b] the hotkey need no currly brackets {}  (...as you still would need for "send {F2}" )
c] "GuiControlGet," has to be moved to "f2save:" section
d] there is no var "v12"
e] you don't have to use the 'v' before the '12' (but there is no 12 ... only an var 'f2')
f] the 'Return' is missed

Try this instead:
f2save:
Gui, Submit
; GuiControlGet, f2
Loop 11
{
GuiControlGet, f%A_Index%  ; i hope this is correct?
}
Return

F2::
MsgBox %f2%  ; test only .... while pressing the hotkey 'F2' send the contend of the var f2
sendraw %f2% ; output to current editor
return



.
HTH ? (i am no coder)
432
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 05:33 AM »
And you have no code to store and get the settings?
See the help for inwrite and iniread

IniWrite, %f2%, %A_ScriptName%.ini, Settings, f2
IniRead, f2,   %A_ScriptName%.ini, Settings, f2
433
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 05:19 AM »

...and the F2 is the one that *should* output it.
-wreckedcarzz (July 24, 2007, 01:15 AM)
I don't get it.... where's the output?
"GuiControlGet" is to GET an info .... not to output ??!?!? isn't it?

What output do you aspect?
And where should the output appear?

You should use better var names then
Gui, Add, Edit, r5 vf2
or/and make heavy use of comments like
Gui, Add, Edit, r5 vf2  ; here is an comment, r5 = 5 rows, vf2 = var f2
Later if your script works or you have no more question to others
you can remove the comments (but you should keep an version with comments!  :Thmbsup:)


---

I think it should be smtg like (is v12 a variable?)

F2::
{
GuiControlGet, v12 ; get the info (but from where???) and store it into the var v12
MsgBox v12 is: %v12% ; output the stored info
}
Return


See the help
GuiControlGet
----------------------------------------------------------------------------
Retrieves various types of information about a control in a GUI window.
GuiControlGet, OutputVar [, Sub-command, ControlID, Param4]


OK, i download the script and will see what i can get.
Maybe you will get quicker success if you ask in the http://www.autohotkey.com/forum/:D
434
Living Room / Re: Request for AHK help...I feel so dumb...
« Last post by AbteriX on July 24, 2007, 12:43 AM »
Here is an download for your original Giggles:
Giggles Beta 9 - OracleOfDelphi's excellent software designed specifically for There.
http://www.thumdar.com/downloads.html
Giggles.png

##################################################################


Any help is useful, even ideas...
-wreckedcarzz (July 23, 2007, 09:57 PM)

f2save:
Gui, Submit
Return
-You

I mean RETURN means "return at this point".
So you never will reach
{F2}:
GuiControlGet, v12
-You


Try instead

f2save:
Gui, Submit
{F2}:
GuiControlGet, v12
Return

Note, i am no coder and didn't have test your code, just an suggestion.
435
Dr.Windows / Re: Req: command line option "Run and Quiet"
« Last post by AbteriX on July 15, 2007, 10:23 AM »
Yes i thought like this way  :D

Dr. Windows is very nice and easy to set up the dialogs (only missing the possibility to execute an cmd)
and can be of use for other things but jokes.

But i can  use my AHK script
https://www.donation...21.msg68265#msg68265

or an VBScript also for the things i need it.

Thanks
436
-------------------------------------------------------

If you prefer some Yes/No/OK button  MessageBox and execute other commands try an VBS script:

Spoiler
myTEXT = "Timeout in 10sec. Do you want to press yes?" &chr(13)&  "Here goes the second line text"
myTitle = "Test only"
myTimeOut = 10
myOptions = 64

'http://www.microsoft...a/mar05/hey0314.mspx
'34 "
'38 &

' MsgBox(prompt[, buttons] [, title] [, helpfile, context])
'
' Buttons
' vbOKOnly           0
' vbOKCancel         1
' vbAbortRetryIgnore 2
' vbYesNoCancel      3
' vbYesNo            4
' vbRetryCancel      5
'
' Icons
' vbCritical        16
' vbQuestion        32
' vbExclamation     48
' vbInformation     64
'
' Which is the default button
' vbDefaultButton1 0
' vbDefaultButton2 256
' vbDefaultButton3 512
' vbDefaultButton4 768
'
' * 4096 = vbSystemModal - System modal (all applications wont work until the user responds to the message box)
'
' There is a return value from which button is pressed on the MsgBox, this is an Integer
' vbOK      1
' vbCancel  2
' vbAbort   3
' vbRetry   4
' vbIgnore  5
' vbYes     6
' vbNo      7
' vbNewLine or vbcrlf is nur eine variable für Chr(13) & Chr(10))
Const wshYes = 6
Const wshNo = 7
Const wshYesNoDialog = 4
Const wshQuestionMark = 32


Set objShell = CreateObject("Wscript.Shell")

intReturn = objShell.Popup( myTEXT, myTimeOut, myTitle,  myOptions)

If intReturn = wshYes Then
    objShell.Popup  "You clicked the Yes button. : ",,"How nice from you"
ElseIf intReturn = wshNo Then
    Wscript.Echo "You clicked the No button."
ElseIf intReturn = 1 Then
    objShell.Popup "You clicked the OK button." ,,"OK"
Else
'    Wscript.Echo "The popup timed out."
End If


---------------------------------

Or use an little app for this like:

msgbox from http://debrock.org/

http://81.56.229.95/msgbox/msgbox.htm
This command-line tool displays a string or the content of a text-file in a message-box.

Spoiler

msgbox uses the following syntax:

msgbox [-t:"caption text" -i:icon -f:filename] "Text to display"
Parameters
-t:caption
Set the caption of the message-box

-i:icon
Set the icon to be displayed. Possible values can be error, warning, info, or question

-f:filename
Displays the content of th text file filename

"Text to display"
Text to be displayed in the message-box. Special characters \n and \t are expanded. This string must be quoted.

Notes

    * Character \n is expanded as a CR/LF pair.
    * Character \t is expanded as a tab character.

# Displays "Service not started" in a message-box. "Warning" is the title:
msgbox -t:Warning "Service not started"

# Displays the content of file "warning.txt". Title of the message-box is "Warning: service not started.":
msgbox -t:"Warning: service not started." -f:warning.txt

# Displays the content of file "warning.txt". Icon is set to "Error", and title of the message-box is "Warning: service not started.":
msgbox -i:error -t:"Warning: service not started." -f:warning.txt


.

2003-11-29     msgbox 1.2.1

    * Corrected a bug preventing the display of back-slash.

2003-11-21    msgbox 1.2

    * Corrected some bugs:
      * Quotes in -t flag is now working...
      * Multiple text are now concatenated:

      msgbox "Hello\n" "World!" is now same as
      msgbox "Hello\nWorld!"

2003-11-1    msgbox 1.1

    * MessageBox is now put in foreground and is topmost (will add a command-line option for that).
    * New method to display syntax.
    * Shrink exe size down to 15.5 KB

2003-09-29    msgbox 1.0

    * Initial release


---

or PView from Alex Kurz

PView-preview.png

Spoiler
PView V. 1.05

Usage:

PView -pf PictureFile -pt "Picture text" -pc "Picture Caption" -ps Text Size -pp Text Position -mt "MessageBox Text" -ms MessageBox Style -mc "MessageBox Caption"

-------
-pf: Full qualified path and filename to a valid picture file (.jpg, .bmp, .gif, .wmf, .emf)

This Parameter enables the "show picture" part of the program. It is optional if you want to use the "MessageBox" part only.

Limitation: Only "DOS" paths are supported. If you want to show a picture in "C:\Program Files\", you must use the path "C:\Progra~1\".

-------
-pc: Caption of the picture window.

Optional parameter. If not set, the default caption (PView) is displayed.

-------
-pt: Text to display in the picture window.

This parameter enables the "Text in Picture Window" functionality. If used without -ps and -pp, the text will be displayed in 10p on top of the window. The text will automatically wrapped to fit into the text field.

Note: You can use the key "##CR##" anywhere in your text to force a Line Feed/Carriage Return. Example: -pt "This is one line.##CR##This is the next Line.##CR##And this is the next line."

-------
-ps: Text size in points

A numeric expression that specifies the size of the text to display in the picture window.

-------
-pp: Text position.

Defines the position of the text in the picture windows. Valid parameters are "top" and "bottom" (without double quotes).

-------
-mt: Text to display in the Message Box. Must be delimited with double quotes.

This Parameter enables the "Message Box" part of the program. If used without -ms and -mc parameters, a standard Message Box with an "OK" button and no icon will appear.

-------
-ms: Message Box Style.
A numeric expression that is the sum of values specifying the number and type of buttons to display and the icon style to use. Optional.

0   Display OK button only.
1   Display OK and Cancel buttons.
2   Display Abort, Retry, and Ignore buttons.
3   Display Yes, No, and Cancel buttons.
4   Display Yes and No buttons.
5   Display Retry and Cancel buttons.
16   Display Critical Message icon.
32   Display Warning Query icon (question mark).
48   Display Warning Message icon (exclamation mark).
64   Display Information Message icon.

-------
-mc: Message Box Caption. The Title of the Message Box. If no -mc parameter is used, the default caption "Message" is used.

-------
Examples:

PView.exe -pf c:\somepath\somepicture.jpg -pc "This is a Test Caption"
- shows the picture "c:\somepath\somepicture.jpg" with the windows title ""This is a Test Caption"

PView.exe -pf c:\somepath\somepicture.jpg -pt "This is a message." -ps 12 -pp bottom
- shows the picture "c:\somepath\somepicture.jpg" and a text line saying "This is a message." in 12p MS Sans Serif at the bottom of the picture window.

PView.exe -mt "This is a Message. Press OK."
- comes up with a message box saying "This is a Message. Press OK." and an "OK" button.

PView.exe -pf c:\somepath\somepicture.jpg -mt "This is a Message. Press OK." -ms 65 -mc "Some Title"
- shows the picture "c:\somepath\somepicture.jpg", comes up with a message box saying "This is a Message. Press OK.", the title "Some Title" and an "OK" and a "Cancel" button.

-------
General Limitations:
Today I am not able to deliver a return code, so the "OK/Cancel", "Abort/Retry/Ignore" etc. buttons make no sense at all. To enable a return code I would have to compile the program as a .dll and this would make the message boxes script modal. I suggest to use the "OK" code only.

The code is generally quick and dirty and I cannot guarantee the functionality of the program. If someone finds a significant error or problem, please let me know. The same goes for suggestions and feature requests.

Have Fun!

Alex Kurz
[email protected]



----------

Or Wprompt from Horst Schaeffer
Homepage: http://home.mnet-online.de/horst.muc/

Spoiler
Wprompt - Batch Tool Ver. 1.2 (c) 2003-2004, Horst Schaeffer
------------------------------------------------------------

This tool displays a prompt box with up to 3 standard buttons, and returns
an Errorlevel to check the selected button in batch files.

Syntax: Wprompt "Title" "Text" Buttons [Default[:TimeOut]] [Icon]

*  Title (in double quote marks) will show in the title bar of the window.

*  Text (in double quote marks) is the message for the user
   A line feed can be inserted with the caret symbol (^).

*  Buttons are specified by the following keywords (case ignored):
        Ok                (as Pause repacement)
        OkCancel
        YesNo
        YesNoCancel

*  Default is the number of the default button 1..3 (for Enter key)
   If omitted or invalid, the default button is 1.
   Optional TimeOut (seconds), separated by a colon, e.g.: 2:10
   The time-out feature requires a non-empty title.

*  Icon (optional, case ignored) with associated sound:
        i       Info
        !       Exclamation
        ?       Question
        x       Critical Error

Parameters must be separated by space(s), no commas!

Note: The prompt box remains "on top" in case the user clicks into
another window. However, the time-out countdown will be cancelled.

The Exit Code (Errorlevel) is 1..3 according to the selected button number.
Note that in batch files "If Errorlevel 2" means:
"If the Exit Code is equal to or greater than 2".
Warning : That is why the different cases are always put in a decreasing order.


Example:
        Wprompt "Error" "Continue Search?" YesNo 2 ?
        if not errorlevel 2 goto Continue
        echo You have cancelled the search
        goto END

My example:
        @ECHO OFF
        Wprompt "Error" "Continue Search?" YesNo 2:10 ?
        if not errorlevel 2 goto Continue
        echo You have cancelled the search
        PAUSE
        GOTO END
        :Continue
        ECHO Also doch?
        PAUSE
        goto END

Note: after the time out the default button is pressed automatically.

Syntax errors will produce a syntax box, and return Exit Code 255.
Once you tested the command sucessfully, this error will not occur,
so you need not check it in your batch file.

History:
    ver. 1.2, 2004/07/15  new compiler version; exe size reduced

Disclaimer

This program is freeware (c) Horst Schaeffer. No warranty, no liability of any kind.
PureBasic Source: http://home.mnet-onl...source/wprompt12.zip

Contact:  [email protected]
Homepage: http://home.mnet-online.de/horst.muc/

15 JUL 2004


-

or maybe NirCmd from NirSoft


As always .....  all very small in size, stand alone & portable, freeware (or the like)

If you have any use, please reply so i know if it's useful for others or not.
437
I hope this is the right forum section to provide this script?

I have improved an AHK (www.AutoHotkey.com) script
from user "icefreez" called "Simple Message, on top for a delayed time"
found at http://www.autohotke....php?p=135127#135127

I want to display an Message Box to provide some info or help to me or an user/customer.
This script show an GUI without border and (OK,Yes,No) buttons.
The time out, the font size and the font face can be choose.

I use this MsgBox with Total Commander to add menu entry without an function but provide an info to me.
Total Commander allow no empty commands so i create an own dummy command who shows an info box only.

I could use this MessaBox script to add an menu entry to show me an longer text to hint me to an trick or the right syntax of an TC command.

I could use this MessaBox in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" to provide an one time info to customers.

I could use this MessaBox with Task planer to remind me on something.

I could use this MessaBox in DOS batch.cmd to prompt some info.

Maybe it is helpful for others too? Here it is...

Here is the code (Open Source)

v.05 So.15.07.2007
Added some baubles to avoid making bad jokes with it
; Timeout > 15sec => Provide some Info to the user
; Timeout > 29sec => User info plus possibility to cancel
; Timeout > 119sec => User info plus possibility to cancel plus show start info

Spoiler
#SingleInstance force
#NoTrayIcon
;^!e::exitapp ; Ctrl+Alt+e exits script
;Little script for some nice Message Boxes. Code from icefreez. Enhanced from Stefan. v0.4
;Syntax: mb.exe TimeOut-in-seconds "Text to display" [Font-Size  "Font to use" Format-Bold-or-not]

If 1 =
1 = 30
mySec = %1%


If 2 =
{
myMsg = `nUpps, no parameters from you?`n
myMsg = %myMsg%Use %A_ScriptName% as an command line tool or use an link to %A_ScriptName% with this parameters.`n
myMsg = %myMsg%I use it in Total Commander to provide help messages. Or in HKLM\RunOnce to inform an customer. OR...`n`n
myMsg = %myMsg%Syntax:`t`t%A_ScriptName%  sec  "Message"`n
myMsg = %myMsg%Example:`t%A_SCRIPTNAME%   %1%  "My message is here"`n`n
myMsg = %myMsg%And "My message is here" will displayed over everything for %1% seconds in default font Arial in size 12.`n`n
myMsg = %myMsg%You can use ``n for line feed and ``t for tab.`n
myMsg = %myMsg%Advanced Syntax:`t%A_ScriptName%  sec  "Message"  Fontsize "Font name" b-for-bold `n`n
myMsg = %myMsg%Visit   www.AutoHotkey.com   and   www.DonationCoder.com   for more. (Stefan in 2007)`n`n
}
ELSE
myMsg = %2%


If 3 =
3 = 12
mySize = %3%


If 4 =
4 = Arial
myFont = %4%


If 5 = b
myFormat = wbold


fivesecdisp(mySec,mySize,myMSG,myFont,myFormat,v6)

exitapp ;exits script



fivesecdisp(sec,siz,text,myFont,myFormat,v6){

mySec := sec * 1000
myCloseTime =
myCloseTime += sec, seconds
FormatTime, myCloseTime, %myCloseTime%, HH:mm:ss

; Timeout > 15sec => User info
; Timeout > 29sec => User info plus possibility  to cancel
; Timeout > 119sec => User info plus possibility  to cancel plus show start info

If sec >14  ; Give the user some info if the time out is set longer then a few seconds
    {
    myInfo = Closing myself automatically in %sec% seconds at %myCloseTime%
    myY = y20
    }
ELSE
    myY = y10

If sec >29 ;Give the user the possibilty to exit the app if the time out is set too long
    {
    myInfo = Closing myself automatically in %sec% seconds at %myCloseTime%
    myY = y25
    }

If sec >119 ;Give the user the possibilty to exit the app if the time out is set too long
    {
    myInfo = Closing myself automatically in %sec% seconds at %myCloseTime%`nStartet from %A_SCRIPTFULLPATH%
    myY = y30
    }

   Gui, +AlwaysOnTop +ToolWindow -SysMenu -Caption
   Gui, Color, dddddd ;changes background color
   Gui, Font, 000000 s8 , Arial
   Gui, Add, Text, x20 y2, %myInfo%
   Gui, Font, 000000 s%siz% %myFormat%, %myFont% ;Arial ;Lucida Console ;Comic Sans MS
   ;MS Sans Serif ;Times ;Verdana ;changes font color, size and font
   Gui, Add, Text, x20 %myY%, %text% ;the text to display
          If sec > 29
          {
            Gui, Font, 000000 s8 , Arial
            Gui, Add, Text, cBlue gLaunchExit,
  • Close

          }
  Gui, Show, NoActivate, X0, Y0

   sleep, %mySec%
   Gui, Destroy

        LaunchExit:
           Gui, Destroy
           ExitApp
           Return
}

---

Here is the compiled exe (Open Source):

* MessaBox_v05.exe (196.63 kB - downloaded 1202 times.)


, just run it to see an help:


01-Just run it.PNG


------------------------------------

Use it with DOS

04-DOS-Box.png

-



Use it with an .LNK short cut

02-Use command line.PNG

-



Use it as Total Commander button

03-Use in Total Commander.png

-


Use it as Total Commander user command

03a-Use in Total Commander User-ini.png

03b-Use in Total Commander use as command.png

-

.
438
Dr.Windows / Req: command line option "Run and Quiet"
« Last post by AbteriX on July 14, 2007, 03:41 PM »
Hi Mouser,

is it possible to add an command line option please
to execute Dr.Windows one time and let it quiet after that immediately?

Like:
%SystemRoot%\DrWindows.exe /instant help.cfg

Dr.Windows should read the .CFG, show the MsgBox and disappears immediately.
There should be no TNA Icon showed in this mode.

I would use this to show me some message boxes providing help from Total Commander menu.

Thank you


----------------------

And for the ToDo-List an other idea:
Returning an error level in this mode would be handy too for an use in DOS batch.

Button: &I doubt it;1 returning error level 1
Button: &Yes, that's normal;2 returning error level 2

%SystemRoot%\DrWindows.exe /instant question.cfg
If Not Errorlevel 2 GoTo Continue
GoTo End
:Continue
~~~



---------------------------
Another idea:
An time out option would be handy too in this instand mode.

Timeout: 10 sec


---
439
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 14, 2007, 02:18 PM »
As always  :(

Wanting to improve my code this weekend (will do perhaps)
but while googling smtg i found LaunchAT , at little 20kB (8kB UPX) program launcher
which do that what i want (not tested widely, want to share before forget it) and maybe more.

http://81.56.229.95/...aunchat/launchat.htm
http://debrock.org/

"ReadMe"
;
; LaunchAt.ini - Configuration file for LaunchAt.exe (http://debrock.org/launchat/)
; LaunchAt.exe parses this file then launches listed programs, following a time-line
; defined by all the "Delay=" values.
;
; Syntax for this conf file:
;
; Comments begin with a semi-colon ( ; )
; Environment variables are expanded: %SystemRoot% will be expanded as C:\WINDOWS
;
; [Notepad] ;Each app description starts with a section definition. It must be unique within this conf file.
;
; App=Full path and name of the application to be launched. LaunchAt.exe takes care of your PATH env var.,
;
; Param=[optional command-line parameters] ; Put here any options needed by the application to be launched.
;
; Delay=delay before launch, in seconds.
;
; Disabled=0/1 used to temporary disabling this topic
;
; Show=How to display the window. Possible values are
;   0: Hides the windows
;   1: Show normal (default)
;   2: Show minimized
;   3: Show maximized
;   4: Show normal without activating it
;   7: Show minimized without activating it
;
; Example:
;[Notepad]
;App=notepad.exe
;Param="\Sample Text File opened via LaunchAt.txt" ; Need quotes, because of spaces in file name.
;Delay=0 ; seconds after startup of LaunchAt.

[Notepad with environment var]
App=%SystemRoot%\notepad.exe
Param="%ProgramFiles%\Sample Text File located in ProgramFiles opened via LaunchAt.txt"
Delay=5 ; seconds after startup of LaunchAt.
Show=2 ; minimized


launchat.png
440
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 11, 2007, 03:17 AM »
New
- alternative use of INI file as parameter instead of default DelayLauncher.ini
- little Debug message
- MsgBox improvements
- No Tray Icon
- still to do some little improvements, testings with blanks, clean up the code and such, but here is DelayLauncher v0.2
(need an other/better name???)

;REM  DelayLauncher, 2007 by Stefan
;REM  Simple AHK script (www.autohotkey.com)
;REM  to start one or more applications listed in an ini file, if wanted with delay.
;REM
;REM  Purpose: start an group of applications and/or start your programs in the autostart folder with an delay.
;REM
;REM  Syntax of the DelayLauncher.ini file:
;REM  Seconds to wait, Target (Application plus parameters), Workingdir, launch state
;REM  For example:
;REM  2, Notepad notice.txt,,max
;REM
;REM  All parameters could be empty. Only "Target" is needed ;-) and the comas for empty parameters if an parameter follows
;REM
;REM  To take an application out of the launching put an '#' in front of the line
;REM  For example:
;REM  #2, Notepad notice.txt,,max
;REM
;REM  To execute the applications the AHK command "Run" is used.
;REM  See www.AutoHotkey.com Help file for RUN command:
;REM
;REM  Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel]
;REM
;REM  Target
;REM  A document, URL, executable file (.exe, .com, .bat, etc.), shortcut (.lnk), or system verb to launch (see remarks).
;REM  If Target contains any commas, they must be escaped as shown three times in the following example:
;REM  Run rundll32.exe shell32.dll`,Control_RunDLL desk.cpl`,`, 3  ; Opens Control Panel > Display Properties > Settings
;REM  To pass parameters, add them immediately after the program or document name.
;REM  If a parameter contains spaces, it is safest to enclose it in double quotes (even though it may work without them in some cases).
;REM
;REM  WorkingDir
;REM  The working directory for the launched item. Do not enclose the name in double quotes even if it contains spaces.
;REM  If omitted, the script's own working directory (A_WorkingDir) will be used.
;REM
;REM  Max|Min|Hide
;REM  If omitted, Target will be launched normally. Alternatively, it can contain one or more of these words:
;REM  Max: launch maximized
;REM  Min: launch minimized
;REM  Hide: launch hidden (cannot be used in combination with either of the above)


#NoTrayIcon                               ;disable the view of the AHK icon


INIfile = %1%                             ;Use the INI file given as parameter.
If ("%1%" = "")                           ;If no ini file parameter is given on the command line
   INIfile = DelayLauncher.ini            ;use the standard INI DelayLauncher.ini


If 2 contains debugit                     ;Debug mode: see what the script will do
 MsgBox, 64,Debug DelayLauncher command line, Parameter (%0%):`t%1% %2% %3%`nINIfile:`t`t%inifile% `nScript Working Dir: %A_ScriptDir%



Loop, read, %INIfile%                     ;The INI who stores the applications list to launch
{
    Loop, parse, A_LoopReadLine, CSV
    {
    VAR%A_Index% = %A_LoopField%
    }
    IfInString, VAR1, #                   ;If this character is found skip the launch of this application
      continue
    If VAR1 is not integer                ;If the delay time is omitted (app is in Var1) shift the app name to Var2
       VAR2 = %VAR1%
   T := VAR1 * 1000                       ;AHK count with milliseconds, we multiply the user input '2' with 1000 to get 2000 ms = 2sec
   Sleep, %T%                             ;Pause
        ;Test the command line:
        ;MsgBox, 4, Test, Wait for %VAR1% Seconds - RUN now %VAR2% %VAR3% %VAR4%   `n`nContinue?
          ;IfMsgBox, No
          ;return
        If (%VAR3% = "")                ;for .lnk error handling
        VAR3 = %A_ScriptDir%
   Run, %Var2% , %Var3% , %Var4% UseErrorLevel    ;Launch the app
        if ErrorLevel = ERROR                     ;If an error occur continue
        MsgBox, 20,DelayLauncher Warning,Error while launching this application: `nApp name:`t%VAR2%, `nWorking Dir:`t%VAR3%, `nState:`t`t%VAR4%, `n`t%VAR5% `n`t%VAR6% `nDelay:`t%VAR1% seconds`n`nPlease check the settings in the INI %INIfile%.  `nI give up :(`nContinue launching the other applications?
            IfMsgBox, No
            return
}
Exit
return
;
-v0.2
441
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 11, 2007, 12:31 AM »
good job. idea: instead of the ini filename, use %1%,
then use your own extensino .gst for example,
and then you can drag and drop .gst files on your script to execute them.
this way you can use multiple .gst files.
And associate .gst with your executable for double clicking.
1.) K.I.S.S. ...
...and portable => NO!!! Registry mess up
2.) i can't d&d in TC
3.) but %1% is good idea to be flexible! (not only d&d but start like "EXE PARA" , no matter what extension)
4.) i will disable the TNA icon

442
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 10, 2007, 05:13 PM »
My first script to solve my problem.

I would like to call this version an alpha build. Test on your own risk.

Tomorrow we see forward.

Any suggestions, comments and translating to English is welcome.

The AHK script:

;REM  DelayLauncher, 2007 by Stefan
;REM  Simple AHK script (www.autohotkey.com)
;REM  to start one or more applications listed in an ini file, if wanted with delay.
;REM 
;REM  Purpose: start an group of applications and/or start your programs in the autostart folder with an delay.
;REM 
;REM  Syntax of the DelayLauncher.ini file:
;REM  Seconds to wait, Target (Application plus parameters), Workingdir, launch state
;REM  For example:
;REM  2, Notepad notice.txt,,max
;REM 
;REM  All parameters could be empty. Only "Target" is needed ;-) and the comas for empty parameters if an parameter follows
;REM 
;REM  To take an application out of the launching put an '#' in front of the line
;REM  For example:
;REM  #2, Notepad notice.txt,,max
;REM 
;REM  To execute the applications the AHK command "Run" is used.
;REM  See www.AutoHotkey.com Help file for RUN command:
;REM 
;REM  Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel]
;REM 
;REM  Target
;REM  A document, URL, executable file (.exe, .com, .bat, etc.), shortcut (.lnk), or system verb to launch (see remarks).
;REM  If Target contains any commas, they must be escaped as shown three times in the following example:
;REM  Run rundll32.exe shell32.dll`,Control_RunDLL desk.cpl`,`, 3  ; Opens Control Panel > Display Properties > Settings
;REM  To pass parameters, add them immediately after the program or document name.
;REM  If a parameter contains spaces, it is safest to enclose it in double quotes (even though it may work without them in some cases).
;REM   
;REM  WorkingDir
;REM  The working directory for the launched item. Do not enclose the name in double quotes even if it contains spaces.
;REM  If omitted, the script's own working directory (A_WorkingDir) will be used. 
;REM 
;REM  Max|Min|Hide
;REM  If omitted, Target will be launched normally. Alternatively, it can contain one or more of these words:
;REM  Max: launch maximized
;REM  Min: launch minimized
;REM  Hide: launch hidden (cannot be used in combination with either of the above)
 

Loop, read, DelayLauncher.ini              ;The INI who stores the applications list to launch
{
    Loop, parse, A_LoopReadLine, CSV
    {
    VAR%A_Index% = %A_LoopField%
    }
    IfInString, VAR1, #                   ;If this character is found skip the launch of this application
      continue
    If VAR1 is not integer                ;If the delay time is omitted (app is in Var1) shift the app name to Var2
       VAR2 = %VAR1%
   T := VAR1 * 1000                       ;AHK count with milliseconds, we multiply the user input '2' with 1000 to get 2000 ms = 2sec
   Sleep, %T%
        ;Test the command line:
        ;MsgBox, 4, Test, Wait for %VAR1% Seconds - RUN now %VAR2% %VAR3% %VAR4%   `n`nContinue?
          ;IfMsgBox, No
          ;return
   Run, %Var2% , %Var3% , %Var4% UseErrorLevel    ;Launch the app
        if ErrorLevel = ERROR                     ;If an error occur continue
        MsgBox, 20,Mistake,Error with application: %VAR2% `nPlease check the settings.  `n`nContinue the other applications?
            IfMsgBox, No
            return
}
Exit
return

;


The INI file (save as "DelayLauncher.ini"):
calc
#1,Paint
1, Notepa,,min
2, Notepad notice.txt,,max
443
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 10, 2007, 09:58 AM »
> Shouldn't be too hard to make for example with AutoHotkey,

Yes i have definitely to learn how to store/read settings in an ini  :-[
444
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 10, 2007, 09:56 AM »
I need only an exe who parse an ini and start the apps listed there. No GUI. I would like to modify the ini in notepad.
Maybe i go back to an batch.cmd .... but i thought there would be a smarter way.
Let's see was google brings us this night.
445
Skrommel's Software / Re: [Idee] GroupStarter
« Last post by AbteriX on July 10, 2007, 09:13 AM »
Thanks app103

Just before i access my AHK.chm i think i could take an google search again and found:

http://www2.webng.co...un/MultiRunInfo.html
http://www.geocities...tros/delayrun_en.htm
446
Skrommel's Software / [Idee] GroupStarter
« Last post by AbteriX on July 10, 2007, 06:14 AM »
I'am on the search for an app to start several programs as an group.

Like:

Wait x sec ; Options ; Program ; Optional Parameter ; Optional start path ; Optional message box

0 ;; Total Commander.exe ; ; ; "TC started"
2 ;; AutoHotkey.exe
2 ;; Reminder.exe ; ; ; "Reminder started, look in the TNA"
1 ;; Notepad.exe ; C:\Notice.txt


After that the GroupStarter.exe should close it self.
No TrayIcon please.
No registry, INI instead.
Should work with relative paths and system vars.
"options" is for later use. Or for this "start min, max.." thing.

Did anyone know such an tool?
448
Screenshot Captor / Re: How to grab Secreenshot Captor main window itself ?
« Last post by AbteriX on June 28, 2007, 04:52 AM »
Or, depending on what you want:

Captor Hide main window - 28.06.2007 , 11_49_52.png
449
Living Room / Re: Thank you for this site and the people here.
« Last post by AbteriX on June 19, 2007, 09:53 AM »
kerzen007.gif
450
Best Text Editor / Re: Boxer Text Editor
« Last post by AbteriX on June 17, 2007, 04:02 PM »
Boxer does write lots of settings to the registry;
-Boxer Software (June 17, 2007, 03:23 PM)
Any change that Boxer let the Registry alone in one of the next releases?
Would be nice if Boxer would store ALL its settings into an INI (XML) file!

Advantage 1: I have all my settings with me
Advantage 2: I don't "mess" the Registry of other PCs i came along

Many developers goes this way..... that's nice and very handy.
Pages: prev1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 46next