Search found 35 matches

by AllUrBaseRBelong2Us
19 Jun 2016, 22:46
Forum: Ask For Help
Topic: Help with repeating keys for game
Replies: 3
Views: 1002

Re: Help with repeating keys for game

Ctrl + X to start and stop...

Code: Select all

#MaxThreadsPerHotkey 2
$^x::
Toggle := !Toggle

while(Toggle)
{
	
	WinActivate, Mount&Blade Warband
	Send ^x
	
}

Return
by AllUrBaseRBelong2Us
08 Jun 2016, 06:53
Forum: Ask For Help
Topic: Need help with loops
Replies: 1
Views: 612

Re: Need help with loops

You can use the inbuilt var A_Index that exists within every loop

Code: Select all

j::
Loop {
Send, {d Down}
Sleep % A_Index * 1000
Send, {d Up}
}
by AllUrBaseRBelong2Us
04 Jun 2016, 05:49
Forum: Ask For Help
Topic: How to paste the contents of a text (words)in each click instead of pasting every thing at once?
Replies: 4
Views: 1472

Re: How to paste the contents of a text (words)in each click instead of pasting every thing at once?

StringSplit, words, Clipboard, %A_Space% %A_Tab% `n count := 1 ^v:: Send, % words%count% count++ return ^Esc::ExitApp Copy the paragraph or w/e to your clipboard and run the script once. The subsequent pastes (Ctrl + V) will be intercepted by the script and will paste the words. Note that this does...
by AllUrBaseRBelong2Us
04 Jun 2016, 05:32
Forum: Ask For Help
Topic: Problem with RegExMatch...
Replies: 4
Views: 1299

Re: Problem with RegExMatch...

It would help you in your future scripts if you get hold of the differences between traditional and expressional syntaxes. There's this link which explains it quite lucidly http://maul-esel.github.io/ahkbook/en/Variables-functions-commands.html If you still don't get it after going through that, fee...
by AllUrBaseRBelong2Us
01 Jun 2016, 06:16
Forum: Ask For Help
Topic: Name of utilities buttons Topic is solved
Replies: 13
Views: 3712

Re: Name of utilities buttons Topic is solved

F1 is pretty simple:

Code: Select all

F1::DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
F7 might be locking the computer

Code: Select all

DllCall("LockWorkStation")
Not sure about the rest.
by AllUrBaseRBelong2Us
16 Mar 2016, 08:15
Forum: General Discussion
Topic: A Github organisation for ahkscript
Replies: 211
Views: 127687

Re: A Github organisation for ahkscript

Could you add me, please? I've got a few AHK repos on @D4D3VD4V3.
by AllUrBaseRBelong2Us
24 Feb 2016, 05:18
Forum: Tips and Tricks
Topic: Using the Goo.gl API with AHK
Replies: 2
Views: 4205

Using the Goo.gl API with AHK

Here's how to get an API key (required) quickly: Head over to https://console.developers.google.com/home/dashboard and create a new project. Select 'API Manager' from the hamburger menu Hit 'URL Shortener API' under 'Other Popular APIs' Click 'Enable' In 'Credentials' section, click 'Create Credenti...
by AllUrBaseRBelong2Us
20 Feb 2016, 07:10
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4350
Views: 1035302

Re: « What's on your mind? »

Does anyone here use Colemak for touch-typing?
by AllUrBaseRBelong2Us
19 Feb 2016, 09:19
Forum: Ask For Help
Topic: Possible bug(?)
Replies: 2
Views: 849

Re: Possible bug(?)

boiler wrote:Not that this is at the heart of your question, but in the interest of making your workaround more compact, it could be like this:

Code: Select all

!F1::Send ^#{Left}
!F2::Send ^#{Right}
Compact code proposals are always welcome! :D Thanks!
by AllUrBaseRBelong2Us
19 Feb 2016, 08:41
Forum: Ask For Help
Topic: Possible bug(?)
Replies: 2
Views: 849

Possible bug(?)

The other day, I came across a snippet that left me scratching my head... !F1::^#Left !F2::^#Right This is supposed to make switching between virtual desktops in Windows 10 seamless. However, it doesn't work! Here's what worked instead... !F1:: Send ^#{Left} return !F2:: Send ^#{Right} return Does a...
by AllUrBaseRBelong2Us
11 Feb 2016, 09:21
Forum: Ask For Help
Topic: Alt Tab with mouse
Replies: 2
Views: 1184

Re: Alt Tab with mouse

Try this:

Code: Select all

RButton & LButton::AltTab
RButton::RButton
LButton::LButton
return
by AllUrBaseRBelong2Us
27 Jan 2016, 06:17
Forum: Ask For Help
Topic: Start loop at a random A_index
Replies: 2
Views: 819

Re: Start loop at a random A_index

Random, rand, 1, 10000 ;Ten thousand lines? Loop, Read, test.csv { if(A_index==rand) { Loop, parse, A_LoopReadLine, CSV { StringSplit, colon, A_LoopField, :, %A_Tab%%A_Space% MyArray_%A_Index%_1 := colon1 MyArray_%A_Index%_2 := colon2 msgbox % "X is " MyArray_%A_Index%_1 " and Y is " MyArray_%A_Ind...
by AllUrBaseRBelong2Us
15 Jan 2016, 19:23
Forum: Tutorials
Topic: PushBullet & AutoHotkey
Replies: 27
Views: 28125

Re: PushBullet & AutoHotkey

Look at what the Response Body returns when I send invalid params:

Code: Select all

{"error":{"code":"","type":"invalid_request","message":"Failed to decode JSON body.","cat":"(=^‥^=)"}}
I love it when devs sneak in some easter eggs like this. :P
by AllUrBaseRBelong2Us
02 Jan 2016, 12:27
Forum: Ask For Help
Topic: [Solved]A_index issue in nested file reading loop
Replies: 2
Views: 834

Re: A_index issue in nested file reading loop

allthingsarenotequal wrote:'equals' is not valid ahk code, try the = sign if (a_index = count)
Thanks; that was a silly oversight on my part.
by AllUrBaseRBelong2Us
02 Jan 2016, 09:15
Forum: Ask For Help
Topic: [Solved]A_index issue in nested file reading loop
Replies: 2
Views: 834

[Solved]A_index issue in nested file reading loop

Hey guys, what I'm trying to achieve here is this: 1.Read a line from file inp.txt 2.Write the line to file tab.txt 3,Read a line from file out.txt 4.Write the line to file tab.txt in the SAME line 5.and so on keeping in mind the current line... Following code is what I've come up with. Issue is tha...
by AllUrBaseRBelong2Us
26 Nov 2015, 00:20
Forum: Ask For Help
Topic: Issue with ID of a tag in HTML (COM)
Replies: 3
Views: 1070

Re: Issue with ID of a tag in HTML (COM)

Soft wrote:add ' ComObjError(false) ' at the top of your script
I get the same error :/
by AllUrBaseRBelong2Us
25 Nov 2015, 22:50
Forum: Ask For Help
Topic: Issue with ID of a tag in HTML (COM)
Replies: 3
Views: 1070

Issue with ID of a tag in HTML (COM)

Hey guys, here's the code: SetBatchLines, -1 #NoEnv IELoad(wb) { while wb.busy Sleep, 100 } InputBox, YTurl, ,Enter the YouTube URL to get the corresponding MP3 file: WB := ComObjCreate("InternetExplorer.Application") WB.Navigate("www.youtube-mp3.org") <-------Here's the link if you're interested in...
by AllUrBaseRBelong2Us
23 Nov 2015, 07:02
Forum: Ask For Help
Topic: Help with tags in COM
Replies: 3
Views: 1251

Re: Help with tags in COM

@TLM, thanks for being so helpful on IRC :D The script runs brilliantly. I've found out where I was making a mistake
I wrote

Code: Select all

divObj.backgroundimage
instead of

Code: Select all

divObj.style.backgroundimage

Thanks a ton!

PS:You're the best! Have a great day :)
by AllUrBaseRBelong2Us
23 Nov 2015, 05:16
Forum: Ask For Help
Topic: Help with tags in COM
Replies: 3
Views: 1251

Re: Help with tags in COM

You just have to parse the DOM for div elements html = ( <html><head></head> <body> <div class="a class name">foo</div> <div class="some class name" style="background-image:insert random url here">This is what I'm after</div> <div class="another class name">bar</div> </body></html> ) document := Co...
by AllUrBaseRBelong2Us
23 Nov 2015, 04:57
Forum: Ask For Help
Topic: Help with tags in COM
Replies: 3
Views: 1251

Help with tags in COM

Hey there, I'm writing a script to retrieve info from a tag which looks like this <div class="some class name" style="background-image:insert random url here"></div> I'm trying to extract style name/ backgroundimage URL. So, is there any way to extract that info? Just a FYI: I've tried storing the c...

Go to advanced search