Search found 2491 matches

by swagfag
Yesterday, 14:18
Forum: Ask For Help
Topic: String with "quotation mark" - create array Topic is solved
Replies: 5
Views: 95

Re: String with "quotation mark" - create array Topic is solved

u have a CSV string. the facilities to parse a CSV string already exist. there is no need to reinvent the wheel

Code: Select all

str = "302","Emelie","174,50","asd"",""asd"

Array := []
Loop Parse, str, CSV
	Array.Push(A_LoopField)

for each, item in Array
	MsgBox % item
by swagfag
Yesterday, 11:18
Forum: AutoHotkey v2 Help
Topic: OnExit() bug Topic is solved
Replies: 4
Views: 97

Re: OnExit() bug Topic is solved

OnExit passes ExitReason, ExitCode and whatever other parameters u might have bound
ur onexit handler accepts 0 parameters, change it to ExitFunc(*) if want to ignore any parameters that have been passed to it
by swagfag
18 Jun 2019, 03:26
Forum: Ask For Help
Topic: Swap two words, make them CAPS
Replies: 7
Views: 156

Re: Swap two words, make them CAPS

Code: Select all

MsgBox % RegExReplace("Van Buren Jr. John", "(.*)(?: )(.*)$", "$U2 $U1")
by swagfag
18 Jun 2019, 03:13
Forum: Ask For Help
Topic: Scripts Consisting Of Thousands Of Lines
Replies: 5
Views: 201

Re: Scripts Consisting Of Thousands Of Lines

just split them. do u know of #Include?
by swagfag
18 Jun 2019, 03:08
Forum: Ask For Help
Topic: automatet ENTER KEY after Text-String?
Replies: 2
Views: 55

Re: automatet ENTER KEY after Text-String?

Send, hi{Enter} is correct
by swagfag
18 Jun 2019, 03:04
Forum: Ask For Help
Topic: Adding timers to a loop
Replies: 6
Views: 178

Re: Adding timers to a loop

... ... ;Is web page loaded? sleep, 200 ;##NEED A 45 SECOND TIMER, IF PCOLOR NOT FOUND THEN SEND CTRL + W AND GOTO "LABEL END" (TO RESTART LOOP AND COUNT -1 LOOP)### if !pColorFound() { send ^w goto LABELEND } sleep,200 loop, 5 { send, {tab} ... ... pColorFound() { start := A_TickCount while (A_Tic...
by swagfag
17 Jun 2019, 14:42
Forum: Ask For Help
Topic: array descriptions - what's differ
Replies: 30
Views: 701

Re: array descriptions - what's differ

for table2text.exe to work a working odbc driver and the correct connection string are required. since ure currently using table2text to export stuff, this must mean u have the correct connection string and also a working odbc driver. so why then can u not simply use adosql.ahk or hell even the plai...
by swagfag
17 Jun 2019, 09:02
Forum: Ask For Help
Topic: Array - no string to int conversion of key
Replies: 4
Views: 125

Re: Array - no string to int conversion of key

