# Can anyone please help me create this script - At a loss.....

## Recommended Posts

Can anyone help me do this script?

Excel file is here:

1) Excel Spreadsheet has a number of URLs inside listed

2) Load the URLs inside

3) Paste the Name, Email and URL inside and enter

4) A page will appear with the text

Thank you for submitting your link. It has been submitted for moderator approval and should show up shortly.

back into excel just beside the URL loaded

Can anyone help me do it?

Thanks

##### Share on other sites

Errr anyone can help on this?

##### Share on other sites

Errr anyone can help on this?

How long did you try before you posted for help?

Edit:

Read my comment, seemed to read to be rude, wasn't meant to be so took it out.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

##### Share on other sites

No problem. I tried searching through the forum for each section that I need to do but there are a few parts which I cannot solve as I do know nothing about programming actually hehe ... which is why i thought I would post here as it should be relatively simple for someone with programming knowledge .. sad to say ...

##### Share on other sites

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
WinActivate("Microsoft Excel")
WinWait("Microsoft Excel")
Send("{DOWN}{CTRLDOWN}c{CTRLUP}")

This is the code for my excel to go down 1 line and copy.

However, how do I add it as a variable into my IE.au3 code.

#include <IE.au3>

$o_IE = _IECreate () _IENavigate ($o_IE, "http://www.autoitscript.com/")

How can I replace http://www.autoitscript.com to a variable which is the one copied in Excel?

##### Share on other sites

I think you are going to have to copy the variable to the clipboard and then use clipget() to retrieve it.

send("^C")
$variable=ClipGet()$IE_Addy=$variable I think that is how you would go about doing that Edited by win2k #### Share this post ##### Link to post ##### Share on other sites #include <IE.au3> Dim$variable, $oIE,$o_IE
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
WinActivate("Microsoft Excel")
WinWait("Microsoft Excel")
Send("{DOWN}{CTRLDOWN}c{CTRLUP}")
$o_IE = _IECreate ()$variable=ClipGet()
$IE_Addy=$variable
_IENavigate($oIE, "$variable")

Cannot seem to be able to input the variable in. Was thinking about using Clipget too which should output the Clipboard into a Variable.

But when I run the script, the variable was not pasted in. Anyone knows why ?

##### Share on other sites

#include <IE.au3>

Dim $variable,$oIE, $o_IE Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) WinActivate("Microsoft Excel") WinWait("Microsoft Excel") Send("{DOWN}{CTRLDOWN}c{CTRLUP}")$o_IE = _IECreate ()
$variable=ClipGet()$IE_Addy=$variable _IENavigate($oIE, "$variable") Cannot seem to be able to input the variable in. Was thinking about using Clipget too which should output the Clipboard into a Variable. But when I run the script, the variable was not pasted in. Anyone knows why ? • "$variable" is a string constant, not a variable. Remove the quotes.
• $o_IE <>$oIE. If you use Opt("MustDeclareVars",1) you would catch these errors.

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

you are going to use $IE_Addy in place of where you want to paste the URL and i dont think you need quotes around the variable name when you send it #### Share this post ##### Link to post ##### Share on other sites #include <IE.au3> Dim$variable, $oIE,$o_IE, $IE_Addy Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) WinActivate("Microsoft Excel") WinWait("Microsoft Excel") Send("{DOWN}{CTRLDOWN}c{CTRLUP}")$o_IE = _IECreate ()
$variable=ClipGet() _IENavigate($o_IE, $variable) My latest code - But 2 questions: 1) I get an error message when I run it though it runs fine and opens the webpage as it should 2) Just out of curiousity, why must we use$variable = $ie_addy Is this for clarity or can I just leave it as$variable?

##### Share on other sites

?

Opt("MustDeclareVars",1)
#include <IE.au3>

Dim $variable,$oIE, $o_IE,$o_object
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
WinActivate("Microsoft Excel")
WinWait("Microsoft Excel")
Send("{DOWN}{CTRLDOWN}c{CTRLUP}")
$o_IE = _IECreate ()$variable=ClipGet()
_IENavigate($o_IE,$variable)

When I put in the OPT( must declare vars code

It seems that it keeps giving me Undeclared variables errors from IE.au3

Why is this so? How can I get around this?

##### Share on other sites

It doesn't look to me that you are using the latest version of IE.au3. Please install the most recent beta of AutoIt and it will be installed for you.

The variable \$s_oname does not appear anywhere in the latest version and all of my variables are declared.

_IE_VersionsInfo() will show you the IE.au3 version in the SciTe console. Should be T2.0-5 or higher.

Dale

Edit: and you should find IE.au3 in ...\AutoIt\beta\include not ...\AutoIt\include

Edited by DaleHohm

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

Automate input type=file (Related)

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 on other sites

Thanks it works ... I installed BETA in - I think it was running from the original folder

Thanks

I have got a question, if I got a page like this,

How can I output the http://www.arcadecity.net/link.php?action=in&id=122 into a text file or a excel spreadsheet -

##### Share on other sites

I have got a question, if I got a page like this,

How can I output the http://www.arcadecity.net/link.php?action=in&id=122 into a text file or a excel spreadsheet -

I don't see anything the that link on the page you provided.

Dale

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

Automate input type=file (Related)

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

×

• Wiki

• Back

• Git