1
Meet and Greet! / Re: Hello :D
« on: June 10, 2018, 06:00:00 AM »
Willkommen
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
F5::WinSet, Transparent, 150,A
F6::WinSet, Transparent, off,A
The 150 in this example is the degree of opacity, so lowering it will make the window more transparent. The maximum opacity is 255.F8::WinSet, TransColor, 000000, A
F6::WinSet, Transparent, off,A
The number is the RGB value of the color you want to be invisible, in this case it's black. Very useful if you want to watch videos while playing fangames F7::
WinSet, Style, ^0xC00000, A
WinSet, Style, ^0x40000, A
return
the ^ makes it so it toggles on and off#IfWinActive ahk_class TRunnerForm
With this line the script will only work when a fangame-window (or any other gamemaker-exe) is active. That way you can keep the script running in the background while you are doing stuff other than playing fangames. If let it autorun with windows, and it has never caused any problems at all.GroupAdd, Fangame, ahk_class TRunnerForm
GroupAdd, Fangame, ahk_class YYGameMakerYY
GroupAdd, Fangame, ahk_class Mf2MainClassTh
#IfWinActive ahk_group Fangame
w::shift
This example sets Shift to the w-key. In the same manner, you can set any key to any other. Just note that if you want to set your jump button to the Numpad, you need to deactivate numlock, otherwise you will constantly cancel your jumps (e.g. instead of setting jump to Numpad5, set it to NumpadClear)q::return
Tab::WinMove,A,,290,0,1340,1045
The first two numbers are the position of the windows (upper left corner), the last two numbers are the width and heigth. This example will resize the game to 1340x1045 pixels and put it in the center of the screen when you press Tab.^Up::run nircmd changeappvolume focused +0.1
^Down::run nircmd changeappvolume focused -0.1
This examples lowers the volume of the active window by 10% when you press ctrl+down, and increases it with ctrl+Up.Tab::
WinMove,A,,200,0,1340,1045
run nircmd setappvolume focused 0.1
return
#MaxHotkeysPerInterval 9999
GroupAdd, Fangame, ahk_class TRunnerForm
GroupAdd, Fangame, ahk_class YYGameMakerYY
GroupAdd, Fangame, ahk_class Mf2MainClassTh
#IfWinActive ahk_group Fangame
{
a::Left
d::Right
w::Shift
s::Down
NumpadClear::Shift
NumpadLeft::z
NumpadRight::s
Space::r
Tab::
WinMove,A,,200,0,1340,1045
run nircmd setappvolume focused 0.1
return
}
This is of course just an example. It's completely customizable for your needs.#NoEnv
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1