Jump to content

How to read from combo box in web browser to combo box in GUI?


Pagi
 Share

Recommended Posts

Hello here. Is it possible to read from combo box in PHP page to my own combo box in GUI?

This is the page where I want to read the combo box : https://sk.gladiatus.gameforge.com/game/

The combo box I wanna write from is next to the password field.

PS: It´s not for a bot or anything like that, it´s just first example i founded. 

This is the code I´ve tried.

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $oIEConfirm
#Region ### START Koda GUI section ### Form=c:\users\rado\desktop\login.kxf
$Form1_1 = GUICreate("xGlad - log in", 216, 173, -1, -1)
$Label3 = GUICtrlCreateLabel("Username", 10, 22, 61, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Candara")
$Label4 = GUICtrlCreateLabel("Password", 10, 46, 56, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Candara")
$Label5 = GUICtrlCreateLabel("Province", 10, 70, 52, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Candara")
$name = GUICtrlCreateInput("", 74, 22, 121, 21)
$pass = GUICtrlCreateInput("", 74, 46, 121, 21)
$province = GUICtrlCreateCombo($oIEConfirm, 74, 70, 121, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, $oIEConfirm)
$sign = GUICtrlCreateButton("SIGN IN!", 8, 128, 193, 33)
$country = GUICtrlCreateInput("", 72, 96, 121, 21)
$Label1 = GUICtrlCreateLabel("Country", 8, 96, 48, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Candara")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
         Case $sign
            Call read()
    EndSwitch
 WEnd

 Func read()
    _IECreate=("https://sk.gladiatus.gameforge.com/game/")
    Global $data = _IEGetObjByName($oIEConfirm, "login_server")
    $data = GUICtrlRead($oIEConfirm)

    EndFunc

 

Edited by Jos
Link to comment
Share on other sites

  • Developers
1 hour ago, Pagi said:

PS: It´s not for a bot or anything like that, it´s just first example i founded.

Funny: You come to our forums a month ago, post a question and elect never to reply to the comments made. Then you come back, post in the wrong forum and make this statement. :)

So tell me How is this not related to the forumrules I've already pointed you to? :

Quote

Forum Posting

1. Do not ask for help with AutoIt scripts, post links to, or start discussion topics on the following subjects:

  • Malware of any form - trojan, virus, keylogger, spam tool, "joke/spoof" script, etc.
  • Bypassing of security measures - log-in and security dialogs, CAPTCHAs, anti-bot agents, software activation, etc.
  • Automation of software/sites contrary to their EULA (see Reporting bullet below).
  • Launching, automation or script interaction with games or game servers, regardless of the game.
  • Running or injecting any code (in any form) intended to alter the original functionality of another process.
  • Decompilation of AutoIt scripts or details of decompiler software.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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