Search found 19 matches

by cocobanana
07 Mar 2018, 14:21
Forum: Ich brauche Hilfe
Topic: Springen zu einer Programmzeile
Replies: 5
Views: 1678

Re: Springen zu einer Programmzeile

Denke das einfachste wäre eine normal if abfrage in der schleife...
oder die kurz version mit until zb.

Code: Select all

loop {
	sleep 10
} until  ... < -- deine Bedingung um die Schleife zu verlassen...
by cocobanana
24 Feb 2018, 23:50
Forum: Gaming Help (v1)
Topic: Mit einem Tastendruck (Maus) 2 Aktionen abwechselnd
Replies: 3
Views: 929

Re: Mit einem Tastendruck (Maus) 2 Aktionen abwechselnd

Wieso verwendest du nicht die Logitech Gaming Software dafür?

Code: Select all

XButton1:: ; anstelle von RButton,sollte so funktionieren
	Null := !Null
If Null
	Send, 0
Else
	Send, 9
Return
*End::ExitApp
by cocobanana
14 Feb 2018, 21:08
Forum: Gaming Help (v1)
Topic: Ignore a key that is being held
Replies: 4
Views: 4069

Re: Ignore a key that is being held

Code: Select all

LShift & Left::
	;Do what you want
	KeyWait LShift
return

LShift::
	Send {LShift}
return
by cocobanana
14 Feb 2018, 20:55
Forum: Ask for Help (v1)
Topic: Best practice ? Read variable from other scripts
Replies: 22
Views: 6127

Re: Best practice ? Read variable from other scripts

it seems for me that the script sometimes cant find each other.

i hope its safer, more reliable with AHK_H.dll
In my opinion multi-threading works more accurately and it is much simpler to use.
by cocobanana
14 Feb 2018, 20:46
Forum: Gaming Help (v1)
Topic: Hearthstone Script Mouse Pos Not Working
Replies: 6
Views: 2347

Re: Hearthstone Script Mouse Pos Not Working

The script is working for me the only thing i had to do is slightly adjust some coordinates for example ; Presses the "END TURN" button on the right side, if possible ; Tested on following boards: Naxx, griffin, catapult, GvG/Laser PassTurn() { BlockInput, On ; Green button ; PixelSearch, OutputVarX...
by cocobanana
14 Feb 2018, 18:59
Forum: Ask for Help (v1)
Topic: Best practice ? Read variable from other scripts
Replies: 22
Views: 6127

Re: Best practice ? Read variable from other scripts

Similar to AhkSelf(), you could directly use AHK_H.dll to multi-thread. By multi-threading, the main script is able to access the content of and execute functions, subs, and code the child thread(s). I have a class here that does that (v1.1). In terms of best practice, I would certainly recommend m...
by cocobanana
14 Feb 2018, 15:52
Forum: Ask for Help (v1)
Topic: Best practice ? Read variable from other scripts
Replies: 22
Views: 6127

Re: Best practice ? Read variable from other scripts

AhkSelf() is also a good solution.... https://github.com/HotKeyIt/ahkdll-v2-release/blob/master/lib/AhkSelf.ahk or do you want AHK_L only code? here is an example ;Main_Thread global main := AhkSelf() ; Create new Critical object ;Create Sub_Thread file := "C:\your_script.ahk" fileObj := FileOpen(fi...
by cocobanana
02 Feb 2018, 05:33
Forum: Ask for Help (v1)
Topic: Calling functions from another script
Replies: 1
Views: 921

Re: Calling functions from another script

You can do this with Autohotkey_H..

Here is an example from the Helpfiles

Code: Select all

dll:=AhkThread("#Persistent`nMyFunc(param){`nSleep 10000`nMsgBox `% param`n}")
MsgBox % dll.ahkFunction["MyFunc","test"]
by cocobanana
05 Jan 2018, 16:10
Forum: Spiele
Topic: ControlClick in Spielfenster im Hintergrund
Replies: 5
Views: 4381

Re: ControlClick in Spielfenster im Hintergrund

Versuchs mal mit

Code: Select all

ControlClick, x259 y251, ahk_pid %pid%,, Left, 1, NA POS
by cocobanana
03 Jan 2018, 12:03
Forum: Gaming Help (v1)
Topic: Create a File Topic is solved
Replies: 1
Views: 597

Re: Create a File Topic is solved

Hello!

My Code look so now,

Code: Select all

~space::fileappend, "Here is the Problem" , MYText.txt

But i want if the Space Key get "Triggerd" its write in my Text "Space" but not the word rather this here " ".

Hope you understand what i mean, thanks.
try this

Code: Select all

~space::fileappend, %A_Space% , MYText.txt
by cocobanana
03 Jan 2018, 11:57
Forum: Gaming Help (v1)
Topic: Hold key release code help
Replies: 1
Views: 618

Re: Hold key release code help

if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+ ExitApp } ; Run this script as admin, just to make sure.... SetTimer, Spam, 10 SetTimer, Spam, Off F8:: Toggle := !Toggle If Toggle = 1 SetTimer, Spam, On Else SetTimer, Spam, Off Return Spam: while A_TimeSinceThisHotkey < 50...
by cocobanana
02 Jan 2018, 14:18
Forum: Gaming Help (v1)
Topic: NEED HELP WITH A SMALL AHK BOT
Replies: 5
Views: 1551

