Search found 524 matches

by Odlanir
05 Sep 2019, 13:41
Forum: Ask For Help
Topic: LV_Delete(RowNumber) failure
Replies: 3
Views: 284

Re: LV_Delete(RowNumber) failure

Try this, DoubleClick to delete an Item in listview: arr := [] Loop, 10 arr[A_Index, 1] := "Line" A_Index, arr[A_Index, 2] := "Val" A_Index, arr[A_Index, 3] := "Count" A_Index gui, Add, ListView, Section vLV w300 r12 gLV, Field1 |Field2 |Field3 | gui, Add, Edit, ys vEdi w300 r14 Loop, % arr.Count() ...
by Odlanir
05 Sep 2019, 13:11
Forum: Ask For Help
Topic: Get all line contents if line ID found
Replies: 2
Views: 133

Re: Get all line contents if line ID found

#NoTrayIcon #SingleInstance, Force Exportfile := "C:\Export_Data\data_template.TXT" FileRead, Data, %Exportfile% arr := StrSplit(data,"`n","`r") for idx, val in arr { if (RegExMatch(val, "402")) list .= StrSplit(RTrim(val,"|"),"|").Pop() "|" } Gui, Add, GroupBox, x252 y-91 w400 h90 , GroupBox Gui, ...
by Odlanir
02 Sep 2019, 12:19
Forum: Ask For Help
Topic: GUI with resizable text field Topic is solved
Replies: 14
Views: 824

Re: GUI with resizable text field Topic is solved

john_c wrote:
02 Sep 2019, 08:47
... So, the first question: is there a way to calculate a scrollbar width?
Yes:

Code: Select all

SysGet, VScroll, % SM_CYVSCROLL := 20 ;Width of a vertical scroll bar, in pixels
by Odlanir
01 Sep 2019, 10:05
Forum: Ask For Help
Topic: Drag the files into GUI. For what reason the order of the files is not correct? Topic is solved
Replies: 5
Views: 441

Re: Drag the files into GUI. For what reason the order of the files is not correct? Topic is solved

In my test the order respect the explorer sorting order. I've created f e g in this order. first try I've sorted the folder to file-name I've selected all the files and dropped to your gui second try I've sorted the folder to modify-date I've selected all the files and dropped to your gui In both ca...
by Odlanir
31 Aug 2019, 03:44
Forum: Ask For Help
Topic: Expressions as addresses in multidimensional arrays
Replies: 2
Views: 225

Re: Expressions as addresses in multidimensional arrays

Valid assignment:

Code: Select all

arr := [[],[],[],[],[],[],[],[],[],[],[],[]]
n := 4, c := 1
arr[n,c] := "four"
arr[n][c] := "four"
arr.4[c] := "four"
arr[n].1 := "four"
by Odlanir
30 Aug 2019, 13:27
Forum: Ask For Help
Topic: I need help with Checkbox Topic is solved
Replies: 5
Views: 315

Re: I need help with Checkbox Topic is solved

Why not

Code: Select all

GuiControlGet,ELeave,,ELeave
or

Code: Select all

gui Submit, NoHide ; this populate the var Eleave with 1 or 0
by Odlanir
30 Aug 2019, 09:05
Forum: Ask For Help
Topic: Capture OCR - in text format
Replies: 14
Views: 1005

Re: Capture OCR - in text format

@Ahk_fan I don't think this ZaehlerOk .= 1 will give you the sum of the converted files.
Maybe you intended : ZaehlerOk += 1
by Odlanir
29 Aug 2019, 13:08
Forum: Ask For Help
Topic: How to Display a clock and have it update?
Replies: 8
Views: 461

Re: How to Display a clock and have it update?

The code works as expected.
Try to display the content of MyVar after the Document.getElementbyId adding a msgbox to see the returned value from IE.
by Odlanir
29 Aug 2019, 09:09
Forum: Ask For Help
Topic: How to Display a clock and have it update?
Replies: 8
Views: 461

