Jump to content

Input box with Button = URL Starts with Firefox


N4W4
 Share

Recommended Posts

Hey i am new in Scripting

i want to make a Script that opens me a Link with the Inputbox

here is my source

#include 
#include 
#include 
#include 
#include 
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Side Klicker", 436, 51, 305, 179)
GUISetBkColor(0xFFFFFF)
$Label1 = GUICtrlCreateLabel("Label1", 16, 16, 67, 20)
$Link = GUICtrlCreateInput("Link", 96, 16, 273, 24)
$Button1 = GUICtrlCreateButton("OK", 376, 16, 49, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

Case $Link
Case $Button1
$readinput = GUICtrlRead($Link)

EndSwitch
WEnd

hope you can help me :o

Link to comment
Share on other sites

Try this:

#include <GUIConstantsEx.au3>

$Form1 = GUICreate("Side Klicker", 436, 51, 305, 179)
GUISetBkColor(0xFFFFFF)
$Label1 = GUICtrlCreateLabel("Label1", 16, 16, 67, 20)
$Link = GUICtrlCreateInput("Link", 96, 16, 273, 24)
$Button1 = GUICtrlCreateButton("OK", 376, 16, 49, 25)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $readinput = GUICtrlRead($Link)
            If $readinput <> "" Then
                ShellExecute($readinput)
            EndIf

    EndSwitch
WEnd

If Firefox is your default browser just use ShellExecute to open the link ;)

Hi!

Edited by Nessie

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to comment
Share on other sites

Glad to help you ;)

Hi!

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...