Rami Posted February 25, 2008 Share Posted February 25, 2008 I made this auto post for a chatting room, i tried to change the values of $f_visible to 0 so i can make it hidden but the code doesn't function unless it is 1, how can i overcome this issue, because I want to use my laptop while i am posting the required text in this chatting room. or whatever the case is. CODE#include <IE.au3> $oIE = _IECreate ("http://www.arabfun.com/entertainment/loginc.cgi", 1, 1, 1, 0) If _IEPropertyGet($oIE, "Title") = (" Entertainment : Music - Sports - Technology - Travel") Then $oIE = _IECreate ("http://www.arabfun.com/entertainment/loginc.cgi", 1, 1, 1, 0) EndIf WinWaitActive("ArabFun!", "", "") ControlEnable("ArabFun!", "", "mesg") ClipPut("test 1") Send("^v") WinActivate("ArabFun!", "aio") Send("{ENTER}") Sleep(10000) WinWaitActive("ArabFun!", "", "") ControlEnable("ArabFun!", "", "mesg") ClipPut("test 2") Send("^v") WinActivate("ArabFun!", "aio") Send("{ENTER}") Sleep(10000) WinWaitActive("ArabFun!", "", "") ControlEnable("ArabFun!", "", "mesg") ClipPut("test 3") Send("^v") WinActivate("ArabFun!", "aio") Send("{ENTER}") Sleep(10000) WinWaitActive("ArabFun!", "", "") ControlEnable("ArabFun!", "", "mesg") ClipPut("test 4") Send("^v") WinActivate("ArabFun!", "aio") Send("{ENTER}") Sleep(10000) Link to comment Share on other sites More sharing options...
DaleHohm Posted February 25, 2008 Share Posted February 25, 2008 You can potentially use ControlSend instead of Send, but as a web app you would be much better off continuing to use IE.au3... look at _IEFormElementSetValue in the helpfile. Dale 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 Link to comment Share on other sites More sharing options...
Rami Posted February 25, 2008 Author Share Posted February 25, 2008 You can potentially use ControlSend instead of Send, but as a web app you would be much better off continuing to use IE.au3... look at _IEFormElementSetValue in the helpfile.DaleMy question is how to deal with this website from hidden window so i guess you want me to check in _IEFormElementSetValue so i can reach this purpose, and yes it is potentiall to use ControlSend but the problem is i try to send arabic text which UTF-8, but ControlSend gives weird characters, so i tried to go around the problem with clipboard.but if there is more effective method which supports unicode languages then i'd rather use it. Link to comment Share on other sites More sharing options...
DaleHohm Posted February 25, 2008 Share Posted February 25, 2008 I don't do it myself, but others have had success with functions like _IEFormElementSetValue and UTF-8 Dale 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 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