Search found 224 matches

by Cuadrix
20 Mar 2018, 19:31
Forum: Ask For Help
Topic: Button on second click
Replies: 7
Views: 1072

Re: Button on second click

Something like this?

Code: Select all

lastShift := 0

$c::
if ((A_TickCount - lastShift) <= 250)
	SendInput, p
else
	SendInput, c
lastShift := A_TickCount
return
by Cuadrix
18 Mar 2018, 18:30
Forum: Ask For Help
Topic: Mute/disable all sounds on Active X GUI? Topic is solved
Replies: 2
Views: 527

Re: Mute/disable all sounds on Active X GUI? Topic is solved

I don't really mind disabling the sounds from my script all together, so this should do the job for now.
Thank you.
by Cuadrix
18 Mar 2018, 01:21
Forum: Ask For Help
Topic: Mute/disable all sounds on Active X GUI? Topic is solved
Replies: 2
Views: 527

Mute/disable all sounds on Active X GUI? Topic is solved

Would it be possible to disable all sounds in an Active X GUI without it affecting the systems sound level? I have searched both the old and the current forum(s), and it looks like a have hit hard wall... Something like this: Gui, Add, ActiveX, h400 w600 DISABLE SOUND vWB, Shell.Explorer Or maybe a ...
by Cuadrix
17 Mar 2018, 16:17
Forum: Ask For Help
Topic: Ahk + IniRead Topic is solved
Replies: 3
Views: 511

Re: Ahk + IniRead Topic is solved

To do that, you can use InStr(), like this:

Code: Select all

IniRead, TestName, Names.ini, Users
InputBox, UserName, Enter a name:, What is your name?

