Jump to content

Very NooB


jellyfish
 Share

Recommended Posts

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

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

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...