Search found 520 matches
- 27 Oct 2014, 09:58
- Forum: Ask for Help (v1)
- Topic: Change username to variable
- Replies: 27
- Views: 8867
Re: Change username to variable
That page indicates that you have copied the HTML to the Clipboard, but let's take a look at your actual code flow: #SingleInstance force Iniread, pathtofolder, folder.ini, filepath, folder #a:: clipboard = ; Clipboard is blank Send, {F6} Send ^c ; URL is copied to the Clipboard StringReplace, clipb...
- 26 Oct 2014, 18:40
- Forum: Ask for Help (v1)
- Topic: Change username to variable
- Replies: 27
- Views: 8867
Re: Change username to variable
I just deleted my previous post, because it is not clear from your code how you are getting the HTML into a variable so that RegExMatch() can evaluate it. I checked over your previous posts to see if this information was clear in your code, and it is not. How are you getting the HTML?
- 26 Oct 2014, 18:24
- Forum: Ask for Help (v1)
- Topic: Change username to variable
- Replies: 27
- Views: 8867
Re: Change username to variable
Post your code, please.
- 26 Oct 2014, 18:02
- Forum: Ask for Help (v1)
- Topic: Change username to variable
- Replies: 27
- Views: 8867
Re: Change username to variable
If the username is not allowed to have an open chevron, then all you need to do with RegExMatch() is match the leading span tag and anything after it that is not a chevron: block= ( <div style="text-align: center;"> <a id="sf-userinfo-outer" href="https://aehs.sofurry.com/"> <img src="https://www.so...
- 26 Oct 2014, 00:10
- Forum: AutoHotkey Development
- Topic: StrLower / StrUpper / StrTitleCase?
- Replies: 21
- Views: 12226
Re: StrLower / StrUpper / StrTitleCase?
StrCase() . I don't see any reason for there to be multiple functions since they are all distinctions within the same category. In addition, the "U|L|T" parameter will also offer (somewhat of) a consistency to the use of the same in the Replacement parameter of RegExReplace() . But is the Str prefi...
- 23 Oct 2014, 11:18
- Forum: Ask for Help (v1)
- Topic: [SOLVED]Sorting a Simple String
- Replies: 5
- Views: 2076
Re: [SOLVED]Sorting a Simple String
Basically the same as AlphaBravo's solution minus the parsing loops:
Code: Select all
string := "cb3d421a"
string := RegExReplace(string,"\w(?=\w)","$0,")
Sort, string, D,
MsgBox % RegExReplace(RegExReplace(string,","),"^(\d+)(\D+)$", "$2$1")
- 22 Sep 2014, 08:37
- Forum: Ask for Help (v1)
- Topic: removing duplicates from two separate strings
- Replies: 8
- Views: 2513
Re: removing duplicates from two separate strings
If you're on the latest version: listingA = cat|dog|fish|rabbit| listingB = bee|cat|dog|gorilla| For i, item in StrSplit(SubStr(listingA,1,StrLen(listingA)-1),"|") ; removes trailing pipe from string and splits into array if !RegExMatch(listingB,"\b" item "\b") ; if the whole word/phrase is not in t...
- 11 Sep 2014, 23:01
- Forum: Ask for Help (v1)
- Topic: Why MaxIndex() is not working?
- Replies: 5
- Views: 3065
Re: Why MaxIndex() is not working?
AFAIK you can't utilize MaxIndex() when you're not using an object with only integer keys. I might be behind on that.
- 29 Apr 2014, 14:40
- Forum: Off-topic Discussion
- Topic: RegEx Tutorial on ahkscript.org?
- Replies: 3
- Views: 2950
Re: RegEx Tutorial on ahkscript.org?
My apologies, it was my intention to move the tutorial here, but translating the code of my posts from the "upgraded" forum back to this forum was quite the undertaking and with my work obligations I simply didn't have the time to do it. Hopefully I'll hit a clearing soon and I can start pushing tho...
- 27 Jan 2014, 17:36
- Forum: Ask for Help (v1)
- Topic: script to remove 1 extra blank line?
- Replies: 5
- Views: 1629
Re: script to remove 1 extra blank line?
Like this?
Code: Select all
list=
(
line 1
line 2
line 3
line 4
line 5
line 6
)
MsgBox % RegExReplace(list,"\v+","`n`n")
- 27 Jan 2014, 09:36
- Forum: Other Programming Languages
- Topic: Help with regex
- Replies: 2
- Views: 2794
Re: Help with regex
Sounds like you need to deploy word boundaries:
Code: Select all
list=vojet,ojet,vojel,ojel,ojeli,dojel,dojeli,tojetvoje,tvoje
Loop, parse, list, `,
if RegExMatch(A_LoopField,"\bv?oje(?:t|li?)\b")
MsgBox, %A_LoopField% is naughty naughty!
return
- 30 Nov 2013, 03:55
- Forum: Ask for Help (v1)
- Topic: Optimizing several IF statements using arrays, other tricks
- Replies: 13
- Views: 5053
Re: Optimizing several IF statements using arrays, other tri
If you're interested in a method condensing the ifs with an object:
Code: Select all
title=peaches
if !{apples:1,oranges:1,pears:1,limes:1,grapes:1,plums:1,bananas:1}[title]
MsgBox, Nope!
else MsgBox, Yep!
return
- 07 Nov 2013, 17:12
- Forum: Ask for Help (v1)
- Topic: Selecting items randoms from a list
- Replies: 12
- Views: 6226
Re: Selecting items randoms from a list
For the OP:
Code: Select all
total := 30, nUp := 6
, n := numbers := ""
Loop
n .= A_Index ","
Until (A_Index=total)
Total := SubStr(Total,1,StrLen(Total)-1)
Sort, n, Random D`,
Loop, parse, n, `,
numbers .= A_LoopField ","
Until (A_Index=nUp)
numbers := SubStr(numbers,1,StrLen(numbers)-1)
MsgBox %numbers%
- 23 Oct 2013, 06:28
- Forum: Ask for Help (v1)
- Topic: controlsend "ALT" to Excel 2010 not work
- Replies: 3
- Views: 3050
Re: controlsend "ALT" to Excel 2010 not work
The shortcut sequence autofits a particular column based on the cell in that column that has the border around it (or the active cell), hence xl.ActiveCell.Columns.AutoFit . xl.Columns.AutoFit autofits the columns based on the largest cell in each column. As long as one of those solutions works for ...
- 22 Oct 2013, 11:20
- Forum: Ask for Help (v1)
- Topic: controlsend "ALT" to Excel 2010 not work
- Replies: 3
- Views: 3050
Re: controlsend "ALT" to Excel 2010 not work
You could always use a COM method:
EDIT: As COM solutions go, this actually replicates the effect of the shortcut sequence:
Code: Select all
xl := ComObj("Excel.Application")
xl.SendKeys("%",True)
Sleep, 100
xl.SendKeys("oca",True)
Code: Select all
xl := ComObj("Excel.Application")
xl.ActiveCell.Columns.AutoFit
- 17 Oct 2013, 23:07
- Forum: About This Community
- Topic: AHK(v2) rebranding [Name Suggestions]
- Replies: 120
- Views: 68762
Re: AHK(v2) rebranding [Name Suggestions]
If you're willing to go with AHS, why not Ace?
- 17 Oct 2013, 22:41
- Forum: Announcements
- Topic: Permanent Domain
- Replies: 183
- Views: 157738
Re: Permanent Domain
Since it's still AutoHotkey we're talking about, shouldn't that be mentioned in the page title?
Instead of "ahkscript.org" in the header, "AutoHotkey @ ahkscript.org," for example?
Instead of "ahkscript.org" in the header, "AutoHotkey @ ahkscript.org," for example?
- 17 Oct 2013, 08:10
- Forum: Wish List
- Topic: Help on PHPBB/Forum Software
- Replies: 19
- Views: 8234
Re: Help on PHPBB/Forum Software
Isn't there already a page for that?hoppfrosch wrote:Wouldn't it make sense to offer a static page, providing some basic help on "Howto use PHPBB and currently installed PHPBB-Addons to write a well formated forum entry"?
- 17 Oct 2013, 08:08
- Forum: Forum Issues
- Topic: [Forum] Log in cookies (or something)
- Replies: 23
- Views: 10251
Re: [Forum] Log in cookies (or something)
Don't know if it's related, but every time I click on smorgasborg's link in this thread, I am logged out.
- 17 Oct 2013, 07:42
- Forum: Ask for Help (v1)
- Topic: while copy pasting "(" and ")" changes to something else
- Replies: 4
- Views: 2669
Re: while copy pasting "(" and ")" changes to something else
Which post specifically is experiencing this?