Search found 294 matches

by JnLlnd
05 Sep 2014, 19:24
Forum: Ask For Help
Topic: FileGetShortcut error when drive removed - even w/ Try-Catch
Replies: 16
Views: 2772

Re: FileGetShortcut error when drive removed - even w/ Try-C

joedf wrote:Hmm, I am currently unable to test any of this. I will when I come back from my travels.
I understand it is not simple to reproduce this scenario. Thanks for taking the time when you'll have it.
by JnLlnd
05 Sep 2014, 18:36
Forum: Ask For Help
Topic: FileGetShortcut error when drive removed - even w/ Try-Catch
Replies: 16
Views: 2772

Re: FileGetShortcut error when drive removed - even w/ Try-C

Thanks for joining the discussion Nextron. Are you sure FileGetShortcut is throwing the error? Not the directory parsing loop trying to set some built-in variable based on the non-existent target of the shortcut, rather than the shortcut itself? The error occurs just after the MsgBox command, during...
by JnLlnd
05 Sep 2014, 15:55
Forum: Ask For Help
Topic: FileGetShortcut error when drive removed - even w/ Try-Catch
Replies: 16
Views: 2772

Re: FileGetShortcut error when drive removed - even w/ Try-C

This being said, I appreciate your help to find a workaround, JoeDF. But, my app being quite largely distributes, I would prefer to stay with recommended commands and understand why the same script on 2 similar machines behave differently... My questions: A) Can you reproduce the scenario 5.2? b) Fo...
by JnLlnd
05 Sep 2014, 10:56
Forum: Ask For Help
Topic: FileGetShortcut error when drive removed - even w/ Try-Catch
Replies: 16
Views: 2772

Re: FileGetShortcut error when drive removed - even w/ Try-C

Oh, I see. I got you wrong. Using a text editor (that can red binary files), I tried to open the Recent items folder to look at file's content but Windows is preventing me from doing this. I tried on 2 PCs where I have admin access. I hav not try via an AHK script yet. On your side can you open thes...
by JnLlnd
05 Sep 2014, 07:23
Forum: Ask For Help
Topic: 4 options to change the current folder in Windows Explorer
Replies: 63
Views: 18020

Re: 4 options to change the current folder in Windows Explor

Your Send code fails because # is the modifier symbol for the Win key. You can use {#} or SendRaw c:\delete#me`n (not {Enter} ) instead. Thanks for jumping in Lekikos. Yes, I realized that later in my AHK learning curve :-) . Just forgot to update this thread about it. However, window.Navigate("C:\...
by JnLlnd
05 Sep 2014, 05:50
Forum: Ask For Help
Topic: FileGetShortcut error when drive removed - even w/ Try-Catch
Replies: 16
Views: 2772

Re: FileGetShortcut error when drive removed - even w/ Try-C

joedf wrote:You could maybe get the path by directly/manually parsing the *.lnk file... ?
If I get you right, in this case, the path of the .lnk file is always "C:\Users\[User Name]\AppData\Roaming\Microsoft\Windows\Recent Items".
by JnLlnd
04 Sep 2014, 22:17
Forum: Ask For Help
Topic: FileGetShortcut error when drive removed - even w/ Try-Catch
Replies: 16
Views: 2772

FileGetShortcut error when drive removed - even w/ Try-Catch

