Jump to content



Photo

_IE(GuictrlRead) ?


  • Please log in to reply
4 replies to this topic

#1 ileandros

ileandros

    Universalist

  • Banned (NOT IN USE)
  • 592 posts

Posted 10 March 2012 - 02:35 PM

Hello,
i got 2 edit boxes. They are both empty.
When i press the $Button1 as you see it creates navigation window, it gets the object by name(it is an edit box for text), it reads and then sends the $edit1 to the object.
What i want to do is after this to set the value/data of the ($oForm) to the $edit2



AutoIt         
#include <IE.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <File.au3> $Form1 = GUICreate("Form1", 590, 380, 192, 124) $Button1 = GUICtrlCreateButton("All", 256, 168, 75, 25) $List1 = GUICtrlCreateEdit(" ", 48, 40, 185, 305) $List2 = GUICtrlCreateEdit("", 360, 48, 185, 292) GUISetState(@SW_SHOW) While 1     $nMsg = GUIGetMsg()     Switch $nMsg         Case $GUI_EVENT_CLOSE             Exit         Case $Button1    $oIE = _IECreate("http://")    $oForm = _IEFormGetObjByName($oIE, "text_form")    Send(GUICtrlRead($List1))    Sleep(2000)    GUICtrlRead($oForm)    GUICtrlSetData($List2, $oForm)     EndSwitch WEnd


I think a
For... to...next

could do sth but i cant find how....
Any tips???

Edited by ileandros, 10 March 2012 - 02:40 PM.

I feel nothing.It feels great.







#2 ileandros

ileandros

    Universalist

  • Banned (NOT IN USE)
  • 592 posts

Posted 11 March 2012 - 01:01 PM

So does anyone knows how can i read an edit box at the internet???
I feel nothing.It feels great.

#3 ileandros

ileandros

    Universalist

  • Banned (NOT IN USE)
  • 592 posts

Posted 12 March 2012 - 11:12 PM

Bump! Anyone knows how to read an _IE editbox.??? I have the name of it through the source code but how can i get the controll of it??? I want my edit box to read and display the IE edit box...
I feel nothing.It feels great.

#4 DaleHohm

DaleHohm

    Think of IE as an API...

  • MVPs
  • 5,889 posts

Posted 12 March 2012 - 11:43 PM

There is no such thing as an IE EditBox. We can't see what you are trying to do because you do not include a URL in your code. You also overcomplicate your example with AutoIt GUI code. Try cutting your code back to focus just on what your question is and find an example somewhere else if you can't use the real URL.

As a guess, look at _IEFormElementGetValue, but no one will work any harder at this until you do.

Dale
IE.au3 issues with Vista - Workarounds, Automate input type=file (Related)SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YFree Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model,Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbeddedFind and harvest Enum constants for COM codeAutoIt Snippets Database - you too can contribute!Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your troubleDoesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

#5 ileandros

ileandros

    Universalist

  • Banned (NOT IN USE)
  • 592 posts

Posted 17 March 2012 - 02:14 PM

Dale
_IEFormElementGetValue sets the data at the editbox. Which means writes at the edit box.
I know that and i already done it. What i want to do is to read the data i have set (read what there is at the edit box) and then display it at my editbox.
I know that there is not such thing as _IE editbox. Its an editbox at a navigation site. I Named it like this and maybe it was mistake.

I feel nothing.It feels great.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users