Sign in to follow this  
Followers 0
BrettF

How to open webpage from button

4 posts in this topic

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

:lmao: I have searched and Seached in the help but i cant seem to find a way to make a website open when a button is clicked.

#include <IE.au3>
HotKeySet("{DEL}", "_Site")

While 1
    Sleep(100)
WEnd

Func _Site()
    $oIE = _IECreate ("www.autoitscript.com")
    _IELoadWait ($oIE)
EndFunc   ;==>_Site

something like that? 8D!

Edited by AceLoc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Here's the part to make a website open:

Dim $websiteadress = "www.google.com"
Run(@ComSpec & ' /c start ' & $websiteadress, '', @SW_HIDE)

The button pressed part can be done with a hotkey if that's what you mean, a keyboard button.

Edited by Manadar

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