Sign in to follow this  
Followers 0
the_krys

basic help for selecting listview into tabitem

1 post in this topic

Hi all,

First thank's for this genius tool.

Ancien user of V2 for automated installation on many computer.

I try now to automated typing on a Citrix metaframe client : that's work pretty good but the the number of "model type" are implementing daily that is the reason for me to create divided kind of "model type"

Means that i need to create tab items with inside list of "model type"

the problem is now that doesn't work....

Please help and excuse me for my english (i am french) I have try to see on the forum but nothing realy help me.

As you can see i'am using V3 with scite and i have cut the thing who are not necesary

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

GuiCreate("guicreate + label etc...", 302, 144)

GUISetOnEvent($GUI_EVENT_CLOSE, "closed")

;

; Script for Typing text on a Citrix metaframe client windows

;

GUICtrlCreateTab ( 6, 26, 290, 110 )

$onglets = GUICtrlCreateTabitem ( "PA")

$triplette = GuiCtrlCreateListView("list A", 6, 50, 288, 90)

GuiCtrlCreateListViewItem("item list A1", $triplette)

GuiCtrlCreateListViewItem("item list A2", $triplette)

$onglets = GUICtrlCreateTabitem ( "PB")

$triplette = GuiCtrlCreateListView("list B", 6, 50, 288, 90)

GuiCtrlCreateListViewItem("item list B1", $triplette)

GuiCtrlCreateListViewItem("item list B2", $triplette)

$onglets = GUICtrlCreateTabitem ( "PC")

$triplette = GuiCtrlCreateListView("list C", 6, 50, 288, 90)

GuiCtrlCreateListViewItem("item list C1", $triplette)

GuiCtrlCreateListViewItem("item list C2", $triplette)

$onglets = GUICtrlCreateTabitem ("")

$ok = GuiCtrlCreateButton(" - OK - ", 84, 2, 45, 22 )

GUICtrlSetOnEvent($ok, "ok")

While 1

Sleep(1000)

WEnd

Func ok()

If GUICtrlRead(GUICtrlRead($triplette)) = "item list A1" Then ; action : typing into the metaframe windows

ElseIf GUICtrlRead(GUICtrlRead($triplette)) = "item list B2" Then ; action : typing into the metaframe windows

ElseIf GUICtrlRead(GUICtrlRead($triplette)) = "item list c1" Then ; action : typing into the metaframe windows

; etc

EndIf

EndFunc

Func closed()

Exit

EndFunc

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