Search found 44 matches

by rodemp
01 Aug 2019, 00:36
Forum: AutoHotkey_H
Topic: Duplicate function definition error in Compiled script
Replies: 0
Views: 1964

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...
by rodemp
10 Apr 2019, 02:04
Forum: Ask for Help (v2)
Topic: [Bug] Functions inner Functions variables Topic is solved
Replies: 1
Views: 1666

[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
	}
}
Can not get a variable called by %name% unless it is called from an inner functions
by rodemp
06 Mar 2019, 00:51
Forum: AutoHotkey_H
Topic: Compiled exe file has [Script Parameters] bug
Replies: 7
Views: 3271

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
the script's path Properties changes to A_Args [1] when run with ahk_v2 h
aa.png
aa.png (15.61 KiB) Viewed 3094 times
by rodemp
23 Feb 2019, 21:31
Forum: AutoHotkey_H
Topic: Compiled exe file has [Script Parameters] bug
Replies: 7
Views: 3271

Re: Compiled exe file has [Script Parameters] bug

HotKeyIt wrote:
22 Feb 2019, 02:28
Did it work as intended now with latest ahk_h v2?
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
ParamTest.zip
(1.02 MiB) Downloaded 138 times
by rodemp
22 Feb 2019, 01:40
Forum: AutoHotkey_H
Topic: Compiled exe file has [Script Parameters] bug
Replies: 7
Views: 3271

Re: Compiled exe file has [Script Parameters] bug

HotKeyIt wrote:
21 Feb 2019, 21:51
Can you try latest version, there was a bug that has been fixed now.
I could not reproduce that problem in latest version.
Oh I checked the bug with the version of ahk_h v2 There was no problem with ahk_h v1
by rodemp
20 Feb 2019, 00:05
Forum: AutoHotkey_H
Topic: Compiled exe file has [Script Parameters] bug
Replies: 7
Views: 3271

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...
by rodemp
15 Feb 2019, 03:10
Forum: AutoHotkey_H
Topic: ObjLoad causes problem
Replies: 3
Views: 2193

Re: ObjLoad causes problem

HotKeyIt wrote:
15 Feb 2019, 02:48
Can you show the code/object that causes the Problem?
The code is too long, upload the file with the problem.
qqq.zip
(9.29 KiB) Downloaded 110 times

Code: Select all

time1:=A_TickCount
loadtemp:=ObjLoad("Scripts\qqq.bin")

MsgBox "time - " (A_TickCount-time1) " `n" loadtemp.maxindex() "/" loadtemp.1.slot.1.maxindex()
by rodemp
14 Feb 2019, 23:48
Forum: AutoHotkey_H
Topic: ObjLoad causes problem
Replies: 3
Views: 2193

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:=...
by rodemp
15 Dec 2018, 22:15
Forum: Bug Reports
Topic: Bug: Gui Tab Control Change Event not work Topic is solved
Replies: 1
Views: 1344

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 ...
by rodemp
20 Nov 2018, 23:45
Forum: Ask for Help
Topic: When using ThreadObj Intermittent error
Replies: 1
Views: 1771

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 ...
by rodemp
03 Nov 2018, 03:23
Forum: AutoHotkey Development
Topic: Bug: StrSplit Topic is solved
Replies: 5
Views: 3525

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.
by rodemp
03 Nov 2018, 02:42
Forum: AutoHotkey Development
Topic: Bug: StrSplit Topic is solved
Replies: 5
Views: 3525

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...
by rodemp
31 Oct 2018, 08:42
Forum: Ask for Help (v1)
Topic: RegExMatch help Topic is solved
Replies: 2
Views: 704

Re: RegExMatch help Topic is solved

swagfag wrote:
31 Oct 2018, 07:10
([a-z_A-Z]\w*)(\[)([^\]]*)(.*)
thank you swagfag
by rodemp
31 Oct 2018, 03:24
Forum: Ask for Help (v1)
Topic: RegExMatch help Topic is solved
Replies: 2
Views: 704

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!
by rodemp
24 Oct 2018, 01:53
Forum: Bug Reports
Topic: [v2] Gui picture value empty problem Topic is solved
Replies: 2
Views: 2022

[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
Temporarily resolved using try

try
vpic.value:=""
by rodemp
19 Oct 2018, 03:08
Forum: Scripts and Functions (v1)
Topic: Pre-built ImageLists - credits to SKAN
Replies: 17
Views: 4654

Re: Pre-built ImageLists - credits to SKAN

Did you make it IL_Save to text? Using something like Base64Dec
by rodemp
21 Sep 2018, 23:50
Forum: Ask for Help (v2)
Topic: [solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
Replies: 1
Views: 1340

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...
by rodemp
18 Sep 2018, 00:55
Forum: Ask for Help (v1)
Topic: How to move a tab sub-control to another tab
Replies: 2
Views: 785

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)...
by rodemp
18 Sep 2018, 00:13
Forum: Ask for Help (v1)
Topic: How to move a tab sub-control to another tab
Replies: 2
Views: 785

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...
by rodemp
09 Sep 2018, 01:25
Forum: Ask for Help (v2)
Topic: [solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
Replies: 1
Views: 1340

[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...

Go to advanced search