Jump to content

EKY32

Active Members
  • Posts

    294
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by EKY32

  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!
  16. Hello, sorry UEZ, I mean the Input Box not the input control. InputBox("Question", "This text should be RTL", "Planet Earth")
  17. Hello, is it possible to get the prompt text direction RTL in the InputBox? Thank you.
  18. Hello everyone, I was taking a look at a very nice >PDF file to learn about DLL calling. It was very useful to me, but it did not help me so much to call Facebook.dll (attached) which is the main functions file in Facebook C# SDK. There are alot of samples and tutorials around the internet about this, but all of them for .NET developers which I did not deal with yet, if you guys can give a hand just to start and understand the call functions of this dll (or any other third-party SDK file) I will appriciate it. Thank you. Facebook.dll.zip
  19. Yes Means no big difference than InetGet [for me as I simply understood].
  20. Dear John, In the >example you gave me, there is a file written to the @ScriptDir called ".pipemyautoitinetgetpipe" & @AutoItPID and in has the returned data in it.
  21. Ah yes dear John I see that, I told you that I don't want a temp file to be written with the returned data, in that link you gave me (which is the best way till now) a temp file is written called ".pipemyautoitinetgetpipe" with the returned data, and MsgBox(0, '', $bData) that should get the buffer data is not getting anything, you should read the data from the temp file.
  22. In my script i'm using a delicate execution that I can't use external process with it, this process may not run for a reason, or may not stop (due to firewall or something..), this will not serve my application main purpose.
  23. Yes I got you, that will require running another process, and this is a problem in my case. Thank you very much.
  24. Nice examples thank you, but I don't want to make a DOWNLOAD process, I don't want to use a temprary file, possible somehow?
  25. I'll give it a try, seems difficult to me. Thank you dear John.
×
×
  • Create New...