Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 03:31:25 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: AutoIt limitations  (Read 3083 times)

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
AutoIt limitations
« on: August 29, 2013, 07:40:22 PM »
The most useful tool i have is my CRM Goldmine 5.5
Some time ago I ask a good friend of mine to make me a script with a suggested name : linkfolder
And he did me a marvellous script.
Is a script basically only I can use in all his possibilities. Because is used in combination with my goldmine 5.5.
But he tells me that a feature I would like to have was not possible with AutoIt capabilities and invite me to ask to other programmers about possible solutions.
That is exactly what i am doing now.
i have the code and put here.
LinkFolder can read folders and subfolders and make links to my goldmine in different ways. For me is important to document steps and thoughts.
Offers me a rapport of preselect folders and archives i can link.
But some times i need to retire some of those folders and archives. the affected screen don't accept multiple selection option. So in a preselected screen with a pair of thousand files is very unconfortable deleted the unwanted ones.
I refer to the control or shift multi selection capabilities.
Initially we have the additional problem that when i delete an item goes allways to the first item. In a long list was very unconfortable. But this is solved.

What Would I like ? multi select option screen capabilities with some trick, some lines of code in any language we can add. AHK is brother of AutoIt.

I only upload the main script. But i have all if necessary. (edited, the rar contains all modules and the ini file)
All alternative solution is welcome.
what i need basically is a quick selection system

Best Regards

The password of the rar file is : autoit


Edited 11.09.2013.18.08 to attach the last version LinkFolder

« Last Edit: September 11, 2013, 12:08:56 PM by Contro »

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
Re: AutoIt limitations
« Reply #1 on: September 07, 2013, 04:36:48 PM »
I am here again. I have more information. This is what we need.
I put the translated conversation and the original in spanish :

"The target in autoit is a GUI window that allows elements multiple selection and from the same program we can obtain anyway the elements selected by the user. Until now I have tried :
The AutoIt control lists command (GUICtrlList) don't seem to admit the multiple selection elements and I haven't got any additional information in that sense.
There is a second list type (GUICtrlListView y GUICtrlListViewItem) that visually admits multiple selection, but the problem is about the autoit function to read the selected elements from the lists (GUICtrlRead) only return the first element. So even in the case you select multiple elements after you can't know from the program how many or which are the selected elements. In the example in the autoit documentations happen the same problem.
So is a question is if exists another type list that admits the multiple selection and obtain information about the selected elements by the user, or any other way not documented of the function GUICtrlRead to obtain the selected elements from the lists GUICtrlListView, or if any programmer knows any real example (because the example in the autoit documentation don't work for me)"


"El objetivo es hacer, en AutoIt, en una ventana de GUI una lista que permita la selección de múltiples elementos y que el mismo programa de AutoIt pueda saber u obtener de alguna manera los elementos seleccionados por el usuario. Hasta ahora lo que se sabe y se ha probado es lo siguiente:
El control de listas de AutoIt (GUICtrlList) no parece admitir la selección de múltiples elementos, dado que no se ha conseguido encontrar nada al respecto en la documentación de AutoIt ni buscando en Internet.
Existe un segundo tipo de lista (GUICtrlListView y GUICtrlListViewItem) que *visualmente* sí admite la selección múltiple, pero el problema es que la función de AutoIt que sirve para leer los elementos seleccionados de las listas (GUICtrlRead) únicamente da el primer elemento seleccionado, tanto si hay un único elemento seleccionado, como si hay múltiples elementos. Con lo cual, aunque se puedan seleccionar múltiples elementos en la pantalla, luego no hay forma de saber desde el programa cuántos o cuáles son los elementos seleccionados. En el ejemplo de la documentación de AutoIt ocurre este mismo problema.

Después de esto, se trataría de preguntar si existe algún otro tipo de lista que sí admita la selección múltiple y que permita obtener la información de los elementos seleccionados por el usuario, o si es que hay que utilizar de alguna forma concreta (y no documentada...) la función GUICtrlRead para obtener los elementos seleccionados de las listas GUICtrlListView, o si alguien sabe o tiene un ejemplo (que funcione, no el de la documentación de AutoIt que tiene el fallo de que GUICtrlRead usando con una lista de tipo GUICtrlListView únicamente da el primer elemento) para ver como se hace lo de obtener los datos de los elementos seleccionados.

Es lo que se me ocurre... "

 :-*

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,475
    • View Profile
    • Donate to Member
Re: AutoIt limitations
« Reply #2 on: September 07, 2013, 11:12:57 PM »
ChooseFileFolder - Single and multiple selections from specified path tree structure

Tell your friend to look at Example 5 within ChooseFileFolder_Example_1.au3

2013-09-08 14_12_55-Ex 5_ Select multiple files AND folders.png

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
Re: AutoIt limitations
« Reply #3 on: September 08, 2013, 04:59:20 AM »
ChooseFileFolder - Single and multiple selections from specified path tree structure

Tell your friend to look at Example 5 within ChooseFileFolder_Example_1.au3
 (see attachment in previous post)

I have tell i have several utilities in AHK that allows me to select several files or folders.
I think you are telling me that now.
I will communicate and continue.
He is finishing now a program for a clinic and I have to wait.
 :-*

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
Re: AutoIt limitations
« Reply #4 on: September 09, 2013, 06:44:05 PM »
 ;D

He does. Thank you very much 4wd.

His answer after reading your link was :

"Don't worry , I think I got a possible solution. Exist a command "GUICtrlListView" that fails and only gives the first selected element besides exists several, but there is also a third list called "_GUICtrlListView" (independent and with different functions to "GUICtrlListView") that HAVE the needed Characteristics !!!!!!!

It don't be late tha I will have a new version of the program"
in spanish :
"No te preocupes, me parece que ya tengo una posible solución. Resulta que hay una lista que es "GUICtrlListView", que es la que falla y sólo da el primer elemento seleccionado aunque haya varios, pero también hay una tercera lista llamada "_GUICtrlListView" (independiente y con funciones distintas de "GUICtrlListView"), que sí tiene las características necesarias.

No tardaré en tener una nueva versión del programa que utilice el control "_GUICtrlListView", a ver que tal funciona :)   "




Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
Re: AutoIt limitations
« Reply #5 on: September 09, 2013, 06:54:16 PM »
I have the new program now. it works very well implemented with new options to determine exactly the target and activate or not the multiple selection.
I will put the source when an ansiated subroutines - and I'll to wait for this - for this target I put some day in the forum.

