Search found 132 matches

by labrint
21 Nov 2019, 04:28
Forum: Ask For Help
Topic: A_GuiEvent
Replies: 0
Views: 147

A_GuiEvent

Consider the following function which controls listview tables. ListCtrlEvent(ctrlHwnd:=0, guiEvent:="", eventInfo:="", errLvl:="") { If A_GuiEvent LvSel := A_GuiControl GuiControlGet, ctrlName, Name, %CtrlHwnd% rownumber := eventInfo If (guiEvent = "DoubleClick") { Thread, NoTimers , True ;eventInf...
by labrint
19 Nov 2019, 03:28
Forum: Ask For Help
Topic: Help on Regex Needed Topic is solved
Replies: 5
Views: 318

Re: Help on Regex Needed Topic is solved

I'm Interested in the middle solution but it does not distinguish between a comma found in between " " and a comma NOT found in between " ". I need at the bare minimum to remove commas found in between " ". Try it with my str: Profit,Product,Product Type,Quantity,Net,VAT,Code,Company Stock,Preferred...
by labrint
18 Nov 2019, 07:41
Forum: Ask For Help
Topic: Help on Regex Needed Topic is solved
Replies: 5
Views: 318

Help on Regex Needed Topic is solved

I have a CSV file (comma delimited values) and I need a regex formula to capture each cell. Usually I use the following formula to capture (example a 5 column table) (.*),(.*),(.*),(.*),(.*) The problem with this formula is that if the cell contains a comma, which is possible, then the capture think...
by labrint
18 Nov 2019, 04:46
Forum: Ask For Help
Topic: SMTP settings for private domains
Replies: 0
Views: 131

SMTP settings for private domains

Hi, I have been using the following code to send emails via SMTP from gmail accounts. How get/change the settings to cater for custom domains/email addresses? pmsg := ComObjCreate("CDO.Message") pmsg.From := """John Agius"" <[email protected].com>" pmsg.To := "[email protected].com" pmsg.BCC := "" pmsg...
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: 435

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Go to advanced search