To reproduce this issue, please follow these steps (tested here with Win 7): 1) Open an external drive (USB drive or key, for example). Create or copy an MS Office file on this drive and open it (just to make sure this file is registered in the Recent items). 2) Open Recent items (C:\Users\[User Nam...
by JnLlnd
22 Jul 2014, 10:38
Forum: Ask For Help
Topic: When a location needs authentication show login prompt
Replies: 2
Views: 725

Re: When a location needs authentication show login prompt

Are you asking if there's a way to pull that prompt up manually? Are you asking to derive the domain automatically? Or are you asking why your run command doesn't work?. Ideally, the Run would show the login prompt if authentication is required. If this cannot be obtained from the Run command, I'm ...
by JnLlnd
20 Jul 2014, 19:46
Forum: Ask For Help
Topic: When a location needs authentication show login prompt
Replies: 2
Views: 725

When a location needs authentication show login prompt

Hello, I could not find info on the AHK forums or Stackoverflow. I'd like to detect that a given Windows location needs authentication and have the login prompt presented to the user. If I simply use the Run command, AHK returns an error like the one below. strLocation := "\\projets.domain.org\DavWW...
by JnLlnd
14 Jul 2014, 05:55
Forum: Scripts and Functions
Topic: Center and resize a row of buttons automatically
Replies: 3
Views: 2176

Re: Center and resize a row of buttons automatically

Thank you DataLife. Happy that it can help.

And thank you jbali fotr the tip. Did'nt know about this setting.
by JnLlnd
13 Jul 2014, 07:16
Forum: Scripts and Functions
Topic: Center and resize a row of buttons automatically
Replies: 3
Views: 2176

Center and resize a row of buttons automatically

I needed to standardize the position and size of my action buttons (Save, Close, Cancel, etc.) and to center them in my various Gui. This function is doing it. It will be in the next release of my app Folders Popup . Thanks to user Greet for suggesting this improvement. Gui, New, , MyWindow Gui, Add...
by JnLlnd
08 Jul 2014, 06:04
Forum: Ask For Help
Topic: How to determine if a dialog box is a "file" dialog box?
Replies: 3
Views: 1218

Re: How to determine if a dialog box is a "file" dialog box?

This is what I'm doing, checking window title. But, my freeware application becoming distributed in various countries, there is a wide variety of file dialog boxes titles in English, not to mention localized version of Windows. In my app, user can add and manage file dialog boxes. But, for some non-...
by JnLlnd
07 Jul 2014, 21:40
Forum: Ask For Help
Topic: How to determine if a dialog box is a "file" dialog box?
Replies: 3
Views: 1218

How to determine if a dialog box is a "file" dialog box?

Hello, Is there a safe way to tell if a dialog box (having class "#32770") is a file dialog box? By "file dialox box", I mean a dialog box containing a folders list, a file name text zone, a Save/Open/etc. button, etc. Is there any control name (other than "Edit1") or hidden info that would be revea...
by JnLlnd
01 Jul 2014, 17:25
Forum: Ask For Help
Topic: Show an AHK menu with submenu already open
Replies: 6
Views: 1697

Re: Show an AHK menu with submenu already open

trismarck wrote:See here.
Thanks for pointing this trismarck. To me, this closes the point. I can find another approach to what I want to achieve.

Thank you all !
by JnLlnd
01 Jul 2014, 15:35
Forum: Ask For Help
Topic: Show an AHK menu with submenu already open
Replies: 6
Views: 1697

Re: Show an AHK menu with submenu already open

Thanks for trying all this, guest3456.

Using your code, I played with various combination of SetTimer, Sleep, priority, etc. without more success.

Maybe, this is just not possible?
by JnLlnd
30 Jun 2014, 21:48
Forum: Ask For Help
Topic: Show an AHK menu with submenu already open
Replies: 6
Views: 1697

Re: Show an AHK menu with submenu already open

guest3456 wrote:You sure its not Alt+M ?
Alt-x is used to open menus like &File (Alt-F), &Options (Alt-O).

With an AHK popup menu, typing "M" manually works. And when an AHK popup menu is displayed, pressing Alt closes it.
by JnLlnd
30 Jun 2014, 20:44
Forum: Ask For Help
Topic: Show an AHK menu with submenu already open
Replies: 6
Views: 1697

Show an AHK menu with submenu already open

I haven't found a post on this yet. How can I show an AHK menu with one of its submenu already open? I tried this: Menu, MyMenu, Add, Item1, MenuHandler Menu, Submenu1, Add, Item1, MenuHandler Menu, MyMenu, Add, &My Submenu, :Submenu1 return MenuHandler: MsgBox You selected %A_ThisMenuItem% from the...
by JnLlnd
23 Apr 2014, 19:14
Forum: Ask For Help
Topic: 4 options to change the current folder in Windows Explorer
Replies: 63
Views: 18020

Re: 4 options to change the current folder in Windows Explor

Trying this with a folder name including # did not work! (EDIT: See foot note) This works: run, Explorer.exe Sleep, 500 Send, {F4}{Esc} Sleep, 500 Send, c:\delete_me{Enter} But this does not work: (EDIT: See foot note) run, Explorer.exe Sleep, 500 Send, {F4}{Esc} Sleep, 500 Send, c:\delete#me{Enter}...
by JnLlnd
23 Apr 2014, 16:53
Forum: Ask For Help
Topic: 4 options to change the current folder in Windows Explorer
Replies: 63
Views: 18020

Re: 4 options to change the current folder in Windows Explor

Unfortunately, there does not seem to be a solution to this: For pExp in ComObjCreate("Shell.Application").Windows if (pExp.hwnd = strWinId) try pExp.Navigate(myPath) This will fail if myPath includes a hash (# as in C:\C#Projects). The workaround would be to rely on the "second best" approach as id...

Go to advanced search