It completes the link option in a singular way interpreting the field notes in Goldmine 5.5. A clever chain to launch when parsing to the clipboard to the specific folder in my pc.
I have the screenshots organized in folders by month .
Many times a day I have to make screenshots with Screenshot Captor .
Yesterday, by example, I was studying differents of an object and add a register with its name, and in the future i will can link to the corresponding screenshot I take after create the registry from the web.

This is very fast and more confortable that open the screenshots folder and point to the screenshot manually.

Is similar to the possible situation of select a folder and files in the windows explorer and link to the open registry in goldmine 5.5

POINT TO THAT SCREENSHOT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

http://www.donationc...ex.php?topic=33341.0

 :-*

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,619
    • View Profile
    • Donate to Member
Re: AutoIt limitations
« Reply #6 on: September 11, 2013, 12:07:52 PM »
My programmer have decided made a seperate module for point to that screenshot.

So I put in the beginning of the post the remodelated or final version of LinkFolder.

He ask me to a name for the new module and then i have more ideas. The members of this forum in a few years ago knows me a little to know i have lack of memory and I am not very clever, but sometimes I have ideas that i don't have idea where they come from  :o

 :-[ So if you make me questions i feel nervous i begin to say silly things. And all type of things. And perhaps one in a thousand is good.

I take the risk

So the name for the new module may be LinkNotes because is something you interpret from a character chain.

Initially was interpret a character chain to extract the date in a certain way and launch a folder. Now may be launch a similar folder in several ways.

But my stupid idea is talk with a clever programmer with my everyday language.
The idea is not new, of course.

I am speaking to you my friend

And you answer : Tell me your project in intelligent character chains.

I open a new post.

 :-*
« Last Edit: September 11, 2013, 12:20:01 PM by Contro »