Sign in to follow this  
Followers 0
Vegar

Load link whitout IE

22 posts in this topic

Hello!! ...

is there any way i could load i link witout opening the program ( firefox ) ... ( so just like it load's it in the background!! )

and i will not use Internett explorer ( i have my reasons!! )

........

so i temporearely just have made a script like this..

(and yeah i have firefox ass my "default" internett search engine .. so sites like them below opens automaticly in forefox!!)

ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")

so ... is there any way to make something like this ( above ) just without that it opens it... it just loads it in the background!?!?!

PlZ help!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

put the browser in a GUI, then make it invisible

$oIE = _IECreateEmbedded ()
$Form1 = GUICreate("Form1", 500, 500, 193, 125)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 500, 450)
_IENavigate ($oIE, "E:\AutoIt Project\xample.html")
GUISetState(@SW_HIDE)
Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]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 keys

Share this post


Link to post
Share on other sites

ehh .. ok .. sorry but i'm not too good with this programm...

so could you make a scipt that loads the this link "http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061" one time ( in the backgroun ) ...

and then i'l thing i will figure out the rest myself!! :D

Share this post


Link to post
Share on other sites

Or maby there is an easyer way ... Is there????

Share this post


Link to post
Share on other sites

ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061", "", "", "", @SW_HIDE)


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061", "", "", "", @SW_HIDE) ???????

That did not work ... firefox popped upp anyway's!!!!!

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

--

Edited by AL3X

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Yeah as you said above and just discovered again, shellexecute will open up firefox for you. You have to open the website in some web browswer, even if you use a hidden or embedded broswer window your still using IE.

If you are really not going or can't use IE at all your out of luck unless there is another web browser you can script to interact with...I've heard you can't really do this with firefox.

So pretty much you have what d4rk mentioned, you have _IECreate and can make that hidden, or you try to find another browser... I can't think of anything else.

Why can't you use IE exactly?

EDIT: Good catch AL3X I forgot about that... I have no idea though if that will work for what you want though Vegar

Click me

Edited by someone

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

--

Edited by AL3X

Share this post


Link to post
Share on other sites

Try this but I don't have my portable drive with FF hooked to this system right now so I can't check it.

Opt ("WinTitleMatchMode", 2);; any part of the title is recognized but it is still case sensitive.
ShellExecute ("http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061")
Do
   Sleep(2)
Until WinExists("whatevere text is in the title bar for FF")
WinSetState("Same text as above", "", @SW_Hide)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Yeah as you said above and just discovered again, shellexecute will open up firefox for you. You have to open the website in some web browswer, even if you use a hidden or embedded broswer window your still using IE.

If you are really not going or can't use IE at all your out of luck unless there is another web browser you can script to interact with...I've heard you can't really do this with firefox.

So pretty much you have what d4rk mentioned, you have _IECreate and can make that hidden, or you try to find another browser... I can't think of anything else.

Why can't you use IE exactly?

EDIT: Good catch AL3X I forgot about that... I have no idea though if that will work for what you want though Vegar

Click me

i dont want to use IE because the link's i am supose to "load" is on facebook ... and then i have to log in on IE before it will work .. but if there is any way that the script could log me inn atomaticly that coul be better!!

soo.. any ideas??

Share this post


Link to post
Share on other sites

i dont want to use IE because the link's i am supose to "load" is on facebook ... and then i have to log in on IE before it will work .. but if there is any way that the script could log me inn atomaticly that coul be better!!

soo.. any ideas??

Look at the IE management functions. You can send data to a form in a hidden IE window. That will allow you to log on.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

But what is best???

Try to make this in firefox

or

make it in internett explorer ( but then i need to make automatic Login!! )

Share this post


Link to post
Share on other sites

But what is best???

Try to make this in firefox

or

make it in internett explorer ( but then i need to make automatic Login!! )

Do it with whatever works best. If my last posted code doesn't do it in FF then you may have to do it using IE unless someone else comes along with something that works in FF.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

uhh .. dont get anything to work!!...

but when you go to Start>Run.. is it posible just to write something before the link ( or something like that ) so it load's the link but not opening it!!!...

Example:

Shellexecute ("something here to hide: THELINK")

or is there any other ( easy ) way???

Share this post


Link to post
Share on other sites

$Url = "http://dundats.mvps.org/autoit"
ShellExecute(@programFilesDir & "\Internet Explorer\iexplore.exe", $Url, "", "", @SW_Minimize)

I used @SW_Minimize for demonstartion purposes only, to show that it works. You can change that to @SW_Hide


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Actually here is a more complete example that uses @SW_HIDE

Opt ("WinTitleMatchMode", 2)
$Win_ttl ="Internet Explorer"
$Url = "http://dundats.mvps.org/autoit"
$process = ShellExecute(@programFilesDir & "\Internet Explorer\iexplore.exe", $Url, "", "", @SW_Hide)
Do
   Sleep(10)
Until WinExists($Win_ttl)
Sleep(10000)
If MsgBox ( 262180, 'Hey there!!!', 'Do you want to display the hidden IE window?') = 6 Then
   WinSetState($Win_ttl, "", @SW_Show)
   WinActivate($Win_ttl)
Else
   WinClose($Win_ttl)
   MsgBox(0, "Closing", "Bye for now, but you will be back", 5)
EndIf
If ProcessExists($Process) Then ProcessClose($Process)
Once the window exists it will wait 10 seconds before opening a MsgBox to ask if you want to display the window. Choose Yes to see that it worked or No to close the process

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

$Url = "http://dundats.mvps.org/autoit"
ShellExecute(@programFilesDir & "\Internet Explorer\iexplore.exe", $Url, "", "", @SW_Minimize)

I used @SW_Minimize for demonstartion purposes only, to show that it works. You can change that to @SW_Hide

yeah i tried it and used @SW Hide .. and it worked like hell ( tested it on the counter .. so i know it worked! )

but when i change:

$Url = "http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061"

ShellExecute(@programFilesDir & "\Internet Explorer\iexplore.exe", $Url, "", "", @SW_HIDE)

TO

$Url = "http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061"

ShellExecute(@programFilesDir & "\Mozilla Firefox\firefox.exe", $Url, "", "", @SW_HIDE)

it does open FF ... i dont get why ... i even tried to write @SW_Minimize ( insted of @SW_Hide ) and it did still maximize the page .. so i think i have to find an other way!!..

but thanx GEOsoft, you are alot of help :D

Share this post


Link to post
Share on other sites

yeah i tried it and used @SW Hide .. and it worked like hell ( tested it on the counter .. so i know it worked! )

but when i change:

$Url = "http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061"

ShellExecute(@programFilesDir & "\Internet Explorer\iexplore.exe", $Url, "", "", @SW_HIDE)

TO

$Url = "http://www.website-hit-counters.com/cgi-bin/image.pl?URL=52148-0061"

ShellExecute(@programFilesDir & "\Mozilla Firefox\firefox.exe", $Url, "", "", @SW_HIDE)

it does open FF ... i dont get why ... i even tried to write @SW_Minimize ( insted of @SW_Hide ) and it did still maximize the page .. so i think i have to find an other way!!..

but thanx GEOsoft, you are alot of help :D

As has already been explained, FF will not open hidden.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

As has already been explained, FF will not open hidden.

hmm .. ok..

then i just have to fint ou a way that it vil log my in to facebook automaticly ( because it is on facebook the link i'm gona load!! )

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0