Search found 40 matches

by Wicked
13 Dec 2018, 00:07
Forum: Ask For Help
Topic: ELI5: ComObj - GUIDs - Etc
Replies: 3
Views: 176

Re: ELI5: ComObj - GUIDs - Etc

Thank you, guys! This was very helpful!
by Wicked
12 Dec 2018, 18:13
Forum: Ask For Help
Topic: how to repeat Control +
Replies: 3
Views: 114

Re: how to repeat Control +

Code: Select all

Loop, 2
    Send, {ctrl down}{+}{ctrl up}

Code: Select all

Send, {ctrl down}{+}{ctrl up}{ctrl down}{+}{ctrl up}
by Wicked
12 Dec 2018, 17:09
Forum: Ask For Help
Topic: ELI5: ComObj - GUIDs - Etc
Replies: 3
Views: 176

ELI5: ComObj - GUIDs - Etc

Hi guys, I've been trying to get back into AHK (been a looong time) and have come across something that I need explained. I'm having a hard time wrapping my head around things like ComObjQuery, GUIDs, and the like. Let's take my post here for reference. WM_KEYDOWN(wParam, lParam, Message, Handle) { ...
by Wicked
10 Dec 2018, 19:05
Forum: Scripts and Functions
Topic: [AHK v2] Shell.Explorer - Enter / Tab / Etc - No Globals - Multiple Controls
Replies: 2
Views: 394

Re: [AHK v2] Shell.Explorer - Enter / Tab / Etc - No Globals

kczx3 wrote:
08 Dec 2018, 21:26
👍🏻 Glad you figured it out!
I didn't realize AHK v2 got rid of A_GuiX and A_GuiY until I read the changelog. That clued me in. :-P.
by Wicked
10 Dec 2018, 19:01
Forum: Ask For Help
Topic: Protecting AHK code against piracy
Replies: 16
Views: 714

Re: Protecting AHK code against piracy

As for viewing, there's obfuscators on these forums somewhere.
by Wicked
10 Dec 2018, 18:58
Forum: Ask For Help
Topic: YES or NO button
Replies: 3
Views: 141

Re: YES or NO button

https://www.autohotkey.com/docs/commands/Gui.htm#label

Code: Select all

Gui, Add, Radio, gSome_Label, Yes
;...
Some_Label:
    MsgBox
Return
by Wicked
08 Dec 2018, 06:14
Forum: Scripts and Functions
Topic: [AHK v2] Shell.Explorer - Enter / Tab / Etc - No Globals - Multiple Controls
Replies: 2
Views: 394

[AHK v2] Shell.Explorer - Enter / Tab / Etc - No Globals - Multiple Controls

Hi, guys. In short, you can now have multiple Shell.Explorers. No global variables needed. You'll be able to send special keys, such as Ctrl combinations, Enter, F keys, Tab, etc. It's based off of the code found in Installer.ahk . I haven't seen the equivalent for AHK v2 - and haven't found one at ...
by Wicked
03 Dec 2018, 23:21
Forum: Ask For Help
Topic: Embedded Internet Explorer - Mouse Events Topic is solved
Replies: 2
Views: 169

Re: Embedded Internet Explorer - Mouse Events Topic is solved

kczx3 wrote:
03 Dec 2018, 20:37
You need to add the meta tag for X-UA-Compatible.
I love you! Thanks you so much!
by Wicked
03 Dec 2018, 04:12
Forum: Ask For Help
Topic: Embedded Internet Explorer - Mouse Events Topic is solved
Replies: 2
Views: 169

Embedded Internet Explorer - Mouse Events Topic is solved

Hi, guys! Edit: After looking into it, it doesn't seem it does any hover, regardless of transitions. Like the Shell.Explorer doesn't receive any mouse events. I haven't used AHK in... ages... and I'm confused. I'm using a PC with IE11 - this supports CSS transitions. However, if I create a GUI, add ...
by Wicked
17 Nov 2018, 20:14
Forum: Scripts and Functions
Topic: [Library] Spotify.ahk - Spotify API Wrapper/Global Hotkeys For Spotify
Replies: 3
Views: 837

Re: [Library] Spotify.ahk - Spotify API Wrapper/Global Hotkeys For Spotify

How has this not had any traction? Thought you might find this handy. Makes GetCurrentPlaybackInfo() a piece of cake. Add the following to your Example_Hotkeys.ahk F5:: CPI := jsonAHK(spoofy.Player.GetCurrentPlaybackInfo()) MsgBox, % "Artist:`t`t" . CPI.item.album.artists.0.name . "`n" . "Album:`t`t...
by Wicked
23 Jan 2018, 16:50
Forum: AutoHotkey v2 Development
Topic: If X In List
Replies: 1
Views: 272

