Search found 127 matches

by labrint
20 Sep 2019, 02:06
Forum: Ask For Help
Topic: WinHttp.WinHttpRequest.5.1 / MSXML2.XMLHTTP.6.0 Errors on WinXp (previously working!)
Replies: 4
Views: 246

WinHttp.WinHttpRequest.5.1 / MSXML2.XMLHTTP.6.0 Errors on WinXp (previously working!)

Yesterday, after using this code successfully for over 2 years, I began to receive an error from a windows xp system. Other windows versions worked fine with this code because I tested them yesterday. Code version 1: url := "https://pastebin.com/raw/" pastekey1 HttpRequest := ComObjCreate("WinHttp.W...
by labrint
13 Sep 2019, 06:16
Forum: Ask For Help
Topic: ListView Number sorting problem
Replies: 5
Views: 390

Re: ListView Number sorting problem

I tried it out with the following code, where I added a left alignment, and it worked: #SingleInstance force Gui, Add, ListView, xm, Description|Quantity Gui, Add, Button, xm gSorting, Sort Gui, Show LV_Add("","A",6) LV_Add("","B",5) LV_Add("","C",4) LV_Add("","D",3) LV_Add("","E",35) LV_Add("","F",...
by labrint
13 Sep 2019, 03:10
Forum: Ask For Help
Topic: ListView Number sorting problem
Replies: 5
Views: 390

ListView Number sorting problem

I have a problem with sorting the numbers in a column of list view. I use the following code to capture the clicking of one of the columns on one of the list views (it works): If (A_GuiEvent = "ColClick"){ Out1 := If ctrlName = MyFirstListView { LV_GetText(Out1, 0, A_EventInfo) If Out1 contains Quan...
by labrint
06 Sep 2019, 04:47
Forum: Ask For Help
Topic: LV_Delete(RowNumber) failure
Replies: 3
Views: 285

Re: LV_Delete(RowNumber) failure

Upon investigating further, it seems that there wasn't a problem with the delete. There were items in the list with similar names, some of which where deleted and some where not and they gave the wrong impression that deleted items where not actually deleted. Thank you for the for loop method noneth...
by labrint
05 Sep 2019, 01:59
Forum: Ask For Help
Topic: LV_Delete(RowNumber) failure
Replies: 3
Views: 285

LV_Delete(RowNumber) failure

I have an LV in which I allow users to delete rows to remove items using LV_Delete, and once they finish, the list is compiled row by row into an edit box. Question 1: Why do some deleted items (but not all) still show up in the final edit box? is there a way to double check if the row really was de...
by labrint
26 Aug 2019, 09:57
Forum: Ask For Help
Topic: WinHttpRequest, Ragic, Uploading files Topic is solved
Replies: 7
Views: 354

Re: WinHttpRequest, Ragic, Uploading files Topic is solved

Thanks, I managed just about before I could reply to you. Thanks.
by labrint
26 Aug 2019, 09:42
Forum: Ask For Help
Topic: WinHttpRequest, Ragic, Uploading files Topic is solved
Replies: 7
Views: 354

Re: WinHttpRequest, Ragic, Uploading files Topic is solved

Works, fantastic. I have managed to upload a file.

Now I need to know how to upload a file in a field, and upload the text in other fields. Is there a way to combine both functions into one?
by labrint
26 Aug 2019, 09:10
Forum: Ask For Help
Topic: WinHttpRequest, Ragic, Uploading files Topic is solved
Replies: 7
Views: 354

Re: WinHttpRequest, Ragic, Uploading files Topic is solved

Yeah, basically downloaded CreateFormData.ahk and Example.ahk. Ran Example but had error that function did not exist, so I added #Include CreateFormData.ahk but again another error so I added #Include BinArr.ahk as well but still nothing.


Specifically: LoadFromFile

---> oADO.LoadFromFile(FileName)
by labrint
26 Aug 2019, 08:22
Forum: Ask For Help
Topic: WinHttpRequest, Ragic, Uploading files Topic is solved
Replies: 7
Views: 354

Re: WinHttpRequest, Ragic, Uploading files Topic is solved

Downloaded the files in the link but they didn't seem to work. Will check again soon.
by labrint
26 Aug 2019, 06:06
Forum: Ask For Help
Topic: WinHttpRequest, Ragic, Uploading files Topic is solved
Replies: 7
Views: 354

WinHttpRequest, Ragic, Uploading files Topic is solved

The usual working code to upload text to a field in ragic via AHK: Ragic(){ API_Key := "insert key here" var1 = one var2 = two var3 = three var4 = four var5 = five var6 = six Data = 1000036=%var1%&1000037=%var2%&1000038=%var3%&1000039=%var4%&1000040=%var5%&1000041=%var6%&api= WinHttp := ComObjCreate...
by labrint
23 Aug 2019, 02:24
Forum: Ask For Help
Topic: Disabling copy paste (including right click) Topic is solved
Replies: 4
Views: 330

Re: Disabling copy paste (including right click) Topic is solved

Thanks GEV, ingenious and works like a charm!
by labrint
22 Aug 2019, 12:42
Forum: Ask For Help
Topic: Disabling copy paste (including right click) Topic is solved
Replies: 4
Views: 330

Disabling copy paste (including right click) Topic is solved

I was working on a software which required protection from copying what was inside edit boxes. Therefore I disabled CTRL+C while the ahk window is active. I also disabled the right click while the ahk window is active. There is a small problem though. Someone can activate another window, say for exa...
by labrint
22 Aug 2019, 03:56
Forum: Ask For Help
Topic: Timer interfering with user input into GUI (buttons, subroutines, etc) Topic is solved
Replies: 2
Views: 135

Re: Timer interfering with user input into GUI (buttons, subroutines, etc) Topic is solved

Basically I wrote

Code: Select all

Thread, NoTimers , True
in the first line after every thread (label), and it worked fine.

Thanks.
by labrint
22 Aug 2019, 02:13
Forum: Ask For Help
Topic: Timer interfering with user input into GUI (buttons, subroutines, etc) Topic is solved
Replies: 2
Views: 135

Timer interfering with user input into GUI (buttons, subroutines, etc) Topic is solved

Is there a way to wait for when the script is completely silent before running the timer? This timer is needed to update databases, and if the user is clicking buttons which also update databases, they will interfere with each other. I need the timer to wait the usual delay but also wait for the scr...
by labrint
07 Aug 2019, 02:48
Forum: Ask For Help
Topic: Fuzzy Search Topic is solved
Replies: 3
Views: 199

Re: Fuzzy Search Topic is solved

I tried it as well Fenchai. That is pretty neat. I searched 21,000 items in roughly a second. Very acceptable. Also I like the fact that you can vary the percentage accuracy!

I think I will use this algorithm instead of one mentioned above. Its faster and more flexible.
by labrint
06 Aug 2019, 12:30
Forum: Ask For Help
Topic: Fuzzy Search Topic is solved
Replies: 3
Views: 199

Fuzzy Search Topic is solved

I am trying to write a piece of code that gives me the best 5 matches for a string out of around 50,000 items. I found this Damerau–Levenshtein distance method on the forum which I really like. Its wonderful because it gives all strings a rating. The question is how will I search a string vs 50,000 ...
by labrint
06 Aug 2019, 02:58
Forum: Ask For Help
Topic: Delete the last selected row in a multiple listview GUI using a button. Topic is solved
Replies: 2
Views: 166

Delete the last selected row in a multiple listview GUI using a button. Topic is solved

I need the button to delete the last selected row of listview. Does anyone know how to interact with one of multiple list views using buttons or hotkeys? PS: Avoid the ListCtrlEvent(ctrlHwnd:=0, guiEvent:="", eventInfo:="", errLvl:="") function which uses the double click method, I have it set up to...
by labrint
11 Jul 2019, 06:41
Forum: Ask For Help
Topic: Need help comparing sets of Arrays or Tables Topic is solved
Replies: 5
Views: 222

Re: Need help comparing sets of Arrays or Tables Topic is solved

Very elegant solution Odlanir, thanks. Even though I have been using arrays for quite sometime, and used AHK extensively, my understanding of Objects is very very limited and thus would not have found the solution without you.

Go to advanced search