Jump to content

EKY32

Active Members
  • Posts

    294
  • Joined

  • Last visited

  • Days Won

    1

EKY32 last won the day on September 2 2013

EKY32 had the most liked content!

Recent Profile Visitors

264 profile views

EKY32's Achievements

  1. Thanks, I know I should, but as I mentioned, sometimes I need to make fast updates to the code and compile it before double cheking it. Thank you very much.
  2. That's it thank you, I'll appreciate if you can give me a more simple one please, as I do not want the message to appear that way. The UDF has errors too.
  3. Hello, I have a huge script which I daily update, some users may have errors during the use of my application, I do not want the script errors to show miss-coding erros like "AutoIt Error" or "Subscript used on non-accessible variable", isn't there a way I can use an error listner or something that can show one specific alert for any error that may occure? Thanks in advance.
  4. You people are all geniuses, i'm very thankful to all of you. All the methods worked fine but the one jguinch posted was perfect to my need. Thank you all again.
  5. Thanks, I don't think this helps in my situation, In fact, I do not know the real URL, I'm filtering a long amount of text, converting the plain text URLs to real HTML coded ones, and then replace some other characters (like smiles for example..) with image codes .. so I do not want the smile filtering function to approach to the URLs and replace any of their text. Thanks.
  6. Hello, I have a text that I need to do some replacment to it's characters, lets say I need to replace the dashes "-" with spaces, but I do not want the dashes inside the anchor tag to be replaced, only the ones outside it. $text = "here is the link http://www.my-li-nk.com that should stay as is, and here are-the-dashes-that-need-to-be replaced with spaces" I've previously used >somoke_n's code to identify the anchor tag. Func _replaceURLWithHTMLLinks($sText) Local Const $sExp = "(?i)(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])" Return StringRegExpReplace($sText, $sExp, "<a href='$1'>$1</a>") EndFunc Thanks in advance.
  7. That's it thank you very much.
  8. Hello, i'm not good using StringRegExp function, may I have some help to make a function that replaces the plain text links with regular HTML anchor tags? I found a JavsScript sample that may help. function replaceURLWithHTMLLinks(text) { var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; return text.replace(exp,"<a href='$1'>$1</a>"); } Thank you.
  9. Thank you, I don't want to use a hotkey, how should I handle the cancel code to pass the ExitLoop command while i'm inside that loop?
  10. Hello, how should I stop any code running inside a loop? using the best method. Thanks. #include "WinHttp.au3" #include <WindowsConstants.au3> Global $sDomain = "https://website.com" Global $sPage = "page.html" $Form1 = GUICreate("TEST", 328, 178, 192, 124) $Start = GUICtrlCreateButton("Start", 24, 144, 75, 25) $Stop = GUICtrlCreateButton("Stop", 224, 144, 75, 25) $Console = GUICtrlCreateEdit("", 8, 8, 313, 129) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Start $hOpen = _WinHttpOpen() $hConnect = _WinHttpConnect($hOpen, $sDomain) For $i = 1 To 20 $sReturned = _WinHttpSimpleSSLRequest($hConnect, "POST", $sPage, Default) ; Reporting to console GUICtrlSetData($Console, GUICtrlRead($Console & @CRLF)) Next Case $Stop ; Stop the posting process up there ^ EndSwitch WEnd _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen)
  11. That's it, sure I do! You're the master coder.
  12. Is there any other Gif UDF that don't cause this problem, please?
  13. I'm sorry UEZ, forgot to mention that this is happening when I use GIFAnimation UDF made by trancexx. Everything is fine with PNG and other formats using the same UDF, but GIF images are being flipped. Thanks.
  14. Hello, all the images in the GUI or ListView are being inverted (flipped) when I use $WS_EX_LAYOUTRTL, is there anyway to avoid that please? at least for specific image controls. THANKS. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include "D:\AutoIt3\Samples\GIF\GIFAnimation.au3" $Form1 = GUICreate("My RTL GUI", 435, 167, 192, 124, default, $WS_EX_LAYOUTRTL) $Pic1 = _GUICtrlCreateGIF("animation.gif", 1, 144, 40, 145, 49) $Label1 = GUICtrlCreateLabel("This image should not be flipped", 136, 112, 156, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  15. You are amazing people!
×
×
  • Create New...