Jump to content
Sign in to follow this  

How to send text to embedded iexplorer

Recommended Posts

I'm trying to create my own GUI for an online game I'm addicted to. I'm new to all of this, so please bear with me. I did search the forum, but couldn't find an answer for what I experience.

The GUI is very simple for the moment, I have an embedded explorer that connects to the game site. At the right side I want some buttons that do certain actions.

One of them is to send text to the game when I press a button.


Global $Width = 872, $Height = 650 
Global $main_frm
Global $Home_Input, $urlinput, $Blank = "", $historystate = 0, $Listview, $find_input

$oIE = ObjCreate("Shell.Explorer.2")
$main_frm = GUICreate("Runescape", $Width, $Height, -1, -1, $WS_SIZEBOX + $WS_MINIMIZEBOX + $WS_CAPTION + $WS_POPUP + $WS_SYSMENU + $WS_MAXIMIZEBOX)
$IEObj = GUICtrlCreateObj($oIE, 2, 2, 785, 640)
$Button1 = GUICtrlCreateButton("Calc", 789, 2, 80, 24)
$Button2 = GUICtrlCreateButton("Notepad", 789, 28, 80, 24)

$Button10 = GUICtrlCreateButton("Send Text", 789, 236, 80, 24)
GUISetState(@SW_SHOW, $main_frm)


While 1
    $msg = GuiGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $Button1
            Run ("Calc.exe")
        Case $msg = $Button2
            Run ("Notepad.exe")
        Case $msg = $Button10
            Send("Text to send to game")

When I press the button the text does not get sent.

Any help would be very much appreciated.

Share this post

Link to post
Share on other sites

Take a look at ControlSend

I presume that when you click the button in your GUI, the GUI is gettin the keyboard focus instead of the embedded IE.


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn'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?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...