Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Add To listview from inputs using button

Discussion on Add To listview from inputs using button within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
Anja Mielbrecht's Avatar
 
elite*gold: 55
Join Date: Nov 2018
Posts: 472
Received Thanks: 181
Add To listview from inputs using button

#CLOSE
Anja Mielbrecht is offline  
Old 11/15/2018, 02:47   #2

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
PHP Code:
#include <GuiListView.au3>

[...]

Case 
$add
            addItemToListView
()

[...]

Func addItemToListView()
    
$currLen _GUICtrlListView_GetItemCount($ListView1)
    
_GUICtrlListView_AddItem($ListView1GUICtrlRead($old))
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($new), 1)
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($color), 2)
EndFunc 
Moneypulation is offline  
Thanks
1 User
Old 11/15/2018, 07:23   #3

 
Anja Mielbrecht's Avatar
 
elite*gold: 55
Join Date: Nov 2018
Posts: 472
Received Thanks: 181
Quote:
Originally Posted by Moneypulation View Post
PHP Code:
#include <GuiListView.au3>

[...]

Case 
$add
            addItemToListView
()

[...]

Func addItemToListView()
    
$currLen _GUICtrlListView_GetItemCount($ListView1)
    
_GUICtrlListView_AddItem($ListView1GUICtrlRead($old))
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($new), 1)
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($color), 2)
EndFunc 
this is the result without including

but wheni include the guilistview.au3 i got this
Anja Mielbrecht is offline  
Old 11/15/2018, 17:01   #4

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Obviously two UDFs you include are using the same name for a global const. One of them seems to be the GuiListView.au3, so I suggest you just open it (in your autoit installation path --> include folder) and perform something like a replace all occurences of "$MEM_COMMIT" with "$SOMETHING_DIFFERENT" in your favorite text editor, i.e. SciTe
Moneypulation is offline  
Old 11/15/2018, 18:28   #5

 
Anja Mielbrecht's Avatar
 
elite*gold: 55
Join Date: Nov 2018
Posts: 472
Received Thanks: 181
Quote:
Originally Posted by Moneypulation View Post
Obviously two UDFs you include are using the same name for a global const. One of them seems to be the GuiListView.au3, so I suggest you just open it (in your autoit installation path --> include folder) and perform something like a replace all occurences of "$MEM_COMMIT" with "$SOMETHING_DIFFERENT" in your favorite text editor, i.e. SciTe
Hmm could u be more clear please lol
Anja Mielbrecht is offline  
Reply


Similar Threads Similar Threads
[B] Push Button [S] 10 e*gold/Button; 25 e*g/psd+Button
09/20/2013 - elite*gold Trading - 4 Replies
Moin, Hier könnt ihr folgenden Push Button kaufen: http://i.epvpimg.com/YlrYe.jpg Pro Button wären das 10e*g, pro Button mit .psd dazu 25e*g. Wenn ihr einen Button kaufen wollt, schreibt mir eine PN, damit ich den Namen ändern kann, alles hochladen kann und euch dann per Treasure schicken kann. ;) Schrift kann auch geändert werden. Dazu einfach in der PN schreiben, welche Schrift ihr haben wollt^^
Rappelz - Using Shell with labels/listview items.
04/11/2012 - .NET Languages - 2 Replies
This is my code : Shell(Label4.Text & "\" & "SFrame.exe /auth_ip:" & ListView1.SelectedItems(0).SubItems(1).Text & " /locale:ASCII /country:US /cash /commercial_shop") When I execute that command, I get an error from SFrame : http://i44.tinypic.com/mhdp5g.jpg What am I doing wrong? What's the correct way?
Frage : Funcs ; Inputs
02/11/2011 - AutoIt - 8 Replies
Hey COM. Ich habe dien Frage: Wenn ich eine func mache zb: Func lol () Send ("{F1}") Sleep (1)
Need some Help/Inputs
09/18/2009 - SRO Private Server - 3 Replies
i really would want to play a private SRO server long as it has nice rates that woudnt make me feel playing retail.. so just wanna ask what u guys think is the most stable of psro server outhere or atleast what u think is best? the only easy server i think i can get to is ecsro but seems they disabled account registration atm, and seriously is there any simple guide on how to setup SRO clients? dam i see so many links and i dunno what to do with it



All times are GMT +1. The time now is 05:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.