
Undutchable
Active Members-
Posts
31 -
Joined
-
Last visited
About Undutchable
- Birthday 07/05/1973
Profile Information
-
Location
Netherlands
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Undutchable's Achievements

Seeker (1/7)
1
Reputation
-
Awesome. thanks again trancexx. Look what I was doing (rookie style): $headersArray = StringSplit($headers, @CRLF, 1) For $ha = 1 To UBound($headersarray)-1 If stringleft($headersarray[$ha],20) = "Set-Cookie: .EMCAUTH" Then $Cookie1 = StringMid($headersarray[$ha], 5) ElseIf stringleft($headersarray[$ha],29) = "Set-Cookie: ASP.NET_SessionId" Then $Cookie2 = StringMid($headersarray[$ha], 5) EndIf Next
-
didn't catch your tip, but I'm reading StringRegExp now. Gonna try! Thanks!
-
It's no biggie. The reason why I asked is because I don't know enough AutoIT to modify your _WinHttpQueryHeaders so that it returns multiple values of cookies (msdn page is enough but not for me ) Parsing the full string (delimited with CRLF) is causing me codepage issues because, for ex, _ArrayFindAll (after StringSplit) is not finding the string "Set-Cookie" (I just tested and, for ex, my "S", is not the same as the "S" that I'm getting returned). Is it complicated to adapt your function? RegExp is also not my forté.. Thanks in advance
-
Thank you trancexx. So this is not related to what I'm trying to achieve? http://msdn.microsoft.com/en-us/library/aa384102(VS.85).aspx Quoting from that page: "lpdwIndex [in, out] - Pointer to a zero-based header index used to enumerate multiple headers with the same name." Thanks
-
Hi Very nice script! One question though: When there's more than one response header with the same name, how do I get the second? This returns only the first cookie in "Set-Cookie" return header: $cookieResp = _WinHttpQueryHeaders($h_openRequest, $WINHTTP_QUERY_SET_COOKIE) The case is that I have a server returning 2 cookies and I need them both. Am trying to avoid parsing the full header. Was hoping the _WinHttpQueryHeaders could do it. Thanks!
-
Guys, I'm having trouble setting up the event handler for Microsoft.XMLHTTP. I read some sugestions on the forum but i keep getting error (no such interface supported). ANYONE knows how to code the event handler for XMLHTTP? ->(configured by onreadystatechange - http://msdn.microsoft.com/en-us/library/ms762767(VS.85).aspx) Something like this: $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") $objHTTP = ObjCreate("MSXML2.XmlHttp.6.0") ;or MSXML2.XmlHttp; or Microsoft.XMLHTTP ObjEvent($objHTTP,"Evt_") $objHTTP.open ("post", "some site", True) $objHTTP.onreadystatechange("onreadystatechange") ; also don't know how to reference my function here.. $objHTTP.send ("something") Func Evt_onreadystatechange() $o = @COM_EventObj msgbox (0,"msg", $o.state) Endfunc Func MyErrFunc() $HexNumber=hex($oMyError.number,8) Msgbox(0,"COM Test","We intercepted a COM Error !" & @CRLF & @CRLF & _ "err.description is: " & @TAB & $oMyError.description & @CRLF & _ "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _ "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF) SetError(1) Endfunc Any help is appreciated! This one is killing me! Thanks
-
Guys, ..a bit offtopic because I'm using the object directly.. I'm having trouble setting up the event handler for Microsoft.XMLHTTP. I read your sugestions but i keep getting error (no such interface supported). ANYONE knows how to code the event handler for XMLHTTP? ->(configured by onreadystatechange - http://msdn.microsoft.com/en-us/library/ms762767(VS.85).aspx) Something like this: $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") $objHTTP = ObjCreate("MSXML2.XmlHttp.6.0") ;or MSXML2.XmlHttp; or Microsoft.XMLHTTP ObjEvent($objHTTP,"Evt_") $objHTTP.open ("post", "some site", True) $objHTTP.onreadystatechange("onreadystatechange") ; also don't know how to reference my function here.. $objHTTP.send ("something") Func Evt_onreadystatechange() $o = @COM_EventObj msgbox (0,"msg", $o.state) Endfunc Func MyErrFunc() $HexNumber=hex($oMyError.number,8) Msgbox(0,"COM Test","We intercepted a COM Error !" & @CRLF & @CRLF & _ "err.description is: " & @TAB & $oMyError.description & @CRLF & _ "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _ "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF) SetError(1) Endfunc Any help is appreciated! This one is killing me! Thanks
-
FileSaveDialog default name read-only?
Undutchable replied to Undutchable's topic in AutoIt General Help and Support
Correct Hawkwing..thought about that.. but in this case it's more important for me to keep the name i sugested (has a date algorithm) Until something better comes up, it will have to do >_< Cheers -
FileSaveDialog default name read-only?
Undutchable replied to Undutchable's topic in AutoIt General Help and Support
Yeah, I didn't want to use the FileSelectFolder because I believe it doesn't show me the files present in the folder and also, reading the helpfile, it says UNC paths are not supported. I guess the only way is like Bowmore mentioned: Replace the name no matter what the user inputed. Thanks guys! -
FileSaveDialog default name read-only?
Undutchable posted a topic in AutoIt General Help and Support
Hello, In FileSaveDialog, is there a way to prevent editing of the default file name that I sugest? Probably been answered before but my search reveals nothing. thanks! -
How to select all text in Inputbox
Undutchable replied to Undutchable's topic in AutoIt General Help and Support
Nice.. _GUICtrlEdit_SetSel There is a function for it after all. Man, AutoIT grew like crazy. If only the compiled script resulted in size and speed like, for ex, powerbasic or purebasic, and the creator would make millions! Thanks Yashied. I will use that function alone because I always know the handle of the control. Congrats to all the community cause you guys are fantastic. Keep it up >_< -
How to select all text in Inputbox
Undutchable replied to Undutchable's topic in AutoIt General Help and Support
JS was correct. The intention was to remove the text. But I was also trying to avoid sending keystrokes. I don't know why, it always feels kind of a "hack", like you mentioned. Melba's example will work for me (replacing dummy button with existing one of course) >_< Thank you both for the great help. Cheers -
Hello, I hate asking simple questions, but I also prefer to use the simplest code to perform something. How can I select all text in an Inputbox (GuiCtrlCreateInput) after I insert the value with GuiCtrlSetData ? (The intention to select all text is to facilitate insertion of new data, deleting all existing) I know I have the style $ES_NOHIDESEL which will keep the selection if I change focus, but how do I select all text in the inputbox in the first place? Thanks guys. >_<
-
Input box and guiGetMsg
Undutchable replied to Undutchable's topic in AutoIt General Help and Support
psandu.ro, perfect! >_< Thank you! -
Hi guys, Basic question but I can't find the answer: I have a inputbox created with GuiCtrlCreateInput, and I would like to validate the user entry per letter. But the GuiGetMsg is only activated when I click on another box from the Gui. I would like a condition to be evaluated every time one letter is inputed in the inpubox. Is there a way? Thanks! >_<