Jump to content

Recommended Posts

Posted

$flvfile = ControlGetText("Save As", "", "ClassNameNN=Edit1")

This is the Variable I used. Is it correct?

Close. Try
$flvfile = ControlGetText("Save As", "", "Edit1")

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted

Thanks figured out a way to do it hehe :whistle:

#include <IE.au3>

Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("MouseCoordMode", 0)

WinWait("Microsoft Excel", "")
If Not WinActive("Microsoft Excel", "") Then _
        WinActivate("Microsoft Excel", "")
WinWaitActive("Microsoft Excel", "")
Send("{CTRLDOWN}c{CTRLUP}")

$sURL = ClipGet()
$oIE = _IECreate($sURL, 0, 1, 0)
$hwnd = _IEPropertyGet($oIE, "hwnd")
WinSetState($hwnd, "", @SW_MAXIMIZE)
WinActivate($hwnd, "")
_IELoadWait($oIE)
_IELinkClickByText($oIE, "Download")
WinWaitActive("File Download")
Sleep (1000)
ControlClick ( "File Download", "&Save", "Button2")
WinWait("Microsoft Excel", "")
If Not WinActive("Microsoft Excel", "") Then _
        WinActivate("Microsoft Excel", "")
WinWaitActive("Microsoft Excel", "")
Send("{RIGHT}{CTRLDOWN}c{CTRLUP}")
WinActivate("Save As", "")
WinWait("Save As", "")
If Not WinActive("Save As", "") Then _
        WinActivate("Save As", "")
WinWaitActive("Save As", "")
Sleep(1000)
Send("{CTRLDOWN}v{CTRLUP}")
ControlClick ( "Save As", "&Save", "Button2")
Sleep(2000)
WinClose ($hwnd, "" )
WinWait("Microsoft Excel","Worksheet Menu Bar")
If Not WinActive("Microsoft Excel - test.xls","Worksheet Menu Bar") Then WinActivate("Microsoft Excel - test.xls","Worksheet Menu Bar")
WinWaitActive("Microsoft Excel - test.xls","Worksheet Menu Bar")
Send("{LEFT}{DOWN}")

Anyway how can I make it loop through the whole excel spreadsheet till it comes to a blank cell :)

Posted

Suggest you open a new thread.

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

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
×
×
  • Create New...