Re: How to Display a clock and have it update?

@SirSocks I've just notice my script loose a second.
put this between the Gui, Show an the SetTimer, update, 1000

Code: Select all

gosub, update
by Odlanir
29 Aug 2019, 08:30
Forum: Ask For Help
Topic: How to Display a clock and have it update?
Replies: 8
Views: 461

Re: How to Display a clock and have it update?

ie := ComObjCreate("InternetExplorer.Application") ; com for internet explorer. ie.Navigate("https://www.timeanddate.com/worldclock/fullscreen.html?n=179") ; website to navigate to. While (ie.busy || or ie.Readystate <> 4) ; waits for internet explorer. Sleep 500 MyVar := ie.Document.getElementbyId...
by Odlanir
28 Aug 2019, 08:24
Forum: Ask For Help
Topic: Toggle to stop loop before it runs all the way through
Replies: 8
Views: 384

Re: Toggle to stop loop before it runs all the way through

Try to run your script without

Code: Select all

#MaxThreadsPerHotkey, 2
an you will see.
by Odlanir
28 Aug 2019, 08:22
Forum: Ask For Help
Topic: Parsing clipboard partially Topic is solved
Replies: 4
Views: 240

Re: Parsing clipboard partially Topic is solved

You can also use an array:

Code: Select all

searchx := "message"
cc=
(
1-aaaa
2-bbbb
3-cccc message
4-dddd followed-line
5-eeee
6-ffff
7-gggg message
8-hhhh followed-line
9-iiii
)
Arr := StrSplit(cc, "`n")
for k, v in Arr
   str .= ( v ~= searchx) ? Arr[k+1] "`n" : ""
MsgBox %str%
by Odlanir
28 Aug 2019, 07:59
Forum: Ask For Help
Topic: Toggle to stop loop before it runs all the way through
Replies: 8
Views: 384

Re: Toggle to stop loop before it runs all the way through

Yes but in this case you must specify

Code: Select all

#MaxThreadsPerHotkey, 2
which is not specified in your script.
by Odlanir
28 Aug 2019, 07:51
Forum: Ask For Help
Topic: How to proceed aftrr this error message?
Replies: 5
Views: 310

Re: How to proceed aftrr this error message?

You can also run this to display your current AutoHotkey.exe version.

Code: Select all

MsgBox % "You're running a " . (A_PtrSize=8 ? "64-bit" : "32-bit") " version of Autohotkey.exe"
by Odlanir
28 Aug 2019, 07:40
Forum: Ask For Help
Topic: Toggle to stop loop before it runs all the way through
Replies: 8
Views: 384

Re: Toggle to stop loop before it runs all the way through

@Dumitas in a while loop like your the hotkey will be never get fired to change the toggle value, so you are in an endless loop.
by Odlanir
28 Aug 2019, 03:40
Forum: Ask For Help
Topic: Speed: 32 vs 64 bits
Replies: 6
Views: 488

Re: Speed: 32 vs 64 bits

swagfag wrote:
28 Aug 2019, 03:31
... where did u read about this
Never read. Is the way I found to exec the same script in 64 and 32 bit.
by Odlanir
27 Aug 2019, 09:59
Forum: Ask For Help
Topic: Toggle to stop loop before it runs all the way through
Replies: 8
Views: 384

Re: Toggle to stop loop before it runs all the way through

Code: Select all

^z::
stopLooop := true
return

^+z::
loop {
	If (stopLooop ) {
		stopLooop := false
		break
	}
	ToolTip, %a_index%
	sleep, 100
}
return
by Odlanir
25 Aug 2019, 04:32
Forum: Ask For Help
Topic: Help with pre-installed Skype on Win10
Replies: 6
Views: 322

Re: Help with pre-installed Skype on Win10

Following these instruction : https://jcutrer.com/windows/find-aumid I've found this:

Code: Select all

Run shell:AppsFolder\Microsoft.SkypeApp_kzf8qxf38zg5c!App

Go to advanced search