Search found 41 matches

by Onimuru
09 Aug 2019, 08:27
Forum: Scripts and Functions
Topic: GDIP Art ?
Replies: 14
Views: 1763

Re: GDIP Art ?

This was a lot of fun: #KeyHistory 0 #NoEnv #Persistent #SingleInstance Force #Include, %A_ScriptDir%\..\..\..\lib\GDIp.ahk ListLines, Off Process, Priority, , R SetBatchLines, -1 SetControlDelay, -1 vCanvas := 150 Global vCanvas := new Canvas("gCanvas", "-Caption +AlwaysOnTop +ToolWindow +OwnDialog...
by Onimuru
02 Aug 2019, 12:35
Forum: Scripts and Functions
Topic: GDIP Art ?
Replies: 14
Views: 1763

Re: GDIP Art ?

Here's something else I made based on https://i.imgur.com/CUgIRMB.gif #KeyHistory 0 #NoEnv #Persistent #SingleInstance Force ListLines, Off Process, Priority, , R SetBatchLines, -1 SetControlDelay, -1 Global vRadius := 150, vDiameter := vRadius*2 , vSectors := 8 , vClockwise := 1 ;1 || -1 ;, vCx := ...
by Onimuru
22 Jul 2019, 03:14
Forum: Scripts and Functions
Topic: GDIP Art ?
Replies: 14
Views: 1763

Re: GDIP Art ?

Thanks for pointing that out, I edited the code.
by Onimuru
21 Jul 2019, 16:04
Forum: Scripts and Functions
Topic: GDIP Art ?
Replies: 14
Views: 1763

Re: GDIP Art ?

Man, that is cool! Thanks for sharing. Here's something I made: #KeyHistory 0 #NoEnv #Persistent #SingleInstance Force ListLines, Off Process, Priority, , R SetBatchLines, -1 SetControlDelay, -1 ;Eclipse properties that define the position and proportions of everything else in this script: { vRadius...
by Onimuru
27 Apr 2019, 19:39
Forum: Scripts and Functions
Topic: Modular multiplication on a circle
Replies: 2
Views: 431

Re: Times table model

gregster wrote:
27 Apr 2019, 19:33
You didn't specify a topic title - I added one for you now, but since I don't know exactly what you did, you might want to change that title by editing your post.
(Without title, people would have problems visiting your topic.)
That works, thanks :)
by Onimuru
27 Apr 2019, 19:25
Forum: Scripts and Functions
Topic: Modular multiplication on a circle
Replies: 2
Views: 431

Modular multiplication on a circle

I watched a video on YouTube recently on times tables within circles and made a model of it. The Gdip functions included at the end are not coded by me, credit goes to tariqporter.

GitHub link

Some screenshots:
Image
Image
by Onimuru
30 Oct 2018, 09:06
Forum: Gaming
Topic: Looking for a bit help to add different variables to my script
Replies: 4
Views: 776

Re: Looking for a bit help to add different variables to my script

Wow, thanks a lot! This is more help than I could've dreamed off :) Also a nice opportunity to learn this better: I can't really figure out what this part of the script does: If !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } As in, what does this code run/load? Second part of the code I don...
by Onimuru
29 Oct 2018, 21:43
Forum: Gaming
Topic: Looking for a bit help to add different variables to my script
Replies: 4
Views: 776

Re: Looking for a bit help to add different variables to my script

This is how I would do it: #SingleInstance Force #MaxHotkeysPerInterval 20000 #HotkeyInterval 20 Process, Priority, , High SetBatchLines, -1 SetKeyDelay, -1, -1 If !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } ;Create Gui: Gui, Generic: New, +AlwaysOnTop -Caption +LastFound -SysMenu +ToolWi...
by Onimuru
10 Oct 2018, 16:51
Forum: Gaming
Topic: Help with code
Replies: 2
Views: 449

Re: Help with code

Here you go: #NoEnv #SingleInstance Force SetWorkingDir, % A_ScriptDir SendMode Input CoordMode, Mouse, Screen If !A_IsAdmin ;Always run your script as admin. { Run *RunAs "%A_ScriptFullPath%" ExitApp } Exit ;End auto-execute section. ;----------; Labels/Functions ;----------; Toggle_Loop: Send r Re...
by Onimuru
04 Oct 2018, 00:22
Forum: Gaming
Topic: Toggling on and off Topic is solved
Replies: 1
Views: 438

Re: Toggling on and off Topic is solved

