| Author |
Message |
Topic: Make EXE file delete itself. |
DataLife
Replies: 23
Views: 2852
|
Forum: Ask for Help Posted: Wed Dec 03, 2008 11:08 pm Subject: Re: I just found a really cool way to do this.. |
"]OnExit: ; subroutine called when this script is ready to exit.
; delete this script file 3 seconds after it terminates.
Run CMD.exe /c ping -n 3 127.0.0.1>nul & Del "%A_ScriptFullPath% ... |
Topic: Make EXE file delete itself. |
DataLife
Replies: 23
Views: 2852
|
Forum: Ask for Help Posted: Wed Dec 03, 2008 8:02 pm Subject: Make EXE file delete itself. |
thanks VxE,
I did try it with the run command but not after OnExit:
I will try that later.
DataLife |
Topic: Make EXE file delete itself. |
DataLife
Replies: 23
Views: 2852
|
Forum: Ask for Help Posted: Wed Dec 03, 2008 6:27 am Subject: Re: I just found a really cool way to do this.. |
CMD.exe /C choice /c YNC /m delay /D Y /T 3 & Del DeleteSelf.exe
How do you start this as an external process? |
Topic: XButton1 & XButton2:: Send event, XButton1 looses functi |
DataLife
Replies: 5
Views: 106
|
Forum: Ask for Help Posted: Wed Dec 03, 2008 6:13 am Subject: XButton1 & XButton2:: Send event, XButton1 looses functi |
I used Rbutton:: and Rbutton Up:: in my script. I found that my script would take over all Right Clicks. Right clicks no longer worked anywhere.
I had to use
#IfWinActive, Wintitle
Rbutton ... |
Topic: auto hide/unhide gui based on mouse position |
DataLife
Replies: 4
Views: 76
|
Forum: Ask for Help Posted: Sat Nov 29, 2008 4:47 pm Subject: auto hide/unhide gui based on mouse position |
I am using this gui as a toolbar on the top of my screen. I have the code to hide and unhide but I can not get it to work properly.
Can anyone help?
CoordMode,Mouse, Screen
Xpos := (A_S ... |
Topic: How can I abort a sleep command |
DataLife
Replies: 8
Views: 131
|
Forum: Ask for Help Posted: Sat Nov 29, 2008 4:34 am Subject: How can I abort a sleep command |
"]There is a gui-based trick for short-changing a long sleepThat is very interesting and very creative. I got mine working using Z_Gecko's example
thanks
DataLife |
Topic: IfInString not working in ShellMessage |
DataLife
Replies: 3
Views: 112
|
Forum: Ask for Help Posted: Sat Nov 29, 2008 4:28 am Subject: IfInString not working in ShellMessage |
Thanks HotKeyIt for your reply.
It appears that using TextToCompare := RegExReplace(A_LoopReadLine, "¦.*") retrieves the text before the ¦ which is the window title.
How can I use this ... |
Topic: Change font color to white when gui color is dark. |
DataLife
Replies: 5
Views: 101
|
Forum: Ask for Help Posted: Sat Nov 29, 2008 4:16 am Subject: Change font color to white when gui color is dark. |
Thanks VxE , Skan and Z_Gecko. I will try your suggestions over the weekend.
DataLife |
Topic: Toggle text to white when mouse is over text. |
DataLife
Replies: 2
Views: 58
|
Forum: Ask for Help Posted: Sat Nov 29, 2008 4:14 am Subject: Toggle text to white when mouse is over text. |
Thanks, that works perfectly.
DataLife |
Topic: Toggle text to white when mouse is over text. |
DataLife
Replies: 2
Views: 58
|
Forum: Ask for Help Posted: Fri Nov 28, 2008 9:14 pm Subject: Toggle text to white when mouse is over text. |
I need to toggle the color of the text to white when the mouse is over the text. I have three text lines I would like to do this way.
I need to turn off the white text when the mouse is no longer o ... |
Topic: Change font color to white when gui color is dark. |
DataLife
Replies: 5
Views: 101
|
Forum: Ask for Help Posted: Fri Nov 28, 2008 8:00 am Subject: Change font color to white when gui color is dark. |
StringSplit the color-string into the three hex-values it contains.
then use if( var < value ) to check if they are dark enough.
thanks, I will play around with some values to determine what i ... |
Topic: How can I abort a sleep command |
DataLife
Replies: 8
Views: 131
|
Forum: Ask for Help Posted: Fri Nov 28, 2008 7:44 am Subject: How can I abort a sleep command |
I believe this would work also.
loop
{
loop 15
{
sleep 1000
if abortNow = 1
break
}
if abortNow = 1
break
}
Increase the loop to 30 an ... |
Topic: How can I abort a sleep command |
DataLife
Replies: 8
Views: 131
|
Forum: Ask for Help Posted: Fri Nov 28, 2008 6:24 am Subject: How can I abort a sleep command |
| If I change "CertainSituation" to 0 it will not be processed until the remainder of the 15 seconds elapses. Other threads can run while sleep is pausing that thread. I need to kill the sleep ... |
Topic: Change font color to white when gui color is dark. |
DataLife
Replies: 5
Views: 101
|
Forum: Ask for Help Posted: Fri Nov 28, 2008 6:07 am Subject: Change font color to white when gui color is dark. |
I have a script that I can change the Gui color while the Gui is the active window. If I change the Gui color to a dark color the black text is not very visible.
Currently I am using if (color ... |
Topic: How can I abort a sleep command |
DataLife
Replies: 8
Views: 131
|
Forum: Ask for Help Posted: Fri Nov 28, 2008 5:59 am Subject: How can I abort a sleep command |
I have a script that pauses for 15 seconds in a loop. In certain situations I need to abort that sleep and break the loop.
Is it possible to abort the sleep?
DataLife |
| |