elimgo Posted September 14, 2016 Share Posted September 14, 2016 Hi all, I have small (but annoying) problem with getfiled. I use lisp to draw polyline from txt file in my default project folder which is located in "X:\log\" I used (getfiled "select file" "X:/log/" "npd" in the lisp routine. When the file dialog is opened, when i want to select the folder i want, it would just select the first folder in the file dialog window. So i when i double click on the folder that i want to open i always accidentaly opened the first folder. The solution is to click on the folder i want, and then it would highlight the first folder (that blue highlight on the folder), and then i click again the folder i want so it's highlighted. But it's so slow, sometimes it's annoying when i need to work fast. Is there a way so that whenever i click first on the folder i want, it would highlight it instead of the first folder? I tried the 1,4,6,16,32,64 flag but it's still the same. Help very appreciated Much thanks :) Quote Link to comment Share on other sites More sharing options...
rlx Posted September 16, 2016 Share Posted September 16, 2016 (edited) Not sure if this will fix your 'problem' but have you checked this one out? http://www.lee-mac.com/directorydialog.html http://www.lee-mac.com/lisp/html/GetFilesV1-6.html gr. Rlx Edited September 16, 2016 by rlx Quote Link to comment Share on other sites More sharing options...
elimgo Posted September 16, 2016 Author Share Posted September 16, 2016 Hi rlx, thank you for the reply, i will try it later Quote Link to comment Share on other sites More sharing options...
elimgo Posted September 17, 2016 Author Share Posted September 17, 2016 Hi RLx, both are great. However what i want is as simple as this, Let's say i want to get a file name of a txt in my document. If i type like this: (getfiled "select a txt file" "randomfilename" "txt" 8 ) The file dialog will open with My Documents folder list and "randomfilename.txt" highlighted in blue in "file name" box. Then if i click the 3rd folder in my documents folder it will directly selected that folder (highlighted in blue). This is the behaviour i want. However if i do this i can not select the default folder i want (it's not in my document). But if i input the default folder that i want: (getfiled "select a txt file" "X:/Log/" "txt" 8 ) The file dialog will open X:\Log\ folder, with blinking cursor in the file name box. If i click on the third file/folder on the list, then the first file/folder will be selected (highlighted in blue). So i need to click one more time on the file i want, and then double click it if it's a folder. Problem is when i double click it i accidentally open the first folder instead of the folder i want. I want the behaviour is the same with the way it handles (getfiled "select a txt file" "randomfilename" "txt" 8 ). So whenever i click on the folder i want it will directly select that one. Is it possible? Or maybe is there a way to modify the http://www.lee-mac.com/directorydialog.html so it can select a file inside the folder too? Thanks very much Quote Link to comment Share on other sites More sharing options...
elimgo Posted September 17, 2016 Author Share Posted September 17, 2016 hi, nevermind. i just realized i can type random file name into (getfiled "select a txt file" "X:/Log/random.txt" "txt" 8 ) problem solved :D Quote Link to comment Share on other sites More sharing options...
rlx Posted September 17, 2016 Share Posted September 17, 2016 hi, nevermind. i just realized i can type random file name into (getfiled "select a txt file" "X:/Log/random.txt" "txt" 8 ) problem solved :D Ah , my favorite kind of problems , that solve themselves :-) Gr. Rlx Quote Link to comment Share on other sites More sharing options...
elimgo Posted September 17, 2016 Author Share Posted September 17, 2016 the funny thing is, things are clearer when i ask it or rather when i write my problem properly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.