this one goes to koen piller

i've seen in many forums people asking about the possibility to open the getpict() dialog showing thumbnails instead of picture file names.

just for fun, i did some tests simulating some keystrokes, and it works ! save the 3 lines below in a prg and run under winxp:

   oshell = createobject("wscript.shell")
   oshell.sendkeys("{tab}{tab}{tab}{tab}{tab}{down}{down}{down}{down}{enter}")
   getpict()

as you can see, i used the sendkeys function from wsh. at this link you can find all key codes, if you want to use this technique for any other purpose: http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys(vs.71).aspx

this was tested only in my working machine, under winxp professional. it probably does not work this way in other os's so be careful, and if you want to use this code, check this first.

i'm almost sure that there must exist another way, probably safer to do that. do you know ?

4 Responses to GETPICT() with thumbnails

Leave a Reply

Your email address will not be published. Required fields are marked *