@hasantr
Posted this ages ago, I'm glad it's still useful, cheers.
Search found 211 matches
- 21 May 2020, 04:11
- Forum: Scripts and Functions (v1)
- Topic: ScanSubnet() - Fast [WMI] IP Scanner, Ping() [WMI]
- Replies: 4
- Views: 2661
- 30 Dec 2018, 08:20
- Forum: Ask for Help (v1)
- Topic: Simple MCode returns null? [BUMP]*reposted Topic is solved
- Replies: 4
- Views: 1304
Re: Simple MCode returns null? [BUMP]*reposted Topic is solved
I somehow glossed over that, cheers.
- 30 Dec 2018, 00:58
- Forum: Scripts and Functions (v1)
- Topic: GroupAdd, GroupDelete, GroupTranspose
- Replies: 5
- Views: 2734
- 30 Dec 2018, 00:53
- Forum: Ask for Help (v1)
- Topic: Capitalise nth word of string?
- Replies: 9
- Views: 2228
Re: Capitalise nth word of string?
I see a lot of variations, i think this covers them all. str = out of africa is an "africa-themed" movie MsgBox % modifyNthWord(str,6,"U") "`n" . modifyNthWord(str,6,"T") "`n" . modifyNthWord(str,6,"L") modifyNthWord(str, n,doWhatToWord:="U",wordDelim:=" "){ ;doWhatToWord can be U,L or T. i.e Upper,...
- 29 Dec 2018, 15:02
- Forum: Ask for Help (v1)
- Topic: Simple MCode returns null? [BUMP]*reposted Topic is solved
- Replies: 4
- Views: 1304
Re: Simple MCode returns null? [BUMP]*reposted Topic is solved
Yeah it would be good if you read the MCode tutorial I made a while back https://www.autohotkey.com/boards/viewtopic.php?f=7&t=32 It should show you why your code won't work the way you are currently writing it. Also try to check A_LastError. I've read it & yea, i know i need to use pointers for th...
- 29 Dec 2018, 12:27
- Forum: Ask for Help (v1)
- Topic: Simple MCode returns null? [BUMP]*reposted Topic is solved
- Replies: 4
- Views: 1304
Simple MCode returns null? [BUMP]*reposted Topic is solved
OP was 4 days old...hence the repost/bump. It's all in the title, i get the feeling it's something to do with my use of a pointer,because even if i bring up the return to before where there's a pointer it returns null,but returns properly if i comment out the pointer & all below it... using https://...
- 29 Dec 2018, 10:11
- Forum: Scripts and Functions (v1)
- Topic: Internet Explorer: JavaScript examples
- Replies: 22
- Views: 9275
Re: Internet Explorer: JavaScript examples
That's a hell of cheat sheet. Thanks dude.
- 27 Dec 2018, 08:08
- Forum: Scripts and Functions (v1)
- Topic: ScanSubnet() - Fast [WMI] IP Scanner, Ping() [WMI]
- Replies: 4
- Views: 2661
ScanSubnet() - Fast [WMI] IP Scanner, Ping() [WMI]
I needed a script to constantly check for other computers on network for automated throttling of my torrent seedbox, and so... ScanSubnet() - Fast [WMI] IP Scanner ;ScanSubnet() Basically Does what all those IP scanners do,with WMI...Pretty Darn Fast Too,almost as fast as Nmap. Msgbox % ScanSubnet()...
- 27 Dec 2018, 07:55
- Forum: Scripts and Functions (v1)
- Topic: GroupAdd, GroupDelete, GroupTranspose
- Replies: 5
- Views: 2734
Re: GroupAdd, GroupDelete, GroupTranspose
im perplexed as to how there would be less overhead with a plain old list as opposed to implementing it with arrays, considering all the StrSplits(which ironically also happens to do the very thing u sought to avoid, namely, generating arrays) ure doing every time a function is called Thank you for...
- 26 Dec 2018, 03:51
- Forum: Ask for Help (v1)
- Topic: Hold down a key as long as I'm holding down a mouse button Topic is solved
- Replies: 2
- Views: 1295
Re: Hold down a key as long as I'm holding down a mouse button Topic is solved
Code: Select all
MButton::
Send {Shift down}
While GetKeyState(A_ThisHotkey, "P")
Sleep 10
Send {Shift up}
Return
- 25 Dec 2018, 20:08
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 52837
Re: MCode4GCC -- C/C++ to MCode Generator
Yes Please. Thanks.
- 25 Dec 2018, 12:57
- Forum: Ask for Help (v1)
- Topic: How to specify a user agent for browser control?
- Replies: 2
- Views: 1336
Re: How to specify a user agent for browser control?
I don't think you can do that with Internet Explorer/ActiveX Controls,but.... you could do the following below,and update the page with the html retrieved using the method below... To Verify user agent is modified in example below, comment out the line specifying user agent & see what happens. whr :...
- 25 Dec 2018, 12:38
- Forum: Scripts and Functions (v1)
- Topic: GroupAdd, GroupDelete, GroupTranspose
- Replies: 5
- Views: 2734
Re: GroupAdd, GroupDelete, GroupTranspose
im perplexed as to how there would be less overhead with a plain old list as opposed to implementing it with arrays, considering all the StrSplits(which ironically also happens to do the very thing u sought to avoid, namely, generating arrays) ure doing every time a function is called Well, your mo...
- 25 Dec 2018, 03:20
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 52837
Re: MCode4GCC -- C/C++ to MCode Generator
Certainly not, I'd rather it be augmented with a single press 'compile & run' hotkey though... something like 'build & run' in every IDE. It makes for 'not as frustrating' test sessions.
- 24 Dec 2018, 06:05
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 52837
Re: MCode4GCC -- C/C++ to MCode Generator
Hey, I thought i'd maybe suggest you add a 'Compile & Execute Selection' hotkey, should make it easier to test... I just think it's too convenient to have & too trivial not have built in... Here's my mod... at the very end here. Ctrl+E generates MCode, Executes & returns output using defined return ...
- 24 Dec 2018, 05:48
- Forum: Ask for Help (v1)
- Topic: Automating sentenses using loop parse of a text line?
- Replies: 4
- Views: 951
Re: Automating sentenses using loop parse of a text line?
Oh WoW I Had TOTALY MIsread your question, my bad... Ooops, Ignore this.
- 24 Dec 2018, 04:37
- Forum: Ask for Help (v1)
- Topic: How to remove windows from a group?
- Replies: 4
- Views: 1207
Re: How to remove windows from a group?
I couldn't find a way, so i ended up having to do this...
GroupAdd, GroupDelete, GroupTranspose
Cheers.
GroupAdd, GroupDelete, GroupTranspose
Cheers.
- 24 Dec 2018, 04:35
- Forum: Scripts and Functions (v1)
- Topic: GroupAdd, GroupDelete, GroupTranspose
- Replies: 5
- Views: 2734
GroupAdd, GroupDelete, GroupTranspose
I needed a way to create groups i could modify on the fly,and i ended up with this... EDIT1: I had posted a version with a bad GroupDelete() function. EDIT2: refactored some of the functions for less overhead. Courtesy of a well made point by @swagfag. ;Uses a combined list & array Groups index,for ...
- 24 Dec 2018, 01:28
- Forum: Ask for Help (v1)
- Topic: GET value from Webpage to msgbox
- Replies: 4
- Views: 1128
Re: GET value from Webpage to msgbox
jeeswg's Internet Explorer and HTML tutorial pwb := ComObjCreate("InternetExplorer.Application") ;create IE Object pwb.visible:=false ; Set the IE object to visible pwb.Navigate("https://swat4stats.com/player/2018/SpiderMan/54855/coop/") ;Navigate to URL while pwb.busy or pwb.ReadyState != 4 ;Wait ...
- 21 Dec 2018, 11:44
- Forum: Ask for Help (v1)
- Topic: Protecting AHK code against piracy
- Replies: 17
- Views: 11170
Re: Protecting AHK code against piracy
If you wish to protect data in the source,just use MCode,which is a solid but still not bulletproof approach. So obfuscation is actually your best bet,by virtue of few if any having the motivation & desire to go through designer spaghetti code,which obfuscated code basically is. Any advice on where...