tarretarretarre Posted July 11, 2017 Share Posted July 11, 2017 (edited) Hi! Sorry for the janky title, I really don't know how to describe this issue. Basically, when I focus an embedded IE window in my first created GUI I cannot use backspace to erase content in Gui Inputs boxes, instead the backspace is sent to the OIE control. I could not find anyone with a similar problem, so if there is already an solution, please reefer me Here is a script that will reproduce the problem. expandcollapse popupOpt("GUIOnEventMode", 1) #include <IE.au3> #include <GUIConstantsEx.au3> SplashTextOn("Please wait", "Please wait for setup", 200, 50) Global $oIE = _IECreateEmbedded() Global $hGUI = GUICreate("", 800, 600) ; Create controls Global $iMenu = GUICtrlCreateMenu("Test") Global $iOpenNewGui = GUICtrlCreateMenuItem("Open new gui", $iMenu) Global $iObj = GUICtrlCreateObj($oIE, 0, 0, 800, 600) ; Show gui GUISetState() ; Navigate to test _IENavigate($oIE, "https://pastebin.com/AL8kXcNB") ; Go to inputarea Local $oTextarea = _IEGetObjById($oIE, "paste_code") _IEAction($oTextarea, "focus") Send("{end}") SplashOff() MsgBox(0,"How to reproduce ", "1. Open Test -> Open new gui" & @LF & "2. Start typing" & @LF & "3. Start using backspace") ; Bind events GUICtrlSetOnEvent($iOpenNewGui, Callback_OpenNewGui) GUISetOnEvent($GUI_EVENT_CLOSE, "_exit") while IsHWnd($hGUI) WEnd Func _Exit() GUIDelete(@GUI_WinHandle) EndFunc Func Callback_OpenNewGui() Local $hGUI = GUICreate("", 150, 150) ; Create controls GUICtrlCreateInput("",25, 10, 100) ; Bind events GUISetOnEvent($GUI_EVENT_CLOSE, "_exit") ;Show gui GUISetState() EndFunc Any ideas? Edited July 11, 2017 by tarretarretarre xx Socket-IO - An event-driven TCP UDF (Realtime chat example) AutoIt-API-WS - An expressive HTTP server you can use to build your own API with (Screenshots) Link to comment Share on other sites More sharing options...
Danp2 Posted July 11, 2017 Share Posted July 11, 2017 Don't know how to fix this. However, I noticed that Control+H can be used as the equivalent to backspace. Also found this: https://www.autoitscript.com/trac/autoit/ticket/110 tarretarretarre 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
tarretarretarre Posted July 11, 2017 Author Share Posted July 11, 2017 Thank you for the CTRL + H find! That will have to do in the meanwhile... Ill try to make a bug-report. Socket-IO - An event-driven TCP UDF (Realtime chat example) AutoIt-API-WS - An expressive HTTP server you can use to build your own API with (Screenshots) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now