Sign in to follow this  
Followers 0
Caleb09

need a little help

3 posts in this topic

#1 ·  Posted (edited)

Hi, im trying to make two programs and one of them you type in a website and the other program takes you to it on another computer. Sorta like a prank thing where you can keep making websites pop up but anyways....I got a box where you type the website in and on the other program i dont know how to make it read from that box.Can anyone help? Heres some of the code.

Case $msg= $WebsiteBoxButton
      $msg = "WEBSITE:" & GUICtrlRead($WebsiteText)
      TCPSend($connectedSocket,$msg)

if StringInStr ( $msg, "WEBSITE:") THEN
        $WebsiteText =  _RunDos("start $WebsiteText")
      endIf

On the $WebsiteText = _RunDos("start $WebsiteText") part of the code i dont know the command to make it read from that text on the label.It's probally very simple but im new to this :)

Thanks,

Caleb

Edited by Caleb09

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

More like (Not familiar with Dos commands):

$WebsiteText =  _RunDos("start " & StringReplace($msg,"WEBSITE:",""))

You get the general idea though of how to get the string with the website using StringReplace($msg,"WEBSITE:","")

Hallman

Edited by Hallman

Share this post


Link to post
Share on other sites

Thanks alot man.I noticed tho it just goes to diffrent websites on the same browser is there anyway to make it pop up a new browser? If not thanks anyways i appreciate it. :)

Thanks,

Caleb

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