Re: NEED HELP WITH A SMALL AHK BOT

F1::
SetTimer, F1, Off
loop, 1000
{
MouseClick, left
sleep 100
SendInput, 2
sleep 100
SendInput, 7
sleep 100
SendInput {space}

}
SetTimer, F1, 15000
return

F2::
Reload
return
by cocobanana
27 Dec 2017, 18:00
Forum: Gaming Help (v1)
Topic: T from LMB while holding RMB
Replies: 7
Views: 1645

Re: T from LMB while holding RMB

try this

Code: Select all

~*LButton::
if (GetKeyState("RButton", "P")){
	Send {Blind}{t down}
} 
return

~*LButton Up::
Send {Blind}{t up}
return
by cocobanana
26 Dec 2017, 19:47
Forum: Gaming Help (v1)
Topic: T from LMB while holding RMB
Replies: 7
Views: 1645

Re: T from LMB while holding RMB

Can you say for what game u want to use the script?
Maybe we can help better
by cocobanana
26 Dec 2017, 19:42
Forum: Gaming Help (v1)
Topic: Mouse sensitivity X and Y
Replies: 1
Views: 1393

Re: Mouse sensitivity X and Y

You can use this Library from evilC https://autohotkey.com/boards/viewtopic.php?f=19&t=10159 For Example #SingleInstance force #include MouseDelta.ahk Factor_Y := 2 ; Factor for Y-Axis Speed Factor_Y -= 1 md := new MouseDelta("MouseEvent").Start() return MouseEvent(MouseID, x := 0, y := 0){ global F...
by cocobanana
26 Dec 2017, 18:59
Forum: Gaming Help (v1)
Topic: How do I make 'c' send 'a' here? Topic is solved
Replies: 6
Views: 1395

Re: How do I make 'c' send 'a' here? Topic is solved

rdllngr hat geschrieben: Include "$" before the hotkey. :) It forces the hook in the hotkey. Code: [Alles auswählen]GeSHi © Codebox Plus $a:: Send, b return $c:: Send, a return Interesting, but what exactly do you mean by "It forces the hook in the hotkey."? I understand the words, but I don't get ...
by cocobanana
26 Dec 2017, 18:48
Forum: Gaming Help (v1)
Topic: T from LMB while holding RMB
Replies: 7
Views: 1645

Re: T from LMB while holding RMB

Code: Select all

RButton & LButton::Send t
LButton::Send {Click left}
~RButton::Send {Click Right}

Go to advanced search