Jump to content

GUICtrlCreateListView Help plz :)


caramen
 Share

Go to solution Solved by Zedna,

Recommended Posts

I got this script

#include <MsgBoxConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <ButtonConstants.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
#include <File.au3>

Opt("GUIOnEventMode", 1)


Global $Console = GUICreate("Console", 200, 200)
Global $Var01 = 01


Global $ConsoleArea = GUICtrlCreateListView("", 10,10 , 180, 180,$LVS_LIST,$LVS_EX_FULLROWSELECT)
GUISetState(@SW_SHOW, $Console)



While 1
   Message01 ()
WEnd




Func Message01 ()

   Local $iTimeout = 10

   Sleep (300)

   $Var01 = $Var01 + 1

   GUICtrlCreateListViewItem ("Numero de la variable = "& $Var01, $ConsoleArea)
   _GUICtrlListView_AddItem($ConsoleArea,"Numero de la variable = "& $Var01)


EndFunc

Help 1

I whould like to know How can i change the scale (left , right ) to a scale (up, down)

Help 2

How can i keep focus on last line ?

Damn i tryed so much thing and i cant get what i want :(!

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Link to comment
Share on other sites

ANSWER 1

I was getting confused becose of one thing i did not put a name into my function :

Global $ConsoleArea = GUICtrlCreateListView("", 10,10 , 180, 180,$LVS_LIST,$LVS_EX_FULLROWSELECT)

It is working like this :(so i can see the colum (cant without name ;) ))

Global $ConsoleArea = GUICtrlCreateListView("Console    ", 10,10 , 180, 180,$LVS_LIST,$LVS_EX_FULLROWSELECT)

About the Question 2 :

I will explaine better :

The list is making one item after one

Value = 1

Value = 2

Value = 3

Value = 4

Value = 5

Value = 6

Value = 7

Value = 8

etc...

When the value 10 is coming i cant see it i need to scroll the windows down

I whould like to see the last item added without scrolling, it is possible ?

 

EDIT : Danyfirex (Nyuuuuuuuuu! )





			
				


	Edited  by caramen
	
	

			
		

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Link to comment
Share on other sites

thx

both solution is working but last one is much apreciated :)

Thx to both of you guys :)

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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