Edited by drego, 27 April 2012 - 08:43 PM.
Embedded IE Javascript Problems
#1
Posted 26 April 2012 - 11:53 PM
#2
Posted 27 April 2012 - 01:08 AM
#3
Posted 27 April 2012 - 07:08 AM
May be an error in your script ?
Show it.
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#4
Posted 27 April 2012 - 07:29 AM
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> #include <INet.au3> _IEErrorHandlerRegister () $ie = _IECreateEmbedded () $mainFrm = GUICreate("offer migrator", 800, 900, 187, 2) $GUIActiveX = GUICtrlCreateObj($ie, 10, 20, 780, 800) GUISetState() _IENavigate ($ie,'***') $form = _IEFormGetCollection($ie,0) $usernameInput = _IEFormElementGetObjByName($form, "u") _IEFormElementSetValue ($usernameInput, "t@tom.com") $passwordInput = _IEFormElementGetObjByName($form, "p") _IEFormElementSetValue ($passwordInput, "****") _IEFormSubmit($form) sleep(6000) ;_IELinkClickByIndex($ie,4) ;_IELinkClickByIndex($ie,4) _IELinkClickByText($ie,"Add Offer") sleep(2000) _IELinkClickByText($ie,"Add Offer") ;_IENavigate($ie,"javascript:LazyLoader({js:'/js/wizards/addcampaign.js?v=' + VERSION,load:function(){addCampaignWizard();}});",0) ;MsgBox(0,'dfs','dfdsfs') While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd
If you would like login details to take a look please PM me. Like I said. I will pay for the solution. This is important.
#5
Posted 27 April 2012 - 07:53 AM
_IEFormSubmit($form) doesn't work.
I will take a look.
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#6
Posted 27 April 2012 - 07:55 AM
Keep your money, username and password are well entered but
_IEFormSubmit($form) doesn't work.
I will take a look.
my script logs into the site just fine. try to see whats happening in the video though thats the real problem. There is an interface that the browser object in my app does not load properly however in normal IE it does.
#7
Posted 27 April 2012 - 08:45 AM
Because when i try with my IE browser to ( manually ) go on this website, after login step, the loading pop up window stay and IE in the bottom left corner display errors on page.
With another browser it loads correctly.
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#8
Posted 27 April 2012 - 02:13 PM
The pragmatic approach would be to just avoid it and use the approach here: http://www.autoitscript.com/forum/topic/138980-iecreatepseudoembedded/page__p__974257__hl___iecreate2__fromsearch__1#entry974257
Dale
#9
Posted 27 April 2012 - 06:31 PM
By curiosity i have tried your suggestion but something block the load of the page.
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#10
Posted 27 April 2012 - 07:21 PM
#11
Posted 27 April 2012 - 08:13 PM
#12
Posted 27 April 2012 - 08:29 PM
I imagine you can do more with _iecreate than you can do with the embedded control, but I don't know for sure. Have you looked at DaleHohm's suggestion?
I was going to but wakillon said it didn't work
#13
Posted 27 April 2012 - 08:33 PM
I was going to but wakillon said it didn't work
It doesn't work with my IE8 but may be you have another IE version ?
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#14
Posted 27 April 2012 - 08:41 PM
It doesn't work with my IE8 but may be you have another IE version ?
okay I just tested and it does work. I guess the normal embedded IE uses a previous version of IE?
Edited by drego, 27 April 2012 - 08:41 PM.
#15
Posted 27 April 2012 - 08:45 PM
Dale
#16
Posted 28 April 2012 - 07:11 AM
My suggestion uses a full instance of IE, so it will work the same as interactively. @wakillon should do some more troubleshooting. Dale
I don't know of which troubleshooting you talk.
I have tried with 2 computers one with IE7 and other with IE8
and in the 2 cases after login step the DotRoi.com loadind pop up stay permanently...
May be drego is on IE9 and there is an incompatibility with previous IE versions.
I let you try !
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#17
Posted 28 April 2012 - 03:31 PM
When your analysis ends with "doesn't work, don't know why", you usually aren't done troubleshooting.I don't know of which troubleshooting you talk.
Dale
#18
Posted 28 April 2012 - 04:19 PM
I asked him what IE version he had but he doesn't answered.
I just want to help by saying what is happening on my side with my IE versions.
If it does not help much, with no more precisions of his part this remains indices.
Did you try with yours ?
• AutoIt Version : 3.3.8.1/3.3.9.4 SciTE 3.3.0 Language:040C OS:WIN_7/ CPU:X64 OS:X64
- [Music] • [2013-04-04] TinyMp3Downloader • [2012-11-05] TinyShoutCastTuner • [2012-11-01] BeepSongEditor • [2012-10-07] Mp3SearchEngine • [2012-07-28] TinyMp3Player • [2012-04-07] TinyChartsJukebox
- [Upload] • [2013-06-08] TinyPicSharer • [2011-12-31] TinyFreeUploader
- [Script Tools] • [2013-05-17] BinaryToAu3Kompressor • [2013-04-10] AutoIt&SciTEUpdater • [2012-12-21] TinyColorCatcher • [2012-10-03] SciTE Hopper • [2012-07-13] RegJumper • [2012-06-06] TinyAu3FilesSearch
- [Utilities] • [2013-05-21] InternetShortcutCreator • [2012-09-03] TinyUninstaller • [2012-07-01] TinyClipToSpeech • [2012-06-30] GetCommandLineParameters • [2011-12-21] TinyBackupBox • [2011-12-05] TinyBrightnessControler • [2010-09-25] TinyBatteryBar
- [Diverse] • [2013-03-06] AnimatedSplash • [2013-01-18] GuiCtrlPicButton Simulate Reaction • [2012-04-15] CanYouRunIt
• Last updated Scripts and executables with full embedded files are available on : GoogleCode
#19
Posted 29 April 2012 - 01:06 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




