Sign in to follow this  
Followers 0
kulcsarbence

Please help me

5 posts in this topic

If _RunDOS("http:\\facebook.com") Then

MsgBox(0, "", "You opened the facebook!")

EndIf

But it didn´t work. How i make this?

Sorry for my very very bad english knowledge.

Share this post


Link to post
Share on other sites



Hi,.

# include < Process.au3 >

$rc = _RunDos ("start http:\\facebook.com")

you have forgotten "start".

According to what you want to do, also look at "WinHttp.au3"

excuse my English, I am French,

Share this post


Link to post
Share on other sites

An easier way, without any extra includes would be to use ShellExecute which will open the default browser for a URL.

If ShellExecute("http:\\facebook.com") Then
    MsgBox(0, "", "You opened the facebook!")
EndIf

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

I need that script, which watches when i open the facebook. So i open the facebook, and this script is watches this. So when i open the facebook then do this and this...

If ShellExecute("http:\\facebook.com") Then

MsgBox(0, "", "You opened the facebook!")

EndIf

It's bad, because it not watches when i open the facebook. Because it's open the facebook and then the msgbox...

ShellExecute

MsgBox

but I do not need it

Share this post


Link to post
Share on other sites

That's not what you were asking for in the first post, you couldn't get the script to open facebook, we gave you 2 examples of how to do that. What you're looking for now, I can't say for sure but you should probably try to be clearer as to what it is you need. If you're looking to see if the browser opened up to the Facebook page, look at WinExists in the help file, or you could use the IE functions to help you out, look for any of the _IE functions in the help file on how to use them.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

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