how to open url item data with button? .. any action add in the script tab?
Announcement
Collapse
No announcement yet.
need help for combobox item data
Collapse
X
-
Hi dear friend
you can use below code for this :
-- get selected item in listbox
result = ListBox.GetSelected("ListBox1");
-- in not selected any item in listbox
if result == nil then
Dialog.Message("Notice", "please select an item in listbox");
Application.ExitScript();
end
-- get url from listbox data
data = ListBox.GetItemData("ListBox1", result[1]);
-- open url
File.OpenURL(data, SW_SHOWNORMAL);
-
👍 2
-
-
This code what mahdishams posted does that, please get yourself a coffee and read the manual and use all the examples, this will help you understand AMS and not reply like you just did, the user replied with the right reply, but I think the result part is wrong I think it's just result not result[1];
Comment
-
-
Your first post was already clear mahdishams make them do some of the work them selfs they need to learn how AMS works before askign for any kind of help and the manual/helpfil is the first place the need to start, this is a $200 + software, just like a $200 washer or TV or anything you would read the manual if you don't know what to do at firt before calling the tech support to help this needs to be done first with AMS lol?
Your help is epic but lets get them to learn :P
-
👍 1
Comment
-
-
Hello how are you all.
Of course i agree whith your position kingzooly, but like a lot of people i begin with this forum and AMS.
As in school, everybody is different. The manual is very well designed but sometime we need some help to start a project in a good way.
I realised that the forum was indispensable because AMS opportunities were largely unknown.
Thanks for the coffee.
Alain
Comment
-
-
-
mahdishams good solid examples there. Also catching a 'nil' selection which would have resulted in an error otherwise.
keep up the good work. Brings a bit of life to the graveyard at least.
Comment
-
-
See this is WHY I said the user needs to learn AMS first they not willing to learn and try they keep coming back for more and more, See they asked for one thing now there saying no that's not what I really wanted this was, and yes mahdishams as provided a 2 good example now and the user has not shown what they have tried do far to try and work out the problem themselves.
Originally posted by Alain View PostHello how are you all.
Of course i agree whith your position kingzooly, but like a lot of people i begin with this forum and AMS.
As in school, everybody is different. The manual is very well designed but sometime we need some help to start a project in a good way.
I realised that the forum was indispensable because AMS opportunities were largely unknown.
Thanks for the coffee.
Alain
toutaimed PLEASE read the manual, learn how each section works, TRY, if fail, TRY again, if fail TRY again, if fail then come here PROVE your work and what you have already tried and then ask for help, who knows the things you tried might of been almost right and someone can say or you forgot this, then YOU learnt something.
I never been a there there user, and never will, I want to see AMS live again and that will only happen when users are willing to try there best with the tool
-
👍 1
Comment
-
-
Originally posted by kingzooly View PostSee this is WHY I said the user needs to learn AMS first they not willing to learn and try they keep coming back for more and more, See they asked for one thing now there saying no that's not what I really wanted this was, and yes mahdishams as provided a 2 good example now and the user has not shown what they have tried do far to try and work out the problem themselves.
Like I was going to comment no matter what you do you need to read that manual first, as you can see users are now limited on the forum and as you can see the OP as already posted yes I need this and never showed what they already tired and look a really good answer was given to them, but there now asking for the more detailed option, once again not showing what they have tried, this is NOT a give give give forum and just giving wont bring this forum back from the dead.
toutaimed PLEASE read the manual, learn how each section works, TRY, if fail, TRY again, if fail TRY again, if fail then come here PROVE your work and what you have already tried and then ask for help, who knows the things you tried might of been almost right and someone can say or you forgot this, then YOU learnt something.
I never been a there there user, and never will, I want to see AMS live again and that will only happen when users are willing to try there best with the tool
Comment
-
-
Your asking things what are covered in the manual how to get the data from a list-box is in the manual, the manual shows examples on how to use different parts of the code, I not going to accept I can't do it because I can't understand what you really mean is I can't be bothered having it translated so I just going to ask here, but guess what, most of us here post in ENGLISH and many users here are not English, so if you can understand here you can understand the manual, if it's because your using a tool in the bower to translate then try
Use firefox https://www.indigorose.com/webhelp/ams/ and then use a language translator in firefox this will help you read it in Arabic best the translator can offer
Comment
-
Comment