Sign in to follow this  
Followers 0
StMaSi

Script clicking link on web page...

4 posts in this topic

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

Share this post


Link to post
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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0