Sign in to follow this  
Followers 0
jellyfish

Very NooB

5 posts in this topic

I am very new to scripting and trying to learn. I just cant seem to grasp it. My problem is simple. I have created a GUI to search for torrents from a specific site. All I want this to do is open a new IE window with the results from the query box on the GUI. I just cant figure it out. Help Please

#include <GUIConstants.au3>

#include <IE.au3>

$Form1 = GUICreate("Torrent Finder (Torrentspy.com)", 345, 129, 335, 178)

GUISetBkColor(0x0000FF)

$Torrent = GUICtrlCreateInput("", 9, 32, 319, 21)

GUICtrlSetState(-1, $GUI_ACCEPTFILES)

$Label1 = GUICtrlCreateLabel("Enter Search Here", 8, 8, 92, 17)

GUICtrlSetBkColor(-1, 0x0000FF)

$Button1 = GUICtrlCreateButton("Search", 120, 72, 91, 25, 0)

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

Case $Button1

EndSwitch

WEnd

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>
#include <IE.au3>

$Form1 = GUICreate("Torrent Finder (Torrentspy.com)", 345, 129, 335, 178)
GUISetBkColor(0x0000FF)
$Torrent = GUICtrlCreateInput("", 9, 32, 319, 21)
GUICtrlSetState(-1, $GUI_ACCEPTFILES)
$Label1 = GUICtrlCreateLabel("Enter Search Here", 8, 8, 92, 17)
GUICtrlSetBkColor(-1, 0x0000FF)
$Button1 = GUICtrlCreateButton("Search", 120, 72, 91, 25, 0)
GUISetState(@SW_SHOW)



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

Case $Button1
_IECreate ("http://torrentspy.com/search?query="&GUICtrlRead($Torrent)&"&submit.x=29&submit.y=8")
EndSwitch
WEnd

:)


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Thanks a million

Share this post


Link to post
Share on other sites

A noob is not a newb. You are a newb, not a noob :)


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

A noob is not a newb. You are a newb, not a noob :P

liaaaaar :)

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

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