Page 19 of 19

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Posted: 12 Jan 2020, 21:48
by Franktic
Comment out the lines below in autogui.ahk by putting them inside /* */

If (A_ScreenDPI != 96) {
Gui Auto: +OwnDialogs
MsgBox 0x30, Warning, %g_AppName% has not been adapted to High-DPI display scaling.`n`nThe program will exit.
ExitApp
}

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Posted: 12 Jan 2020, 23:01
by freespacing
@Franktic Thank you!

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Posted: 14 Jan 2020, 04:21
by anotherbyte
Hello.

I found a possible bug with saving files to network drives.
I just downloaded the latest version from SF (2.6.2, using AutoHotkey 1.1.30.03)

Steps to reproduce

* create a file
* save it to a network drive, say G:\
* modify the file
* try saving again
It will fail with error "The request is not supported." (error 0x50: ERROR_NOT_SUPPORTED).
screenshot 2020.01.14-06.04.11.png
screenshot 2020.01.14-06.04.11.png (5.61 KiB) Viewed 1451 times
The issue happens in this function

Code: Select all

WriteFile(Filename, String, Encoding := "UTF-8") {
    f := FileOpen(Filename, "w", Encoding)
    If (!IsObject(f)) {
        ErrorMsgBox("Error saving """ . Filename . """.`n`n" . GetErrorMessage(A_LastError), "Auto")
        Return -1
    }
    Bytes := f.Write(String)
    f.Close()
    Return Bytes
}
Edit: Fixed by restoring the behavior from 2.5.8.
Instead of this

Code: Select all

    If (WriteFile(FullPath, SciText, Encoding) < 0) {
        SetWindowTitle("Error saving file: " . FullPath)
        Return 0
    }
I used this

Code: Select all

    FileDelete %FullPath%
    FileAppend %SciText%, %FullPath%, %Encoding%
    If (ErrorLevel) {
        ErrorMsgBox("Error saving """ . FullPath . """.`n`n" . GetErrorMessage(A_LastError), "Auto", g_AppName)
        SetWindowTitle("Error saving file: " . FullPath)
        Return 0
    }

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Posted: 04 Feb 2020, 15:34
by boiler
haichen wrote:
16 Aug 2019, 04:34
I like AutoGui very much. At the moment i'm only missing the possibility of relative positioning of the controls in the code. I like to see positioning with wp, hp, xp, yp xm, ym etc and maybe xs, ys. May be this could be built in the Alignmenttools. Perhaps as an option.

Thank you very much for your very helpful program.
haichen
Hi haichen. I created a tool called Relativity to do add relative positioning of controls after the GUI has been laid out. Perhaps you will find it useful.

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Posted: 10 Mar 2020, 15:07
by kevindevm
hi amazing app becouse i copy alot i added this, maybe you could add it to the program? ctrl + alt + click to get a copy on your mouse of the control u clicked here is a video https i.imgur.com /8Dz16UB.mp4 Broken Link for safety

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Posted: 07 Apr 2020, 08:46
by Alguimist
@anotherbyte: sorry for the late reply.

Recently I was checking the documentation of OPENFILENAME, where there is a mention to "create-nonmodify network share", which is probably your case. I could check the drive type when an error occurs when saving, with the commmand DriveGet (Type, Network), and maybe check for permissions, since the error message is vague, and then provide an alternative save function.