Search found 44 matches
- 01 Aug 2019, 00:36
- Forum: AutoHotkey_H
- Topic: Duplicate function definition error in Compiled script
- Replies: 0
- Views: 1973
Duplicate function definition error in Compiled script
Duplicate function definition error occurs When winapi used in one function is used in another function when using winapi directly, not dllcall() However, using winapi in a function with labels or hotkeys does not cause Duplicate function definition error No error when running below script, Errors o...
- 10 Apr 2019, 02:04
- Forum: Ask for Help (v2)
- Topic: [Bug] Functions inner Functions variables Topic is solved
- Replies: 1
- Views: 1692
[Bug] Functions inner Functions variables Topic is solved
Code: Select all
aa()
aa()
{
a:="outvar"
bb()
bb()
{
b:="a"
MsgBox %b% ; print not thing
}
}
Code: Select all
aa()
aa()
{
a:="outvar"
bb()
bb()
{
b:="a"
MsgBox a ; outvar
MsgBox %b% ; outvar
}
}
- 06 Mar 2019, 00:51
- Forum: AutoHotkey_H
- Topic: Compiled exe file has [Script Parameters] bug
- Replies: 7
- Views: 3292
Re: Compiled exe file has [Script Parameters] bug
Code: Select all
MsgBox "A_Args.maxindex() - " A_Args.maxindex() "`nA_ScriptFullPath - " A_ScriptFullPath "`nA_ScriptDir - " A_ScriptDir "`nA_ScriptName - " A_ScriptName
- 23 Feb 2019, 21:31
- Forum: AutoHotkey_H
- Topic: Compiled exe file has [Script Parameters] bug
- Replies: 7
- Views: 3292
Re: Compiled exe file has [Script Parameters] bug
I downloaded the new file and tried it, but there was still a bug
https://www.autohotkey.com/boards/viewtopic.php?f=65&t=28803
Download AutoHotkey_H v2
- 22 Feb 2019, 01:40
- Forum: AutoHotkey_H
- Topic: Compiled exe file has [Script Parameters] bug
- Replies: 7
- Views: 3292
- 20 Feb 2019, 00:05
- Forum: AutoHotkey_H
- Topic: Compiled exe file has [Script Parameters] bug
- Replies: 7
- Views: 3292
Compiled exe file has [Script Parameters] bug
CompiledScript.exe [Switches] [Script Parameters] for n, param in A_Args ; For each parameter: { MsgBox "Parameter number [" n "] is [" param "]`n`nA_ScriptFullPath - " A_ScriptFullPath } Compiled file name is "ParamTest.exe" ParamTest.zip When I drop another file into the compiled file, it looks li...
- 15 Feb 2019, 03:10
- Forum: AutoHotkey_H
- Topic: ObjLoad causes problem
- Replies: 3
- Views: 2212
Re: ObjLoad causes problem
The code is too long, upload the file with the problem.
Code: Select all
time1:=A_TickCount
loadtemp:=ObjLoad("Scripts\qqq.bin")
MsgBox "time - " (A_TickCount-time1) " `n" loadtemp.maxindex() "/" loadtemp.1.slot.1.maxindex()
- 14 Feb 2019, 23:48
- Forum: AutoHotkey_H
- Topic: ObjLoad causes problem
- Replies: 3
- Views: 2212
ObjLoad causes problem
ObjLoad.JPG I had trouble using the built-in ObjLoad and used the new ObjLoad library so it worked properly But the compressed save file could not be loaded +Fixed to load file compressed with UnZipRawMemory https://www.autohotkey.com/boards/viewtopic.php?f=6&t=3573 ;ahk_h v2 ObjLoad(addr,objects:=...
- 15 Dec 2018, 22:15
- Forum: Bug Reports
- Topic: Bug: Gui Tab Control Change Event not work Topic is solved
- Replies: 1
- Views: 1372
Bug: Gui Tab Control Change Event not work Topic is solved
Gui := GuiCreate() tab := Gui.Add("tab", "w300 h100", "aaa|bbb|ccc") tab.Onevent("Change","Tabchange") Gui.Add("button"," x+10 y+10" ,"test") Gui.OnEvent("Close", ()=>ExitApp()) Gui.OnEvent("Escape", ()=>ExitApp()) Gui.Show() Tabchange(ctrl, n) { ToolTip "tab - " n "/" ctrl.value } Gui Tab Control ...
- 20 Nov 2018, 23:45
- Forum: Ask for Help
- Topic: When using ThreadObj Intermittent error
- Replies: 1
- Views: 1794
When using ThreadObj Intermittent error
I tested in Win 7 32bit ahk:=ThreadObj("F2::MsgBox(2)") F1::MsgBox(1) F5::ExitApp there is a problem that the process itself stops when it is executed repeatedly but there was no problem with AhkThread using dll if the process is stopped with ThreadObj, the exit code 3489660927 is displayed when it ...
- 03 Nov 2018, 03:23
- Forum: AutoHotkey Development
- Topic: Bug: StrSplit Topic is solved
- Replies: 5
- Views: 3566
Re: Bug: StrSplit Topic is solved
I did not know it would be a problem in the simple part. Thanks for helping solve the problem.
- 03 Nov 2018, 02:42
- Forum: AutoHotkey Development
- Topic: Bug: StrSplit Topic is solved
- Replies: 5
- Views: 3566
Bug: StrSplit Topic is solved
x:="10,15,25,991,24,25,199" n:=[], c:=StrSplit(x, ",") Loop c.Length() n[A_Index] := c[A_Index] MsgBox n[3] "/" n[7] "`n" (n[3] > n[7]) ; 25/199 `n 1 I found that when I decomposed a string with StrSplit, some of the values were causing problems When n[7] is between 100 and 199 it was a problem. Te...
- 31 Oct 2018, 08:42
- Forum: Ask for Help (v1)
- Topic: RegExMatch help Topic is solved
- Replies: 2
- Views: 712
- 31 Oct 2018, 03:24
- Forum: Ask for Help (v1)
- Topic: RegExMatch help Topic is solved
- Replies: 2
- Views: 712
RegExMatch help Topic is solved
x := "aa[aa1,aa2,aa3]-bb[bb1,bb2]-cc[cc1]"
RegExMatch(x,"([a-z_A-Z]\w*)(\[)(.*)(\])(.*)",y)
; y1 - aa
; y2 - [
; y3 - aa1,aa2,aa3]-bb[bb1,bb2]-cc[cc1
; y4 - ]
I want to separate the aa's [].
like below
y1 - aa
y2 - [
y3 - aa1,aa2,aa3
y4 - ]-bb[bb1,bb2]-cc[cc1]
plz help!
RegExMatch(x,"([a-z_A-Z]\w*)(\[)(.*)(\])(.*)",y)
; y1 - aa
; y2 - [
; y3 - aa1,aa2,aa3]-bb[bb1,bb2]-cc[cc1
; y4 - ]
I want to separate the aa's [].
like below
y1 - aa
y2 - [
y3 - aa1,aa2,aa3
y4 - ]-bb[bb1,bb2]-cc[cc1]
plz help!
- 24 Oct 2018, 01:53
- Forum: Bug Reports
- Topic: [v2] Gui picture value empty problem Topic is solved
- Replies: 2
- Views: 2034
[v2] Gui picture value empty problem Topic is solved
Code: Select all
Gui:=GuiCreate()
vpic:=Gui.Add("pic", "x0 y0")
Gui.Show("w400 h400")
Gui.OnEvent("Close", () => ExitApp())
Return
F1::
vpic.value:="pic.png"
return
F2::
vpic.value:="" ; invalid value error
return
try
vpic.value:=""
- 19 Oct 2018, 03:08
- Forum: Scripts and Functions (v1)
- Topic: Pre-built ImageLists - credits to SKAN
- Replies: 17
- Views: 4671
Re: Pre-built ImageLists - credits to SKAN
Did you make it IL_Save to text? Using something like Base64Dec
- 21 Sep 2018, 23:50
- Forum: Ask for Help (v2)
- Topic: [solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
- Replies: 1
- Views: 1364
Re: Ahk V2 Listview ControlSetStyle problem Topic is solved
Gui := GuiCreate(,"Fixed Colum Width") LV := Gui.Add("ListView", "r15 w200 Grid NoSortHdr -LV0x10", "A|B|C|D") LVHeader:=SendMessage(0x101F, 0, 0, , "ahk_id " . LV.HWND) ; LVM_GETHEADER = 0x101F ControlSetStyle "+0x0800", , "ahk_id " . LVHeader Loop 10 LV.Add(,a_index,a_index+1,a_index*a_index) Gui...
- 18 Sep 2018, 00:55
- Forum: Ask for Help (v1)
- Topic: How to move a tab sub-control to another tab
- Replies: 2
- Views: 797
Re: How to move a tab sub-control to another tab
Oh.I did not have enough explanation. I intended to do this. https://stackoverflow.com/questions/24309804/moving-controls-from-one-tab-page-to-another private void ControlsToTabPage(TabPage from, TabPage to) { Control[] ctrlArray = new Control[from.Controls.Count]; from.Controls.CopyTo(ctrlArray, 0)...
- 18 Sep 2018, 00:13
- Forum: Ask for Help (v1)
- Topic: How to move a tab sub-control to another tab
- Replies: 2
- Views: 797
How to move a tab sub-control to another tab
Gui, add, tab3, w300 h300, tab1|tab2|tab3|tab4| Gui, tab, 1 Gui, add, Edit, vedit1 ReadOnly, tab1 sub control Gui, tab, 2 Gui, add, Edit, vedit2 ReadOnly, tab2 sub control Gui, tab, 3 Gui, add, Edit, vedit3 ReadOnly, tab3 sub control Gui, tab, 4 Gui, add, Edit, vedit4 ReadOnly, tab4 sub control Gui...
- 09 Sep 2018, 01:25
- Forum: Ask for Help (v2)
- Topic: [solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
- Replies: 1
- Views: 1364
[solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
Gui := GuiCreate(,"Fixed Colum Width") LV := Gui.Add("ListView", "r15 w200 Grid NoSortHdr -LV0x10", "A|B|C|D") LVHeader:=SendMessage(0x101F, 0, 0, , "ahk_id " . LV.HWND) ; LVM_GETHEADER = 0x101F ControlSetStyle +0x0800, , "ahk_id " . LVHeader Loop 10 LV.Add(,a_index,a_index+1,a_index*a_index) Gui.S...