Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



my problem

Discussion on my problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 214
Received Thanks: 160
closed

closed
REDAPRO is offline  
Old 02/18/2014, 00:08   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
You mean this ?
Code:
GUICreate("Test",200,200)
$button=GUICtrlCreateButton("WTF",50,50,100,100)
GUISetState()
$link = "www.google.com.ar"
While 1
$msg = GUIGetMsg()
Switch ($msg)
	case -3
		Exit 0
case $button
ShellExecute($link)
EndSwitch
WEnd
Learn english first or use a better translator :$ // yo soy español tambien :P
elmarcia is offline  
Old 02/18/2014, 22:51   #3
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
U can use it like this, i tested no error

Code:
GUICreate("Test",250,250)
$button = GUICtrlCreateButton("Link button",50,50,150,150)
GUISetState()

;Add your link here
Dim $link = "http://www.elitepvpers.com/forum/autoit"

While 1
	$msg = GUIGetMsg()
	Switch ($msg)
		case -3
			Exit 0

		Case $button
			ShellExecute($link, "", "", "")
	EndSwitch
WEnd
mlukac89 is offline  
Old 02/19/2014, 00:33   #4
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
Quote:
Originally Posted by REDAPRO View Post
I am american check my address. But I was typing fast on my laptop keyboard. But where do I have to write the link?
Sorry for playing the grammar **** here, but your respond was just too tempting...

The script posted by elmarcia works for me. You just have to make shure the url starts with www or
As an alternative you could also execute the browsers .exe with parameters to open it in a specific browser.
butter123 is offline  
Old 02/19/2014, 09:50   #5
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You can leave the http:// or www. out if you use
Code:
Run("cmd.exe ""/c iexplore.exe " & $link & """")
instead.
alpines is offline  
Old 02/23/2014, 21:25   #6
 
xKemya's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 2,450
Received Thanks: 1,880
I think this will work :
Code:
ShellExecute ( "Link" )
Make sure you type the Http 2 I mean the hole link!

So if you want to open elitepvpers, :
Code:
ShellExecute ( "http://www.elitepvpers.com" )
xKemya is offline  
Old 02/25/2014, 16:37   #7
 
xKemya's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 2,450
Received Thanks: 1,880
Quote:
Originally Posted by elmarcia View Post
You mean this ?
Code:
GUICreate("Test",200,200)
$button=GUICtrlCreateButton("WTF",50,50,100,100)
GUISetState()
$link = "www.google.com.ar"
While 1
$msg = GUIGetMsg()
Switch ($msg)
	case -3
		Exit 0
case $button
ShellExecute($link)
EndSwitch
WEnd
Learn english first or use a better translator :$ // yo soy español tambien :P
This is better :

I think this will work :
Code:
ShellExecute ( "Link" )
Make sure you type the Http 2 I mean the hole link!

So if you want to open elitepvpers, :
Code:
ShellExecute ( "http://www.elitepvpers.com" )
Example :

Code:
 #cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.10.2
 Author:         myName

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Example", 275, 133, 189, 124)
$Button1 = GUICtrlCreateButton("Elitepvpers", 8, 8, 257, 121)
GUICtrlSetFont(-1, 12, 400, 0, "Gill Sans Ultra Bold")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		 Case $Button1
			ShellExecute("http://www.elitepvpers.com")

	EndSwitch
WEnd
xKemya is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 09:19.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.