Re: New Thread .... Will not work in win32lib BUT does work in its OWN folder .. WHY??,,

new topic     » goto parent     » topic index » view thread      » older message » newer message
Selgor said...

Still cannot work out how to get the file executed from "keypress" after typing in file etc.

Try this ...

procedure KeyPress(integer self, integer event, sequence parms)  
  integer result  
 
  if parms[1] = 13 then  
    result = shellExecuteEx("open",getText(file), 0, 0,SW_SHOWNORMAL,0)  
         closeWindow(Win)  
 
  end if  
end procedure  
setHandler(file,w32HKeyPress, routine_id("KeyPress"))  
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu