Search found 30 matches

by king-of-hearts
17 Jan 2018, 13:57
Forum: Scripts and Functions
Topic: Hot Corners For Windows 10
Replies: 17
Views: 10791

Re: Hot Corners For Windows 10

Cool!
by king-of-hearts
16 Jan 2018, 07:26
Forum: Ask For Help
Topic: I need a way to show the clock when on FullScreen (Not for games, but on Youtube Video Players etc)
Replies: 2
Views: 567

Re: I need a way to show the clock when on FullScreen (Not for games, but on Youtube Video Players etc)

You can trys this one (unfortunally cant test it -working): #SingleInstance, Force #NoEnv ;*[AHK] #Persistent DetectHiddenWindows, on SetTitleMatchMode, 2 SendMode, Input formattime, dait, M/d/yyyy h:mm:ss tt Gui,+AlwaysOnTop gui, add, text, vDayt, % dait gui, show,, clock SetTimer, Update, 500 retu...
by king-of-hearts
12 Jan 2018, 08:16
Forum: Ask For Help
Topic: Word COM Shapes
Replies: 3
Views: 746

Re: Word COM Shapes

This one worked for me:

Code: Select all

#SingleInstance, Force
#NoEnv ;*[AHK]
#Persistent
DetectHiddenWindows, on
SetTitleMatchMode, 2
SendMode, Input

oWord := ComObjActive("Word.Application")
oWord.ActiveDocument.Shapes(1).TextFrame.TextRange.Text := "first line `n second line"
by king-of-hearts
05 Nov 2017, 08:13
Forum: Scripts and Functions
Topic: Spotify PostMessage Library
Replies: 22
Views: 7691

Spotify PostMessage Library

Hello everybody, I was just playing around with 'PostMessage' and found something cool. This commands works in Spotify even when it is Minimized For now it can toggle play, change tracks and other things. I will mess with it later to find other things ; PostMessage, 0x111, 114, 0, , ahk_class Spotif...
by king-of-hearts
03 Nov 2017, 16:02
Forum: Ask For Help
Topic: Making a script Topic is solved
Replies: 2
Views: 638

Re: Making a script Topic is solved

Press:
down to activate it
esc to exit

Code: Select all

down::
loop {
	send, {down}
	sleep, 70
}
return
; -----------------------------------------
esc:: ExitApp
by king-of-hearts
03 Nov 2017, 12:29
Forum: Gaming
Topic: Using AutoHotkey to make Bluestacks fullscreen
Replies: 2
Views: 1250

Re: Using AutoHotkey to make Bluestacks fullscreen

Code: Select all

if winexist("BlueStacks App Player")
	WinMaximize
else
	MsgBox, not found
by king-of-hearts
03 Nov 2017, 12:11
Forum: Ask For Help
Topic: Trouble with While loop
Replies: 1
Views: 533

Re: Trouble with While loop

Code: Select all

s::
	send, z
	loop {
		GetKeyState, state, s  
		if (state == "D") {
			send, vqf
			Sleep, 70
		} else {
			break
		}
	}
	send, zz
return
; -----------------------------------------
esc:: ExitApp
by king-of-hearts
03 Nov 2017, 09:51
Forum: Gaming
Topic: ControlClick in ROBLOX?
Replies: 3
Views: 1472

Re: ControlClick in ROBLOX?

Hey poey27529

I think you can comment this line (WinHide):

Code: Select all

DetectHiddenWindows On
SetControlDelay -1
; WinHide, Roblox  <--- commented
Loop
{
	sleep, 1000
	SetControlDelay -1
	ControlClick, x977 y988, Roblox
}

^p:: Pause
^o:: WinShow, Roblox
by king-of-hearts
03 Nov 2017, 09:25
Forum: Gaming
Topic: How do I autospam a key except when ctrl is held down? Topic is solved
Replies: 4
Views: 908

Re: How do I autospam a key except when ctrl is held down? Topic is solved

You can try this one:

Code: Select all

loop {
	GetKeyState, state, Ctrl
	if (state == "U")
		Send, 2
		sleep, 70
}
; -------------------------
esc:: ExitApp 
by king-of-hearts
03 Nov 2017, 08:30
Forum: Gaming
Topic: Clicking moving object.
Replies: 3
Views: 1052

Re: Clicking moving object.

Try pressing windows + f with the following code: esc:: ExitApp #f:: Text:="|<>*182$20.zTzyVzzUNrkyBs1tC48NV6Gs6sq3i9U71w1kztzlzzkUTsT1aDcRXw71zU0Tw6DzVrzsTzzVzs" if ok:=FindText(1178,520,150000,150000,0,0,Text) { CoordMode, Mouse X:=ok.1.1, Y:=ok.1.2, W:=ok.1.3, H:=ok.1.4, Comment:=ok.1.5 MouseMove...
by king-of-hearts
29 Oct 2017, 15:45
Forum: Ask For Help
Topic: String/array automatisation question Topic is solved
Replies: 1
Views: 614

Re: String/array automatisation question Topic is solved

Code: Select all

var1 := 1
var2 := 3
var3 := 9
var4 := 18
var5 := 36

loop, 110 {
	p := A_index - 1
	d%A_index% := var%A_index% - var%p%
}

by king-of-hearts
28 Oct 2017, 13:01
Forum: Ask For Help
Topic: How to stick an image of a particular area of excel sheet on a fixed region of screen?
Replies: 20
Views: 2734

Re: How to stick an image of a particular area of excel sheet on a fixed region of screen? NOT YET SOLVED PLEASE HELP !!

hello,
why not set this specific workbook as always on top, I think it can solve your problem (then you can hide to toolbar and sheet bar to make it `clean`)

Greetings/
by king-of-hearts
28 Oct 2017, 09:45
Forum: Ask For Help
Topic: Finding a specific word in Clipboard
Replies: 2
Views: 593

Re: Finding a specific word in Clipboard

Checkout InStr documentation: https://autohotkey.com/docs/commands/InStr.htm

Code: Select all

clip := clipboard

if InStr(clip, "england", false, 1)
	MsgBox, Found
else
	MsgBox, Not Found
return
	
esc:: ExitApp,
by king-of-hearts
26 Oct 2017, 18:35
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2981

Re: Run script that opens word - if I run another script (10 different) end it

I would join all the ahk scripts file into one simple file.

Then I would refactor the 'hamburguer code' to make ir reliable;

If you need help post your script!
by king-of-hearts
26 Oct 2017, 18:31
Forum: Ask For Help
Topic: Compare two variables with one being part of the other
Replies: 4
Views: 834

Re: Compare two variables with one being part of the other

String concatenation: https://autohotkey.com/docs/Variables.htm#Variables ; ---------------------------- var1 := "Green Box" var3 := "plus random words" var2 := "Green Box" . var3 ; ---------------------------- If (var1 = "Green Box") ; DO A if (var2 = "Green Box" . var3) ; <--- attention for the '....
by king-of-hearts
26 Oct 2017, 13:11
Forum: Ask For Help
Topic: Shortage for few auto excel operations ?
Replies: 7
Views: 2096

Re: Shortage for few auto excel operations ?

Hmm, in mine this works fine (the code executes the last active Excel file and selects the cells from the first sheet!)


I just put this on column B:

Code: Select all

http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com
http://www.google.com
by king-of-hearts
26 Oct 2017, 12:10
Forum: Ask For Help
Topic: Run script that opens word - if I run another script (10 different) end it
Replies: 18
Views: 2981

Re: Run script that opens word - if I run another script (10 different) end it

About the templates, what about harcoding the word file name inside the 'if', like:

Code: Select all

WinWaitActive, *Specific File Name*
 ; * do some action
by king-of-hearts
26 Oct 2017, 11:40
Forum: Ask For Help
Topic: Shortage for few auto excel operations ?
Replies: 7
Views: 2096

Re: Shortage for few auto excel operations ?

You should put this code inside an AHK Script then run.

There's a tutorial how to do it: https://autohotkey.com/docs/Tutorial.htm
by king-of-hearts
26 Oct 2017, 11:32
Forum: Ask For Help
Topic: Copy IF script
Replies: 3
Views: 558

Re: Copy IF script

Dude... are you trying to hijack someone?
by king-of-hearts
26 Oct 2017, 10:06
Forum: Ask For Help
Topic: Shortage for few auto excel operations ?
Replies: 7
Views: 2096

Re: Shortage for few auto excel operations ?

First, open the Excel with the links.

Here the code:

Code: Select all

xls := ComObjActive("Excel.Application")
for cell in xls.activeworkbook.sheets(1).range("b1:b20")
	Run, % cell.value
return

Go to advanced search