yeah i dont see what the problem is. for example, with sqlite: download 32bit and/or 64bit sqlite3 odbc drivers c:\>sqlite3.exe sqlite> create table 'testdb' ('z' text); sqlite> insert into 'testdb' values ('0111'); save db as test.db Conn := ComObjCreate("ADODB.Connection") Conn.Open(" (LTrim Join ...
by swagfag
17 Jun 2019, 07:23
Forum: Ask For Help
Topic: Array - no string to int conversion of key
Replies: 4
Views: 125

Re: Array - no string to int conversion of key

i dont see why that should be the case
post runnable code
by swagfag
16 Jun 2019, 16:33
Forum: Ask For Help
Topic: Read Text from .txt and put it into Var
Replies: 4
Views: 151

Re: Read Text from .txt and put it into Var

i dont understand what ure asking or referring to
by swagfag
16 Jun 2019, 15:02
Forum: Ask For Help
Topic: Read Text from .txt and put it into Var
Replies: 4
Views: 151

Re: Read Text from .txt and put it into Var

Code: Select all

If InStr(A_LoopReadLine, SearchString . A_Index && A_Index)
what did u try to accomplish with this line? concatenate SearchString with A_Index, boolean-and it with A_Index. this always evaluates to 1. u want to check if the line contains 1s?
by swagfag
16 Jun 2019, 14:40
Forum: Ask For Help
Topic: Why this msgbox showing empty while it should show 6?
Replies: 1
Views: 83

Re: Why this msgbox showing empty while it should show 6?

fn1(6) ; 1. call fn, pass 6 ; 5. some time passes fn1(ss) { ; 2. ss is 6 SetTimer aa ; 3. aa will fire in some time return ; 4. function returns, ss is "" aa: ; 6. timer callback fires MsgBox % ss ; 7. looks for ss in local scope, ss is "" return } to make it work u would have to store ss somewhere...
by swagfag
16 Jun 2019, 08:11
Forum: Ask For Help
Topic: Does this work?
Replies: 5
Views: 233

Re: Does this work?

is it normal for the lines to jump around when trying to select the space between two monitors
Spoiler

win10x64 v1903 with 2 1080p screens
by swagfag
15 Jun 2019, 20:51
Forum: Ask For Help
Topic: How to a call a function with a number at the end
Replies: 4
Views: 148

Re: How to a call a function with a number at the end

Code: Select all

abc%therandomlygeneratednumber%()
by swagfag
15 Jun 2019, 19:16
Forum: Ask For Help
Topic: Help with random function Topic is solved
Replies: 9
Views: 239

Re: Help with random function Topic is solved

Code: Select all

randomcursor(arraymin, arraymax, byref xcor, byref ycor)
{
xmin := arraymin[1]
ymin := arraymin[2]
xmax := arraymax[1]
ymax := arraymax[2]
Random, xcor, xmin, xmax
Random, ycor, ymin, ymax
}

;test the function's output
randomcursor(16min, 16max, xcor, ycor)
by swagfag
15 Jun 2019, 17:58
Forum: Ask For Help
Topic: Help with random function Topic is solved
Replies: 9
Views: 239

Re: Help with random function Topic is solved

;define the arrays 16min :=["87", "933"] 16max :=["442", "1014"] ;define the function randomcursor(arraymin, arraymax) { xmin := arraymin[1] ymin := arraymin[2] xmax := arraymax[1] ymax := arraymax[2] ; ^ Random, xcor, xmin, xmax Random, ycor, ymin, ymax return [xcor, ycor] ; <<<<<<< } ;test the fu...
by swagfag
15 Jun 2019, 11:12
Forum: Ask For Help
Topic: array descriptions - what's differ
Replies: 30
Views: 701

Re: array descriptions - what's differ

The AHK program starts another program, which program? u had .db in some of ur comments. is that an SQLite db? MSAccess? are u opening a DB viewer? which in turn creates a CSV file with user information from the database (without headers). how does it create the CSV file? does it just all the data ...
by swagfag
15 Jun 2019, 05:36
Forum: Ask For Help
Topic: array descriptions - what's differ
Replies: 30
Views: 701

Re: array descriptions - what's differ

u could start with massively elaborating on: Some of the [CSV] files to be analyzed do not have headers, so they must be added afterwards. For a long time I was thinking how the headings in these cases would be handled. (now and in the future) [not relevant] - The headings must be placed in exactly ...
by swagfag
14 Jun 2019, 16:26
Forum: Ask For Help
Topic: what are codes
Replies: 4
Views: 127

Re: what are codes

its right there on the page i linked
LControl (or LCtrl) Left Control. Corresponds to the <^ hotkey prefix.
if there are problems with the code, show the code
by swagfag
14 Jun 2019, 16:07
Forum: Ask For Help
Topic: what are codes
Replies: 4
Views: 127

Re: what are codes


Go to advanced search