Search found 891 matches

by AHKStudent
24 Sep 2020, 06:08
Forum: Ask For Help
Topic: FileAppend for Creating CSVs, Quotes and Commas?
Replies: 9
Views: 435

Re: FileAppend for Creating CSVs, Quotes and Commas?

this was always an issue for me when the actual text contains a comma, I used | etc but always sacrificed something else
by AHKStudent
20 Sep 2020, 06:32
Forum: Gaming
Topic: Trying to convert a List
Replies: 11
Views: 256

Re: Trying to convert a List

This is one way to do it List1 = Apple|People|Unity|Music|RPGMaker|Car|UnrealEngine|Movie msgbox, 4096, List1, %List1% List2= ( Apple = ;stuff for the script People = ;other stuff for the script Unity = -screen-width 3440 -screen-height 1440 Music = ;stuff for the script RPGMaker = "NormalPlay" "Sho...
by AHKStudent
19 Sep 2020, 16:28
Forum: Ask For Help
Topic: Why this Progress bar doesn't move? Topic is solved
Replies: 5
Views: 58

Re: Why this Progress bar doesn't move? Topic is solved

Code: Select all

GuiControl,Bsod:, MyProgressBar, +1
by AHKStudent
17 Sep 2020, 09:47
Forum: Ask For Help
Topic: Send random txt message from a .txt file when i press a key Topic is solved
Replies: 5
Views: 79

Re: Send random txt message from a .txt file when i press a key Topic is solved

this uses a text file

Code: Select all

if !FileExist("abctest.txt")
{
	FileAppend, the quick lazy`ndog jumped over`nthe red crazy fox`nnext to the river,abctest.txt
}
FileRead, x, abctest.txt
loop, parse, x, `n
	lns := A_Index
random, y, 1, % lns
FileReadLine, v, abctest.txt, % y
msgbox, % v
ExitApp
by AHKStudent
16 Sep 2020, 06:06
Forum: Ask For Help
Topic: Help with Sean's AES Encryption/Decryption
Replies: 5
Views: 278

Re: Help with Sean's AES Encryption/Decryption

jNizM wrote:
16 Sep 2020, 06:01
File Encryption / Decryption will be possible after my vacation in 1 or 2 weeks ;)
Look forward seeing it, enjoy the vacation and stay safe :thumbup:
by AHKStudent
05 Sep 2020, 14:06
Forum: Ask For Help
Topic: How to get this JSON data
Replies: 2
Views: 128

How to get this JSON data

I want to get the domains, for example the first is ftrertre I am including the exact data format that is returned o = ( [ { "domain": "ftrertre" }, { "domain": "rer" }, { "domain": "hkjhkh" }, { "domain": "bmgm" }, { "domain": "wsfg" }, { "domain": "iuyhrtr" }, { "domain": "uytnjtf" } ] ) obj := Js...
by AHKStudent
28 Aug 2020, 02:20
Forum: Ask For Help
Topic: Trouble in populating a drop down list in gui. Topic is solved
Replies: 6
Views: 84

Re: Trouble in populating a drop down list in gui. Topic is solved

side note, arrays in AHK start at 1

lst := ar[1]
by AHKStudent
21 Aug 2020, 05:33
Forum: Ask For Help
Topic: How to replicate the system boot time command Topic is solved
Replies: 4
Views: 106

How to replicate the system boot time command Topic is solved

Is there a way to replicate the results of this:

C:\windows\system32>systeminfo | find "System Boot Time"
System Boot Time: 8/18/2020, 6:39:24 AM

I looked at the built in variable list but didnt find anything.
by AHKStudent
09 Aug 2020, 18:48
Forum: Ask For Help
Topic: Trying to get the url links from a page but having no luck Topic is solved
Replies: 5
Views: 1891

Re: Trying to get the url links from a page but having no luck Topic is solved

document.querySelectorAll('a.results[href^="/contact/"]') then access the .href property thanks you gregster and Chunjee here is some code, should have posted code earlier Thank you. Here is the problem I am dealing with now. Now all records have a contact button (example, the second record on that...
by AHKStudent
09 Aug 2020, 10:23
Forum: Ask For Help
Topic: Trying to get the url links from a page but having no luck Topic is solved
Replies: 5
Views: 1891

Trying to get the url links from a page but having no luck Topic is solved

If you look at this page you will see "contact" buttons I have the code to the data from each listing but the part that I need the contact button URL im not succeeding This is the url (broken up) https://interva rsity.org/chapters?state=GA What I tried: The main class that holds all the 25 records i...
by AHKStudent
08 Aug 2020, 12:28
Forum: Ask For Help
Topic: Why this string compare doesn't work Topic is solved
Replies: 2
Views: 1103

Re: Why this string compare doesn't work Topic is solved

gregster wrote:
08 Aug 2020, 12:02
why is this msgbox showing if it does = xyz
You are using or (||) - so (test != "fff") will evaluate to true, if var is xyz, because it's not fff.
Because you use or, that's enough to make the whole expression true.
thanks I changed it to &&
by AHKStudent
08 Aug 2020, 11:55
Forum: Ask For Help
Topic: Why this string compare doesn't work Topic is solved
Replies: 2
Views: 1103

Why this string compare doesn't work Topic is solved

Code: Select all

var := "today-xyz"
test := strsplit(var, "-").2 
;msgbox, % test
if (test != "xyz") || (test != "fff")
{
	MsgBox, xyz ; why is this msgbox showing if it does = xyz
}
else
{
msgbox, ignore
}

ExitApp
by AHKStudent
30 Jul 2020, 09:15
Forum: Ask For Help
Topic: Sort listview problems when column is dollar values
Replies: 7
Views: 1967

Re: Sort listview problems when column is dollar values

Use SortDesc every other time, like this: #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% amounts = ( $234 $1,238 $156 $42 $3,545 $9,652 ) Gui Color, White Gui Add, ListView, x19 y13 w239 h163 gMyListView, Amounts|Sorter loop, parse, amounts, `n { sorter := RegExReplace(a_loopfield, "[$,]"...
by AHKStudent
30 Jul 2020, 08:35
Forum: Ask For Help
Topic: Sort listview problems when column is dollar values
Replies: 7
Views: 1967

Re: Sort listview problems when column is dollar values

ill have to upgrade ahk to test that, for now ill just use this from your script RegExReplace(str, "[$,]") + 0 to turn the numbers into regular numbers and i make the column int thank you As I mentioned, you can do that in a hidden column so that you can still have the dollars and commas in the dis...
by AHKStudent
30 Jul 2020, 07:53
Forum: Ask For Help
Topic: Sort listview problems when column is dollar values
Replies: 7
Views: 1967

Re: Sort listview problems when column is dollar values

just send the lvm sort item sex message, my favorite one #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% amounts = ( $234 $1,238 $156 $42 $3,545 $9,652 ) Gui Color, White Gui Add, ListView, x19 y13 w239 h163 gLvActions HwndhwndLv, Amounts loop, parse, amounts, `n { lv_add("",a_loopfield) }...
by AHKStudent
30 Jul 2020, 02:41
Forum: Ask For Help
Topic: Sort listview problems when column is dollar values
Replies: 7
Views: 1967

Sort listview problems when column is dollar values

I put together a sample, how do you guys sort these without removing the $ and , ? #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% amounts = ( $234 $1,238 $156 $42 $3,545 $9,652 ) Gui Color, White Gui Add, ListView, x19 y13 w239 h163, Amounts loop, parse, amounts, `n { lv_add("",a_loopfield...
by AHKStudent
29 Jul 2020, 04:26
Forum: Ask For Help
Topic: Captcha problem in Chrome
Replies: 5
Views: 2183

Re: Captcha problem in Chrome

The script is a couple hundred lines in four files and is not specific to a single site, so I did some experimentation in order to answer your question. I found that the problem exists outside of AHK, when the site is not being accessed via any script, but just manually. I tested the following thre...
by AHKStudent
27 Jul 2020, 23:05
Forum: Ask For Help
Topic: Make a sound in case of consecutive errors
Replies: 2
Views: 1570

Re: Make a sound in case of consecutive errors

example with one image (did not test) ignore the bad formatting of the code ^':: stop = 0 ErrorCounter = 0 Loop { If stop = 1 Break ToolTip, %A_Index% sleep, 1000 ImageSearch, Im1X, Im1Y, 1333,0, 1919, 170, "ImageFile1" if ErrorLevel = 0 { ErrorCounter-- Click %Im1X% %Im1Y% sleep, 2000 } else { if (...

Go to advanced search