Toggle an infinite loop on/off: F6::SetTimer, Toggle_Loop, % ((Toggle_Variable := !Toggle_Variable) ? "On" : "Off") Toggle_Loop: Send e Sleep 1000 Return Toggle actions on press: F6:: If !Toggle_Variable { [First time pressed code] } Else { [Second time pressed code] } Toggle_Variable := !Toggle_Var...
by Onimuru
04 Oct 2018, 00:12
Forum: Gaming
Topic: Crosshair: Red dot but with Cursor
Replies: 5
Views: 850

Re: Crosshair: Red dot but with Cursor

Well GUIs are plotted for the top left corner and then the dimensions are drawn outwards from that pixel so you have to do the maths yourself to center: Gui, 1: Show, % "w"d " h"d " x"(A_ScreenWidth//2-(d//2)) " y" (A_ScreenHeight//2-(d//2)) " NA" Here's the RGB colors: https://autohotkey.com/docs/c...
by Onimuru
03 Oct 2018, 12:58
Forum: Gaming
Topic: Crosshair: Red dot but with Cursor
Replies: 5
Views: 850

Re: Crosshair: Red dot but with Cursor

Code: Select all

d = 12

Gui, 1: New, +AlwaysOnTop -Caption +LastFound -SysMenu +ToolWindow +E0x20
Gui, 1: Margin, 0, 0
Gui, 1: Show, w%d% h%d% Center NA
Gui, 1: Color, FF0000
WinSet, TransColor, 150
by Onimuru
01 Oct 2018, 15:19
Forum: Gaming
Topic: Send keys to inactive window Topic is solved
Replies: 2
Views: 516

Re: Send keys to inactive window Topic is solved

From the help file: ControlSend , Control, Keys, WinTitle, WinText, ExcludeTitle, ExcludeText ;WinTitle expects additional information i.e. ahk_class/ahk_id/ahk_exe etc. Here is your original code fixed: #SingleInstance Force SetTitleMatchMode, 2 SendMode Input SleepDuration := 1000 Exit F1:: Loop {...
by Onimuru
01 Oct 2018, 15:10
Forum: Gaming
Topic: delete i guess Topic is solved
Replies: 5
Views: 1024

Re: Need help with samp Topic is solved

I don't understand, could you give an example of the code you have so far?
by Onimuru
01 Oct 2018, 15:08
Forum: Gaming
Topic: AHK Simple key press macro Topic is solved
Replies: 1
Views: 413

Re: AHK Simple key press macro Topic is solved

#SingleInstance Force SendMode Input Exit ~*$q:: ;The q button acts normally with the addition of ~. If !Ten_Second_Timer ;If not true i.e. hasn't run in at least 10 seconds. { Ten_Second_Timer := True SetTimer, Ten_Second_Timer, -10000 ;Run timer a single time. Send 2 } Return Ten_Second_Timer: Te...
by Onimuru
29 Sep 2018, 19:38
Forum: Gaming
Topic: Reverse Key Pressing
Replies: 10
Views: 1191

Re: Reverse Key Pressing

You need to debug your issue yourself, I tested the code I posted and it works fine. It may be UAC or something. In fact, all the code posted here is good. I'm not sure if you want p to be sent continuously (ppppppppp) or as held down but once you fix the crashing issue you're having, you will find ...
by Onimuru
29 Sep 2018, 19:32
Forum: Gaming
Topic: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open
Replies: 19
Views: 2733

Re: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open

Strange that you are able to send clicks but not keyboard inputs. I tried to do exactly what you're doing at one point for a game I play but I gave up in the end, too much of a headache. Here's the code I tried before I gave up: ;[1] ;v:: ; SetControlDelay -1 ; ControlFocus, , ahk_class LaunchUnreal...
by Onimuru
28 Sep 2018, 11:37
Forum: Gaming
Topic: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open
Replies: 19
Views: 2733

Re: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open

The code I gave you works fine, you can test it yourself with: #SingleInstance Force SendMode Input if !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } Exit F12:: ID := WinExist("A") ;Gets the ID of the current active window on every press of F12. ToolTip % ID, 0, 0 Return You need to confirm ...
by Onimuru
28 Sep 2018, 07:29
Forum: Gaming
Topic: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open
Replies: 19
Views: 2733

Re: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open

Like this: #SingleInstance Force SendMode Input Exit F12:: If !Toggle_Variable ;If not on already. ID := WinExist("A") ;The current active window. SetTimer, Routine, % ((Toggle_Variable := !Toggle_Variable) ? "10000" : "Off") ;Toggle timer on/off. Return Routine: ControlSend, , 3, ahk_id %ID% Return

Go to advanced search