Re: AutoGUI 2.0
Posted: 08 Jan 2018, 07:06
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=90&t=40290
You can define a g-Label or function name for the button in the properties dialog and then write the code for it after the delimiter of the generated code. But it is more convenient to finish designing the GUI first, to start writing the code, preferably on a new tab.apoklyps3 wrote:Question: Any hopes for it to get "add ahk code" to buttons function?
Code: Select all
CtrlP := GetKeyState("Ctrl", "P") && !GetKeyState("vkA5", "P")
Code: Select all
DuplicateLine() {
n := TabEx.GetSel()
Sci[n].LineDuplicate()
CurPos := Sci[n].GetCurrentPos()
CurCol := Sci[n].GetColumn(CurPos)
Line := Sci[n].LineFromPosition(CurPos) + 1
; Move cursor to new line and set the cursor pos to same column as before
Sci[n].GoToLine(Line)
NewPos := Sci[n].GetCurrentPos()
Sci[n].GoToPos(NewPos + CurCol)
}
MoveLineUp() {
n := TabEx.GetSel()
CurPos := Sci[n].GetCurrentPos()
CurCol := Sci[n].GetColumn(CurPos)
SelLength := Sci[n].GetSelText() - 1
Sci[n].MoveSelectedLinesUp()
; If there is no selection, maintain the cursor position
if (!SelLength) {
NewPos := Sci[n].GetCurrentPos()
Sci[n].GoToPos(NewPos + CurCol)
}
}
MoveLineDown() {
n := TabEx.GetSel()
CurPos := Sci[n].GetCurrentPos()
CurCol := Sci[n].GetColumn(CurPos)
SelLength := Sci[n].GetSelText() - 1
Sci[n].MoveSelectedLinesDown()
; If there is no selection, maintain the cursor position
if (!SelLength) {
NewPos := Sci[n].GetCurrentPos()
Sci[n].GoToPos(NewPos + CurCol)
}
}
I think that in most situations you will notice that a line should be duplicated while still writing it . Scintilla editors keep the cursor in the same position while non-Scintilla editors move the cursor to the new line.kczx3 wrote:When the Duplicate line shortcut is used, the cursor should move to the end of the newly added line.
You are right and I changed that for the next version.kczx3 wrote:when you move a line up or down, the cursor should stay with that moved line.
I made tests with a dark theme using the colors you provided for the Monokai theme loaded from an ini file. It is a work in progress.kczx3 wrote:Would love for the ability to add themes for the syntax highlighting opposed to just modifying Editor.ahk.
You're right, I think I just meant it should move to the newly created line.Alguimist wrote: I think that in most situations you will notice that a line should be duplicated while still writing it . Scintilla editors keep the cursor in the same position while non-Scintilla editors move the cursor to the new line.
There is: Ctrl + Insert.gallaxhar1 wrote:Would be cool if there was a hotkey to paste the Code Tooltips text into the editor
I changed the code folding boxes to the default style as you suggested. Not only for a consistent style, but because there is another disadvantage on the use of the XPM icons: they do not resize according to the font size and so there is a small gap between the folding button and the consecutive vertical line.gallaxhar1 wrote:The fold margin collapse and expand boxes look '3D' but the vertical lines look '2D' ascii, would be cool if they matched (like notepad++)
Thanks .hasantr wrote:Thank you, a very nice tool for development.
Debugging with Alt+F5 is now possible for the alternative executable in the newest version.kczx3 wrote:It'd be nice to have an option to specify running and debugging with AHK V2.
You should avoid modifying Menu.ahk or you will have to modify it every time a new version is available. The only customizable menu in AutoGUI is Tools. It can be modified with the Tools Dialog (Tools > Configure Tools). Remember to specify the parameter "{FILENAME}".kczx3 wrote:I added it to AutoGui.ini as the AltRun setting but also modified Menu.ahk to add an item for running via the Menu in addition to the Alt+F9 shortcut.
No, but I will start to work on it eventually. It has been delayed thus far because I think that only a few features require explanation. Anyway, a detailed description is needed.kczx3 wrote:Do you have documentation available yet for all the features of AutoGui?
See the highlight test file created by RaptorX.kczx3 wrote:I just now realized that the lexer has items for comment documentation similar to JSDoc. I'm not certain what exactly it is looking for though.
Theme customization is still being planned. It will be implemented in a future version.BriHecato wrote:Defiantely need more themes or quick guide how to set it "my way"...
There isn't.BriHecato wrote:And second - where's paypal donate button?