Search found 7 matches

by tamo
12 Jul 2019, 18:39
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 12
Views: 1450

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

Helgef wrote:
12 Jul 2019, 11:45
Dllcall will convert your ANSI string to Unicode when you specify wstr, it should work as is.
Thanks, Helgef. You are cool, kind, and smart. I've come to like AutoHotkey better than before.
by tamo
12 Jul 2019, 11:02
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 12
Views: 1450

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

; function documentation: ; - https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath pStr := 0 if ret := DllCall("Shell32\SHGetKnownFolderPath", "ptr", &rfid, "UInt", 0, "ptr", 0, "ptr*", pStr, "int") throw exception("SHGetKnownFolderPath fail: " . ret) m...
by tamo
12 Jul 2019, 09:21
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 12
Views: 1450

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

Other useful information sources: https social.msdn.microsoft.com /forums/en-us/7c6614ea-bef9-4421-9778-f8e42b95456a/ Broken Link for safety https://www.autohotkey.com/boards/viewtopic.php?t=53136 https://github.com/flipeador/Library-AutoHotkey/blob/master/dlg/ChooseFile.ahk I think it's too much wo...
by tamo
12 Jul 2019, 08:42
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 12
Views: 1450

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

With some experiments and in hindsight, I just need the trailing "\". (You don't need GetReliablePath, pneumatic.) I found that it can still fail if you don't change the starting directory every time. The purpose is to stop Windows from trying to be clever: The algorithm for selecting the initial d...
by tamo
12 Jul 2019, 00:51
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 12
Views: 1450

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

This was my workaround for 64-bit Unicode compiled .exe FileSelectFile , SelectedFile ,, % GetReliablePath( Path . "\Folder" ) , Select File , Videos (*.mp4) GetReliablePath(Path){ static LastPath If (Path = LastPath){ StringRight , LastChar , Path , 1 If (LastChar = "\") StringTrimRight , Path , P...
by tamo
11 Jul 2019, 21:55
Forum: Ask For Help
Topic: Edit Field - Number-Buttons to enter a Number on Touchpad
Replies: 1
Views: 291

Re: Edit Field - Number-Buttons to enter a Number on Touchpad

When i press the "1" Button i want to add "1" into the edit field. Right now iam using TAB to get to the field, send END key and send 1 but there must be a better way right? Gui, Add, Edit, x%ListX% w%ListW% h40 gIncrementalSearch vsearchedString ,Article number ... Gui, Add, Button, x250 y80 w50 h...
by tamo
11 Jul 2019, 09:56
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 12
Views: 1450

FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

Hi, I'm new here, so I must be doing something wrong to which you can easily point. ;) Please help me. I want to open FileSelectFile with RootDir set to "MyVideo" folder. And I CAN do it as long as I use AHK U32. VarSetCapacity(myvideos, 520, 0) SetGUID(rfid, "{18989B1D-99B5-455B-841C-AB7C74E4DDFC}"...

Go to advanced search