If X In List

Hi guys!

Trying to pick up V2. Is there a new way of doing If Var In First,Second,Third with V2? I mean, I could split them into different If (Var = "First" || Var = "Second" || Var = "Third") but is that my only option?

Thanks, y'all!
by Wicked
17 Jan 2018, 16:12
Forum: AutoHotkey v2 Development
Topic: Documentation Won't Open
Replies: 2
Views: 442

Documentation Won't Open

Is anyone else having issues with the AutoHotkey.chm not opening properly? All I get is an empty window with a menu bar.

Thanks!
by Wicked
17 Nov 2017, 15:30
Forum: Ask For Help
Topic: IWinHttpRequest::Open Method Successful?
Replies: 1
Views: 157

IWinHttpRequest::Open Method Successful?

Hi everybody. Long time. I'll keep it short: _download_to_var(url){ req:=comobjcreate("WinHttp.WinHttpRequest.5.1") ;~ https://msdn.microsoft.com/en-us/library/windows/desktop/aa383989(v=vs.85).aspx req.open("GET",url) ;~ <= Returns nothing, every time, regardless if url is resolved... req.send() ;~...
by Wicked
08 Aug 2016, 14:52
Forum: Ask For Help
Topic: Dealing with RegEx Topic is solved
Replies: 3
Views: 467

Re: Dealing with RegEx Topic is solved

Or the non-regex approach (assuming the format you provided will remain the same for all entries): SetBatchLines, -1 Global Phone_Numbers := "+1(222)312-21-49 John Doe" . "`n+2(912)672-21-43 Mary Jane" . "`n+6(280)512-89-41 Peter Smith" . "`n+8(291)912-21-42 Andrew Irons" Gui, Add,Edit,w400 h20 gSea...
by Wicked
26 Jul 2016, 16:23
Forum: Ask For Help
Topic: same ID, different WinGeTitle
Replies: 2
Views: 333

Re: same ID, different WinGeTitle

I tried to understand what you meant - does this help?
https://autohotkey.com/docs/commands/Se ... chMode.htm
by Wicked
25 Jul 2016, 19:41
Forum: Ask For Help
Topic: Word Com Object, how to check if file is locked without prompt?
Replies: 2
Views: 388

Re: Word Com Object, how to check if file is locked without prompt?

Have you tried putting in inside Try?

Code: Select all

Try
	;~ Open file
Catch
	MsgBox, Failed to open!
Could also use COMObjError(False).
by Wicked
25 Jul 2016, 16:03
Forum: Ask For Help
Topic: Need help with simple loop Topic is solved
Replies: 8
Views: 579

Re: Need help with simple loop Topic is solved

Code: Select all

$f::
	Some_String := "abc"
	While GetKeyState("F1", "P")
		Send, % SubStr(Some_String, Mod(A_Index, StrLen(Some_String)))
Return
Spoiler
Good?
by Wicked
25 Jul 2016, 12:22
Forum: Ask For Help
Topic: Number to message
Replies: 4
Views: 337

Re: Number to message

That's strange. Mine works fine so I'm not able to debug it, sorry. :(.
by Wicked
22 Jul 2016, 17:49
Forum: Ask For Help
Topic: Number to message
Replies: 4
Views: 337

Re: Number to message

Code: Select all

$1::
	If (A_PriorHotkey == A_ThisHotkey && A_TimeSincePriorHotkey < 500) {
		SetTimer, Type_1, Off
		SendInput, Hello world
	}
	Else
		SetTimer, Type_1, 500
Return

Type_1:
	SetTimer, Type_1, Off
	SendInput, 1
Return
Good?
by Wicked
22 Jul 2016, 17:39
Forum: Ask For Help
Topic: Clipboard If Else Statement Using Variables w/o clearing clipboard first Topic is solved
Replies: 9
Views: 1189

Re: Clipboard If Else Statement Using Variables w/o clearing clipboard first Topic is solved

I don't see why you can't just use Clipboard itself:

Code: Select all

If InStr(Clipboard, "Apple")
	MsgBox, Apple
Else If InStr(Clipboard, "Carrot")
	MsgBox, Carrot
Else
	MsgBox, Something else
Return
The Instr(), just in-case the Clipboard isn't exactly "apple".

Go to advanced search