AutoGUI - Script Editor, GUI Designer, Debugger and Tools

Script editor, GUI designer, debugger and tools for AutoHotkey
Franktic
Posts: 7
Joined: 08 Oct 2018, 22:35

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

12 Jan 2020, 21:48

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
}
anotherbyte
Posts: 1
Joined: 14 Jan 2020, 03:54

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

14 Jan 2020, 04:21

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 1202 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
    }
User avatar
boiler
Posts: 3799
Joined: 21 Dec 2014, 02:44

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

04 Feb 2020, 15:34

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.
kevindevm
Posts: 4
Joined: 15 Apr 2019, 23:03

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

10 Mar 2020, 15:07

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

Return to “AutoGUI”

Who is online

Users browsing this forum: No registered users and 26 guests