Jump to content

Script clicking link on web page...


StMaSi
 Share

Recommended Posts

Windows 7 Ultimate

Internet Explorer 9

Web-Based Citrix Gateway

AutoIT v3

I have a web-based Citrix gateway I use to remote into my workplace network. After a period of inactivity, a control appears on the web page (attached) that I need to click on in order to extend the timeout before I'm forcibly disconnected. When I use the AutoIt Window Info tool, I am unable to target that control. I'm only able to target the page in general, not any of the links within...doesn't even show up within the hidden text portion of the Info tool. Here's what I get when I target the control on the web page, using IE...it's the same no matter where I target within the page...

-------------------------

>>>> Window <<<<

Title: Citrix XenApp - Applications - Windows Internet Explorer

Class: IEFrame

Position: 1272, -8

Size: 1296, 1000

Style: 0x17CF0000

ExStyle: 0x00000100

Handle: 0x0006027A

>>>> Control <<<<

Class: Internet Explorer_Server

Instance: 1

ClassnameNN: Internet Explorer_Server1

Name:

Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1]

ID:

Text:

Position: 0, 108

Size: 1280, 861

ControlClick Coords: 431, 85

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x00010346

>>>> Mouse <<<<

Position: 1711, 185

Cursor ID: 0

Color: 0x9E6240

>>>> StatusBar <<<<

1:

2:

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

Navigation Bar

https : // Citrix . YourDomain . Com / Citrix / XenApp / site / default . aspx

Address Combo Control

Page Control

Favorites and Tools Bar

ITBarHost

Menu Bar

Citrix XenApp - Applications - Windows Internet Explorer

Zoom Level

>>>> Hidden Text <<<<

ITBarHost

Menu Bar

-------------------------

In the end, I'm simply trying to have an AutoIT script running that will automatically click that "more time required" link for me so my connection doesn't time out. Unfortunately, I cannot use the controlclick coordinates as the position/size of my IE window(s) will vary constantly. Any suggestions? Thanx.

post-74520-0-43391100-1354722996_thumb.j

Link to comment
Share on other sites

The timeout is a security measure, right? Do you think it is sensible to bypass this measure?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Second that.

Ask yourself why it is there from the IT person's perspective.

Ask yourself why it is there from a management perspective.

Ask yourself why it is there from a security perspective.

Ask yourself why it is there from a possible legal requirement perspective.

Odds are there are a host of reasons why it is there. If you try to circumvent the security and you are found out ask yourself this one final question:

Ask yourself if you are willing to risk getting yourself in trouble with your employer to do this? You willing to possibly risk your job?

It is for reasons like that is why we in this forum have a thing about not helping someone to try to get around what you are asking for.

Edited by scullion
Link to comment
Share on other sites

  • Moderators

StMaSi,

If you need a longer timeout, then speak to your system admins - we are certainly not prepared to help you on this matter. :naughty:

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