Jump to content

Unterminated String error


gahhon
 Share

Recommended Posts

3 hours ago, TheDcoder said:

I don't think you can have a visible browser window (atleast a proper one) with multiple tabs when you are using web driver interface. I did not use it before so I do not know much about it.

There are functions for starting a browser session and then creating new tabs. :)

Link to comment
Share on other sites

3 hours ago, FrancescoDiMuro said:

Are you sure? :)

  Hide contents
#include <IE.au3>

Global $objIE, _
       $arrURLs[2] = ["www.google.com", "www.youtube.com"]


$objIE = _IECreate()
If @error Then
    ConsoleWrite("Error during the creation of IE object. Error: " & @error & @CRLF)
    Exit
Else
    For $i = 0 To UBound($arrURLs) - 1 Step 1
        $objIE.navigate2($arrURLs[$i], 2048)
    Next

    Sleep(10000)
    _IEQuit($objIE)
EndIf

 

Thanks to Navigate2 method, and the parameter navOpenInNewTab, you can do it ;)

I am not really understand the For-Loop statement. Is there any reference that I can look after? (UBound is what, Step 1 is what, etc)

And if the $objIE can open 2 tabs, how can I control the web elements of both? Just for the automate login.

Thanks for advanced information.

 

Link to comment
Share on other sites

4 minutes ago, gahhon said:

I am not really understand the For-Loop statement. Is there any reference that I can look after? (UBound is what, Step 1 is what, etc)

Help file.

8 minutes ago, gahhon said:

And if the $objIE can open 2 tabs, how can I control the web elements of both? Just for the automate login.

I think that you can switch between the two tabs, and work with the active one.
Maybe someone's else knows more how to do what you are asking for :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

1 minute ago, FrancescoDiMuro said:

Help file.

I think that you can switch between the two tabs, and work with the active one.
Maybe someone's else knows more how to do what you are asking for :)

Will do. Someday will look through the YouTube for the IF statement.

Yes. Based on my understanding on the code run, the step is when Tab 1 done logged, then automate open Tab 2 and for logging.

And I am waiting for the experienced guy come and explain to me. :D

Link to comment
Share on other sites

  • Moderators

gahhon,

When I look up this 918kiss site to which you are trying to connect it appears to be an online gaming casino. Is this in fact the case?

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

1 hour ago, Melba23 said:

gahhon,

When I look up this 918kiss site to which you are trying to connect it appears to be an online gaming casino. Is this in fact the case?

M23

P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.

The link I provide is not gaming casino, is backed webpage. The website is used to managed their players.

And I am trying to a build auto login system for them to avoid input error and also time saving.

 

 

Link to comment
Share on other sites

2 hours ago, FrancescoDiMuro said:

@gahhon
By the way, you could do the research by yourself...

If you dig a little more in the Help file, you'll se _IEAttach() function, which you could use to retrieve the number of tabs in the IE :)
 

I also have see the F1 for the IEAttach() function, but I still not getting understanding of those tho.

Never mind first, the next step of the program I will create the database to link. :)
New tab will the last thing to do. I think so :D

Link to comment
Share on other sites

  • Moderators

gahhon,

Quote

The link I provide is not gaming casino, is backed webpage. The website is used to managed their players

Which sounds similar enough to "gaming-related"  to me - thread locked.

If you wish to discuss it further, please PM me with details of what exactly this "backed webpage" does and why it should not be considered as directly connected to the gaming site.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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