| Author |
Message |
Forum: Issues Topic: Ceil Function |
| Litmus Red |
|
Posted: November 4th, 2005, 12:58 am
|
|
Replies: 2 Views: 1033
|
|
 |
Forum: Issues Topic: Ceil Function |
| Litmus Red |
|
Posted: November 3rd, 2005, 6:00 pm
|
|
Replies: 2 Views: 1033
|
I'm having trouble with the following...
Code: Var1 := Ceil(62/61) MsgBox, , , Var1 is %Var1%., 2
Var1 ends up being 1. |
|
 |
Forum: Support Topic: help please |
| Litmus Red |
|
Posted: September 24th, 2005, 3:31 am
|
|
Replies: 7 Views: 846
|
|
 |
Forum: Support Topic: help please |
| Litmus Red |
|
Posted: September 24th, 2005, 3:19 am
|
|
Replies: 7 Views: 846
|
| NewImage = OldImage = The above clears the variables NewImage and OldImage. My last script takes a screenshot of the active window between every page down command. When the screenshots are identical, the script should send Ctrl+W to close the window. It's a very sloppy solution. The script will onl... |
|
 |
Forum: Support Topic: help please |
| Litmus Red |
|
Posted: September 23rd, 2005, 4:56 pm
|
|
Replies: 7 Views: 846
|
How about this?
Code: F3::
Sleep, 2000 Loop { Send, {PgDn} Sleep, 200 Send, !{PrintScreen} NewImage := ClipboardAll If NewImage = %OldImage% Break OldImage := NewImage Sleep, 1800 } Send, ^w NewImage = OldImage =
Return |
|
 |
Forum: Support Topic: Multiple if statements....need help please |
| Litmus Red |
|
Posted: September 21st, 2005, 7:19 pm
|
|
Replies: 5 Views: 783
|
Oh. This searches the last line, but only once.
Code: F3::
Loop, read, C:\logs\kharras.txt CurrentLine = %A_LoopReadLine%
IfInString, CurrentLine, CH Send,single IfInString, CurrentLine, QH Send, double
Return |
|
 |
Forum: Support Topic: Multiple if statements....need help please |
| Litmus Red |
|
Posted: September 16th, 2005, 4:52 am
|
|
Replies: 5 Views: 783
|
Mighty-f, could you put your question under a new topic?  |
|
 |
Forum: Support Topic: Multiple if statements....need help please |
| Litmus Red |
|
Posted: September 16th, 2005, 2:30 am
|
|
Replies: 5 Views: 783
|
How about this?
Code: F3::
Loop, Read, C:\logs\kharras.txt { IfInString, A_LoopReadLine, CH Send, single IfInString, A_LoopReadLine, QH Send, double }
Return |
|
 |
Forum: Support Topic: Need help with date setting script |
| Litmus Red |
|
Posted: September 11th, 2005, 8:25 pm
|
|
Replies: 7 Views: 1070
|
It's OK. It was my mistake.  |
|
 |
Forum: Support Topic: Need help with date setting script |
| Litmus Red |
|
Posted: September 11th, 2005, 4:07 pm
|
|
Replies: 7 Views: 1070
|
| this didnt work. My fault. This works, though you've got a more complete solution from Rabiator above. SuperDate = 06/08/1995 StringSplit, SuperDatePart, SuperDate, / SuperDate = %SuperDatePart3%%SuperDatePart1%%SuperDatePart2% FormatTime, SuperDate, %SuperDate%, d-MMM-yyyy MsgBox, , , SuperDate is... |
|
 |
Forum: Offtopic Topic: My dear US americans ... |
| Litmus Red |
|
Posted: September 10th, 2005, 4:47 pm
|
|
Replies: 22 Views: 3197
|
| I started [The Selfish Gene] many years ago at the suggestion of a friend, thinking I wouldn't find it very interesting, and not much liking the kind of philosophy of life that (on the basis of my friend's description) seemed to lie behind it. But only a chapter or two in, I was completely hooked, ... |
|
 |
Forum: Offtopic Topic: My dear US americans ... |
| Litmus Red |
|
Posted: September 10th, 2005, 12:16 am
|
|
Replies: 22 Views: 3197
|
Guest wrote: The book "Climbing Mount Improbable" by Richard Dawkins contains a nice chapter on the eye's evolution.
Thanks. I've ordered it. |
|
 |
Forum: Support Topic: Calendar control |
| Litmus Red |
|
Posted: September 9th, 2005, 9:09 pm
|
|
Replies: 4 Views: 1212
|
This is a sloppy method, but it works OK.
Code: Gui, Add, MonthCal, gCalendar vmycalendar ,20050101 gui, show Return
Calendar: MouseGetPos, , YPos If YPos < 60 Return gui, submit msgbox, hello %mycalendar% exitapp |
|
 |
Forum: Support Topic: help: I need to join numerous txt files into a single txt bu |
| Litmus Red |
|
Posted: September 7th, 2005, 1:31 am
|
|
Replies: 12 Views: 1214
|
| Based on BoBo/Ranomore's script: inFileLocation = C:\Temp\*.txt Loop,%inFileLocation%,0,1 { FileRead,fileContents,%A_LoopFileFullPath% if a_index = 1 FileAppend,File %a_index%: %A_LoopFileFullPath%`n`n%fileContents%,c:\newfile.txt Else FileAppend,`n`nFile %a_index%: %A_LoopFileFullPath%`n`n%fil... |
|
 |
Forum: Support Topic: msgbox showing number of loops? |
| Litmus Red |
|
Posted: September 7th, 2005, 1:05 am
|
|
Replies: 2 Views: 622
|
Maybe something like this?
Code: Loop { MsgBox, , , A_Index is %A_Index%., 1 If A_Index = 5 { LastNo := A_Index Break } } MsgBox, , , Last A_Index was %LastNo%. Return
There might be a cleaner way. |
|
 |
| Sort by: |