Jump to content

atomman

Active Members
  • Posts

    122
  • Joined

  • Last visited

atomman's Achievements

Adventurer

Adventurer (3/7)

1

Reputation

  1. very easy to get this script working! but this seems to break it... this works: $file = 'C:\file.txt' _FtpPutFile($Hand, $file, '/') this doesn't work: $dir = 'C:\' $file = 'file.txt' _FtpPutFile($Hand, $dir & $file, '/') EDIT - there's something else going on (probably something i'm doing wrong) - sometimes i can get it to transfer, sometimes not. passive mode has no effect.
  2. Hi Saunders His code removes all line feeds... and spaces. That's what i needed to do. In your example (2nd line), you show the output as having line feeds, but they're removed. So far it seems to do exactly what i needed -- well, what it doesn't do i'm capable of making it do. I just needed a start. I have a tough time with reg-exp.
  3. hot-diggty-dog! i was hoping it could be done with one line! you just made my day my friend. thank you much!
  4. nothing If you have say, 3 line feeds, back to back, the code will return multiple empty tags (<p></p><p></p><p></p>) since it's replacing every line feed with the tags. I want to simply discard them -- or -- remove all but the first line feed, then replace the line feeds with the tags. In other words, if there's 2+ line feeds back to back, remove the first, then replace the remaining with the the tags. I would assume it's either that, or run another StringReplace() on what was returned to strip empty tags.
  5. $string = "Line 1 " & @CRLF & @CRLF & "Line2" & @CRLF & "Line 3" & @LF & @CRLF & "Line 4" & @CR & "Line 5" $result = StringRegExpReplace($string, "(" & @CRLF & "|" & @CR & "|" & @LF & ")","</p><p>") MsgBox(0,"",$result) Seems to work pretty good! If there's multiple line feeds back to back (see code), i get empty tags (<p></p>) Unless you think i should do it differently, i'll just StringReplace("<p></p>", "") what is returned from above. And thanks! This solves several issues for me.
  6. I can do very simple tasks with regular expressions, but beyond that i'm lost. I need to detect all kinds of returns in a string copied from the windows clipboard (LF, CR, CRLF), then replace them with some html tags and new returns. If there's multiple returns together, i don't want empty tags though. So... "<p>i am a @CRLF string</p>" and... "<p>i am a @CRLF @CRLF string</p>" needs to end up as... "'<p>i am a</p>' & @CRLF & '<p>string</p>'"
  7. EDIT: whoops - spoke too fast. i think i might have the zone figured out. thanks!
  8. i need to convert the PC day, date, month, year, time and timezone into this format, exactly (case sensitive too): Thu, 17 Jan 2008 02:00:00 EST EDIT: should've been more specific -- the only part i'm having a problem with is how to convert the day number to text, and same with month and timezone. the rest is cake. there's a lot of 'date' functions and i don't know where to start.
  9. ah! sorry guys! i meant i need to get the handle of the non-AU3 window even if the AU3 window is topmost. i stated that in a post earlier, but i didn't carry it over to my last post. sorry. @martin - using your code works fine, but it only returns info from the topmost AU3 window (unless i'm doing something way wrong, because i haven't tested any of this thoroughly yet -- i'm involved in another struggle at the moment
  10. i want to WinGetHandle("") (or WinGetTitle("")) of the non-AU3 window which receives a mouse L-click so i have the handle/title to use in further operations.
  11. @martin -- yeah, that's what i want, but my problem is that i have one AU3 GUI which is always on top, so that's the only one i'm getting titles/handles for. i need to ignore all the GUI's created in the script and get the title/handle of the one clicked on.
  12. NEVER MIND everyone's allowed one dumb-ass question a day :/
  13. why do these only work for AutoIt GUI's? Case $GUI_EVENT_PRIMARYDOWN MsgBox(0, "", WinGetTitle("")) or... Case $GUI_EVENT_PRIMARYDOWN MsgBox(0, "", WinGetHandle(""))
  14. oh jeez! i better lock myself in a closet. thanks martin!
×
×
  • Create New...