If InStr(TestName, UserName)
{
	FileAppend, [Username]`n%UserName%, %UserName%.ini
}
by Cuadrix
17 Mar 2018, 15:41
Forum: Ask For Help
Topic: Change Keyboard Language Layout When Using MathType
Replies: 2
Views: 847

Re: Change Keyboard Language Layout When Using MathType

Assuming your window title is called MathType en := DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1) Window := "MathType" ;Window title inside quotes " " Start: WinWaitActive, %Window% PostMessage 0x50, 0, %en%,, %Window% Goto Start You could also use Win + Space to accomplish this, but i ...
by Cuadrix
15 Mar 2018, 06:03
Forum: Offtopic
Topic: Rest in peace, Stephen Hawking
Replies: 5
Views: 1604

Re: Rest in peace, Stephen Hawkings

And yes, there must be a God bc of Stephen's timing
Naah...
by Cuadrix
14 Mar 2018, 16:06
Forum: Ask For Help
Topic: How to break out of loop immediately upon GUI button press? Topic is solved
Replies: 3
Views: 657

Re: How to break out of loop immediately upon GUI button press? Topic is solved

Not really. The goal is to make the script not reload, if possible. The closest I have come to what I am asking for is this, but it doesn't look very nice, and it takes up more time with those added If and else checks: Gui, Add, Button, x50 y50 w50 h20 gStart, Start Gui, Add, Button, x+15 y50 w50 h2...
by Cuadrix
14 Mar 2018, 15:02
Forum: Ask For Help
Topic: How to break out of loop immediately upon GUI button press? Topic is solved
Replies: 3
Views: 657

How to break out of loop immediately upon GUI button press? Topic is solved

Just like the subject title says. I have a simple GUI with 2 buttons, Start and Stop. When I press the Start button, the loop will begin. When i press the Stop Button, it should immediately break out of the loop, and not wait till the current iteration is over or wait till it meets the Break command...
by Cuadrix
14 Mar 2018, 04:15
Forum: Offtopic
Topic: Rest in peace, Stephen Hawking
Replies: 5
Views: 1604

Rest in peace, Stephen Hawking

https://www.theguardian.com/science/201 ... es-aged-76
You were a smart man. Sad to see you go...
by Cuadrix
10 Mar 2018, 20:24
Forum: Ask For Help
Topic: How to StringSplit multiple lines and assign variable for strings? (Help) Topic is solved
Replies: 11
Views: 2156

Re: How to StringSplit multiple lines and assign variable for strings? (Help) Topic is solved

Never mind. I figured where I made a mistake. Instead of placing lineIndex := 1 before the hotkey F1, I placed it after the hotkey inside the hotkey script, which I shouldn't have done. It works like a charm now. here is the code: fileData = ( horse:1234 dog:9912 cat:8136 bear:0075 ) lineIndex := 1 ...
by Cuadrix
10 Mar 2018, 20:04
Forum: Ask For Help
Topic: How to StringSplit multiple lines and assign variable for strings? (Help) Topic is solved
Replies: 11
Views: 2156

Re: How to StringSplit multiple lines and assign variable for strings? (Help) Topic is solved

The break lineIndex++ are there because I want it to move to the next line only after pressing F1 key. I am pretty sure that is not the problem tho
by Cuadrix
10 Mar 2018, 19:46
Forum: Ask For Help
Topic: How to StringSplit multiple lines and assign variable for strings? (Help) Topic is solved
Replies: 11
Views: 2156

How to StringSplit multiple lines and assign variable for strings? (Help) Topic is solved

Hey. I Would like to read the variable fileData 's lines one by one, and at the same time split the current string and assign to variables. The strings in each line are in this format xxx:yyy I was able to string split the very first line and assign it to variables, but for some reason the script do...
by Cuadrix
09 Dec 2017, 22:50
Forum: Ask For Help
Topic: [HELP] Remapping ESC to RButton for use in MEmu android emulator. Topic is solved
Replies: 1
Views: 583

[HELP] Remapping ESC to RButton for use in MEmu android emulator. Topic is solved

I am using MEmu emulator to play a FPS game, and I have mapped all the keys necessary to make the game playable in PC using MEmu's internal keymapping. The problem I have is that the crosshair can only be activated/deactivated using the right mouse button, which I want to change to the ESC key. I ha...
by Cuadrix
06 Nov 2017, 07:46
Forum: Offtopic
Topic: AHKathon! [AHK Hackathon] 12/17
Replies: 80
Views: 21761

Re: AHKathon! [AHK Hackathon] 12/17

What's the topic?
Can the code/script be about anything?

EDIT:
Sorry, didn't notice this line; "The topic will be announced at the start of the hackathon."
My bad.
by Cuadrix
02 Nov 2017, 12:55
Forum: Ask For Help
Topic: hotstrings with delay, but entire thing Topic is solved
Replies: 3
Views: 605

Re: hotstrings with delay, but entire thing Topic is solved

For that you could use SetKeyDelay, -1, which sets the send delay to instant.
Just place it before the send command, and you are good to go;

Code: Select all

::BRB::
Sleep, 2000
SetKeyDelay, -1
Send, Be Right Back
return
by Cuadrix
02 Nov 2017, 07:17
Forum: Ask For Help
Topic: Opening one program when another opens
Replies: 5
Views: 1032

Re: Opening one program when another opens

First click on start in your windows, and then type in "Active Window Info". Now open Rocket League. Once you have opened Rocket League, click on "Active Window Info" window, and check the ahk_exe of Rocket League.(The very first box at the top) Once you have it, place it after IfWinExist , like thi...
by Cuadrix
02 Nov 2017, 06:49
Forum: Ask For Help
Topic: hotstrings with delay, but entire thing Topic is solved
Replies: 3
Views: 605

Re: hotstrings with delay, but entire thing Topic is solved

Have you tried this?

Code: Select all

::BRB::
Sleep, 2000
Send, Be Right Back
by Cuadrix
28 Sep 2017, 04:08
Forum: Gaming
Topic: help me make a script like this:
Replies: 10
Views: 1764

Re: help me make a script like this:

From what I understood, you basically want to remove all used words and not include them next time you paste?

Go to advanced search