Starting with AutoIt
#1
Posted 04 May 2008 - 11:22 AM
I'm just starting with AutoIt, and I'd like to automize some tasks. I've just read the 3 tutorials.
I'd like to open a internet window, go to a site and copy/paste the last topic of a forum into a .txt.
I think I know how to open a internet window, using the function run : Run(C:\Program Files\Internet Explorer\iexplorer.exe).
Now how to select the site where you put the url and write the url I want ?
Afterwards, how to make the mouse move and select a url that is on the site ?
Thanks for your help.
#2
Posted 04 May 2008 - 11:26 AM
Check out the IE functions in the helpfile (under the UDF section), then study the examples.Hello,
I'm just starting with AutoIt, and I'd like to automize some tasks. I've just read the 3 tutorials.
I'd like to open a internet window, go to a site and copy/paste the last topic of a forum into a .txt.
I think I know how to open a internet window, using the function run : Run(C:\Program Files\Internet Explorer\iexplorer.exe).
Now how to select the site where you put the url and write the url I want ?
Afterwards, how to make the mouse move and select a url that is on the site ?
Thanks for your help.
If you do it like this you can even have a script surfing around on the internet in the background
Is the link in my post broken? I do not longer own my domain, all the files are moved to my new domain.Example: http://monoceres.se/test.au3 -> http://andhen.mine.nu/monoceres.se/test.au3
#3
Posted 04 May 2008 - 11:31 AM
Besides, I'd actually prefer to use mozilla, does the help files you're talking about also work for firefox ?
#4
Posted 04 May 2008 - 11:53 AM
No they only works with ie, and the help file comes with autoit, look under program\Autoit V3\Autoit Help FileI'm sorry, I havent understood where to look. Are you talking about this page : http://www.autoitscript.com/autoit3/docs/ ?
Besides, I'd actually prefer to use mozilla, does the help files you're talking about also work for firefox ?
Is the link in my post broken? I do not longer own my domain, all the files are moved to my new domain.Example: http://monoceres.se/test.au3 -> http://andhen.mine.nu/monoceres.se/test.au3
#5
Posted 04 May 2008 - 12:33 PM
#Include<IE.au3> $oIE = _IECreate ("<a href='http://autoitscript.com' class='bbc_url' title='External link' rel='nofollow external'>http://autoitscript.com"</a>) _IELoadWait ($oIE)
another questions, let's read the help file first, i'm sure you'll come back with a specific question
Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keysDon't expect for a perfect life ... Expect a least troubles ones
#6
Posted 04 May 2008 - 12:54 PM
can't we adapt them to firefox ?
#7
Posted 04 May 2008 - 12:57 PM
yes, we can't ... until someone wrote <FireFox.au3>(while reading the help files)
can't we adapt them to firefox ?
Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keysDon't expect for a perfect life ... Expect a least troubles ones
#8
Posted 04 May 2008 - 01:04 PM
#9
Posted 04 May 2008 - 06:25 PM
Edited by Elishac, 04 May 2008 - 06:25 PM.
#10
Posted 04 May 2008 - 10:38 PM
comis autoit v3 tutorial
Edited by TnTProductions, 04 May 2008 - 10:39 PM.
My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"Firestrom: global $warming = False
#11
Posted 05 May 2008 - 01:46 PM
I know it might be a little hard for a first program, but i'd really like to use firefox. Can you tell me how to access to the url bar ? (I think there's a shortcut for that, at least there's a shortcut for that with ie).
You could ControlSend() the keyboard short cut "{F6}" to the Firefox window.
There is not likely to be a Firefox.au3 any time soon. The Mozilla products are based on an entirely different security model that does not open up it's APIs to use by other processes. Firefox is Open Source, and you could add a plug-in that would expose those APIs through a COM interface, but it's not worth it to most people to open the security hole.
#12
Posted 05 May 2008 - 02:05 PM
Nothing worse than giving wrong information to a new person. On that link/tutorial:This really helped me develope my new script it shows you basically how variables and other sorts of things function in Autoit 3
comis autoit v3 tutorial
Is incorrect, I didn't bother to go past that.MsgBox(64,"", "This is a rather _ long line, so _ I broke it with the _ underscore, _, char_ acter.")
The correct method would be:
MsgBox(64,"", "This is a rather " & _ "long line, so " & _ "I broke it with the " & _ "underscore, _, char" & _ "acter.")
Edit:
This is a fairly good tutorial written a while back by LxP: http://www.autoitscript.com/forum/index.ph...c=19434&hl=
Edited by SmOke_N, 05 May 2008 - 02:07 PM.
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.
#13
Posted 08 May 2008 - 09:30 PM
#14
Posted 08 May 2008 - 09:31 PM
There are no real FireFox udfs that are worth anything really. Utilize the IE.au3 udfs in the help file for web automation.Do you have an idea how I could press a link on firefox ?
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.
#15
Posted 08 May 2008 - 09:47 PM
#16
Posted 08 May 2008 - 10:11 PM
I'm sorry, maybe I wasn't clear if you didn't understand.I understood that. But i'd like to try some easy tasks with firefox anyway. Can you please help me ?
Use the IE* functions, as there are really no reliable methods to use with firefox.
Edit:
Maybe you could make one: http://developer.mozilla.org/en/docs/Main_Page
Edited by SmOke_N, 08 May 2008 - 10:12 PM.
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.
#17
Posted 08 May 2008 - 11:28 PM
I'm sure there should be a way to click on a link, at least either by using the tabulation or the mouse click.
I'd like someone to help me with my issue, you surely do know more things that I do about autoit possibilites, so please help me.
#18
Posted 08 May 2008 - 11:43 PM
No, you cant use IE functions in Firefox."Use the IE* functions" : do you mean it's possible that some IE functions work with firefox ?
Ofcource that would be possible, use Send()/MouseClick() or ControlSend()/ControlClick() but that would be extremely mush worse that using the IE functions.I'm sure there should be a way to click on a link, at least either by using the tabulation or the mouse click.
I'd like someone to help me with my issue, you surely do know more things that I do about autoit possibilites, so please help me.
How to Report Bugs Effectively
Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC Shift
Some of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
#19
Posted 09 May 2008 - 12:12 AM
Besides, do you see a way to :
- get what is written on the bottom and on the left of the firefox window (where the url appears) ?
- know if something is some text is selected ? I want to use the ctrl+F to search for a word, but afterwards, how can I see what is selected (I'd want to click the link right above that word) Is there a function or any other way to get the mouse to the selected text ?
Edited by Elishac, 09 May 2008 - 12:22 AM.
#20
Posted 09 May 2008 - 12:20 AM
How to Report Bugs Effectively
Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC Shift
Some of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




