Search found 43 matches

by rodemp
10 Apr 2019, 02:04
Forum: AutoHotkey v2 Development
Topic: [Bug] Functions inner Functions variables Topic is solved
Replies: 1
Views: 182

[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: 548

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 371 times
by rodemp
23 Feb 2019, 21:31
Forum: AutoHotkey_H
Topic: Compiled exe file has [Script Parameters] bug
Replies: 7
Views: 548

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 16 times
by rodemp
22 Feb 2019, 01:40
Forum: AutoHotkey_H
Topic: Compiled exe file has [Script Parameters] bug
Replies: 7
Views: 548

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: 548

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: 309

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 14 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: 309

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: AutoHotkey v2 Development
Topic: Bug: Gui Tab Control Change Event not work
Replies: 0
Views: 281

Bug: Gui Tab Control Change Event not work

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: 437

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 v2 Development
Topic: Bug: StrSplit Topic is solved
Replies: 4
Views: 736

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 v2 Development
Topic: Bug: StrSplit Topic is solved
Replies: 4
Views: 736

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
Topic: RegExMatch help Topic is solved
Replies: 2
Views: 205

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
Topic: RegExMatch help Topic is solved
Replies: 2
Views: 205

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: AutoHotkey v2 Development
Topic: Gui picture value empty problem
Replies: 1
Views: 392

Gui picture value empty problem

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
Topic: Pre-built ImageLists - credits to SKAN
Replies: 17
Views: 1568

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: AutoHotkey v2 Development
Topic: [solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
Replies: 1
Views: 388

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
Topic: How to move a tab sub-control to another tab
Replies: 2
Views: 164

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
Topic: How to move a tab sub-control to another tab
Replies: 2
Views: 164

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: AutoHotkey v2 Development
Topic: [solved]Ahk V2 Listview ControlSetStyle problem Topic is solved
Replies: 1
Views: 388

[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...
by rodemp
01 Sep 2018, 23:49
Forum: Ask For Help
Topic: 2D array object clone bug?
Replies: 2
Views: 245

Re: 2D array object clone bug?

I found something. Aarray := [["a1","a2","a3"],["b1","b2","b3"]] Barray := ObjFullyClone(Aarray) Barray[1,1] := "1changeB" Barray[2,1] := "2changeB" MsgBox % Aarray[1,1] "/" Barray[1,1] "`n`n" Aarray[2,1] "/" Barray[2,1] ; a1/1chageB b1/2change ObjFullyClone(obj) { nobj := obj.Clone() for k,v in nob...

Go to advanced search