Search found 283 matches
- 01 Sep 2021, 11:24
- Forum: Gaming Help (v1)
- Topic: Sending a Key down and every 6sec shift Topic is solved
- Replies: 2
- Views: 465
Re: Sending a Key down and every 6sec shift Topic is solved
Try this: #MaxThreadsPerHotkey, 2 ;it's a little hard to explain this quickly, but basically it's needed or else the XButton1 hotkey will be forever stuck at the "Send Shift" loop XButton1:: KeyPressed := !KeyPressed if KeyPressed { SendInput {w down} Loop { SendInput, {Shift Down} BreakableSleep(1...
- 01 Sep 2021, 10:10
- Forum: Gaming Help (v1)
- Topic: Sending a Key down and every 6sec shift Topic is solved
- Replies: 2
- Views: 465
Sending a Key down and every 6sec shift Topic is solved
Hey, I´m currently trying to get a Script where i use a simple toggle to send a specific key down (W) working all fine, but the problem is i also need that its sends every 6000ms Shift down for 1500ms and than again up. So far i got, XButton1:: KeyPressed := !KeyPressed if KeyPressed { SendInput {w ...
- 18 Aug 2019, 14:25
- Forum: Ask for Help (v1)
- Topic: A bit complicated :D Topic is solved
- Replies: 2
- Views: 623
Re: A bit complicated :D Topic is solved
Its working really!!flyingDman wrote: ↑18 Aug 2019, 13:01Would something like this work?:Code: Select all
~w:: input,oVar,L1T5 sendinput, % oVar = "r" ? "wwwwwwwwwwwwwwwwwwwww" : oVar return
Thannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnkss :D:D:D:
- 18 Aug 2019, 10:06
- Forum: Ask for Help (v1)
- Topic: A bit complicated :D Topic is solved
- Replies: 2
- Views: 623
A bit complicated :D Topic is solved
Hii i found a way to make my work easier but i dont get it how to program it. That's what i got but its doesnt work and isn't finished. ; if i press w than r in a time of 5 sec than i spam w else nothing cd := 5 ; 5 sec pressed := true ; when i press its get "pressed" KeyWait, w, D ; wait for pressi...
- 09 Jan 2019, 09:26
- Forum: Ask for Help (v1)
- Topic: Delete a line Topic is solved
- Replies: 10
- Views: 2093
- 09 Jan 2019, 08:43
- Forum: Ask for Help (v1)
- Topic: Delete a line Topic is solved
- Replies: 10
- Views: 2093
Re: Delete a line Topic is solved
do you mean something like this? DeleteLine(File, Pos) { FileRead, Content, %File% Loop, Parse, Content, `n, `r If (A_Index != Pos) Front .= A_LoopField "`n" FileDelete, %File% FileAppend, % Front, %File% } Note that this is not tested, just the basic idea to see if I am on the right track. THAANKK...
- 08 Jan 2019, 08:23
- Forum: Ask for Help (v1)
- Topic: Delete a line Topic is solved
- Replies: 10
- Views: 2093
- 08 Jan 2019, 07:24
- Forum: Ask for Help (v1)
- Topic: Delete a line Topic is solved
- Replies: 10
- Views: 2093
Delete a line Topic is solved
Hey!, Lets say i have a .ahk file and i want to delete a line Until the end of the line, its hard to say but i show you how i mean ._. Here is a def that i found, but its just add a new line. Maybe its help you. ; test 123 ; another just for fun ; And the def InsertLine(Line, File, Pos) { FileRead, ...
- 07 Jan 2019, 11:46
- Forum: Ask for Help (v1)
- Topic: WinActivate with Pid Topic is solved
- Replies: 2
- Views: 1421
- 07 Jan 2019, 08:48
- Forum: Ask for Help (v1)
- Topic: WinActivate with Pid Topic is solved
- Replies: 2
- Views: 1421
WinActivate with Pid Topic is solved
Hey, ^^ I have here my Code and i just want to get the Pid of the programm that i use at the moment, than start the game and than switch to the saved pid, but its dont work! Its just saves the Pid, starts the game but dont switch back. Line 5! Numpad1:: WinGet, var, PID, a ; Get the pid of the scree...
- 07 Dec 2018, 09:22
- Forum: Ask for Help (v1)
- Topic: Create a floating window liket this here Topic is solved
- Replies: 2
- Views: 1837
Re: Create a floating window liket this here Topic is solved
i found a pretty cool script, and i want to create a "Floating window" like this But i understand nothing from it xD can somebody "encode" it that i can create my own window? Or do you know scripts like this here? I have no idea what part of that script you think is cool and that you want to copy. ...
- 06 Dec 2018, 13:21
- Forum: Ask for Help (v1)
- Topic: Create a floating window liket this here Topic is solved
- Replies: 2
- Views: 1837
Create a floating window liket this here Topic is solved
Hey, i found a pretty cool script, and i want to create a "Floating window" like this settitlematchmode 2 SetWorkingDir, %A_ScriptDir% SetBatchLines, -1 status:=0 If !pToken := Gdip_Startup() { MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system ExitApp...
- 01 Dec 2018, 12:34
- Forum: Ask for Help (v1)
- Topic: Insert text at end of line Topic is solved
- Replies: 2
- Views: 1376
Re: Insert text at end of line Topic is solved
Thank you <333Rohwedder wrote: ↑01 Dec 2018, 03:48Hallo,
replace:by:Code: Select all
FileAppend, % Front Line "`n" Back, %File%
Code: Select all
FileAppend, % SubStr(Front,1,-1) Line "`n" Back, %File%
- 30 Nov 2018, 12:49
- Forum: Ask for Help (v1)
- Topic: Insert text at end of line Topic is solved
- Replies: 2
- Views: 1376
Insert text at end of line Topic is solved
Hey :) Let´s say i have a line of code and i have a button, and when i press the button is insert a piece of text at the end of the line. here is the code that i already have :/ #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assis...
- 30 Nov 2018, 12:19
- Forum: Ask for Help (v1)
- Topic: Insert line dont work corectly Topic is solved
- Replies: 2
- Views: 873
- 30 Nov 2018, 08:28
- Forum: Ask for Help (v1)
- Topic: Insert line dont work corectly Topic is solved
- Replies: 2
- Views: 873
Insert line dont work corectly Topic is solved
Hey, I want to copy a part of text in a other file, the insert code works fine InsertLine("Hello", "text.ahk", 13) but when i want to insert a full text textt = ( if (Choice = "%Name%") path := "Runes\%Name%.ahk" ) than i use the the code InsertLine(%textt%, "text.ahk", 13) but i get a error because...
- 06 Feb 2018, 13:38
- Forum: Ask for Help (v1)
- Topic: AHK and MemoryWrite Topic is solved
- Replies: 10
- Views: 3367
Re: AHK and MemoryWrite Topic is solved
Thanks SnowFlake i will watch and learn hope its work than!.SnowFlake wrote:Reloaded you need to find a static adress, like this, https://www.youtube.com/watch?v=N44nk9URoG8
And one time more, thanks ! because the MemoryWrite and MemoryRead function that you Posted !. Cheers
- 06 Feb 2018, 13:36
- Forum: Ask for Help (v1)
- Topic: AHK and MemoryWrite Topic is solved
- Replies: 10
- Views: 3367
Re: AHK and MemoryWrite Topic is solved
It is every time a different Value :) It doesn't matter, it is just a blank variable unless you assigned it a value, which I doubt, see (maybe) variables or Concepts - Variables . Example, msgbox % 039AF8B0 ; blank 039AF8B0 := "hello" msgbox % 039AF8B0 ; hello msgbox % 0x039AF8B0 ; the number Cheer...
- 06 Feb 2018, 10:57
- Forum: Ask for Help (v1)
- Topic: AHK and MemoryWrite Topic is solved
- Replies: 10
- Views: 3367
Re: AHK and MemoryWrite Topic is solved
It is every time a different Value :)Helgef wrote:039AF8B0 :arrow: 0x039AF8B0?
- 06 Feb 2018, 08:20
- Forum: Ask for Help (v1)
- Topic: AHK and MemoryWrite Topic is solved
- Replies: 10
- Views: 3367
Re: AHK and MemoryWrite Topic is solved
MemoryWrite(hwnd, 038EFE90,int) :arrow: MemoryWrite(hwnd, 0x038EFE90, "int") :?: Cheers. Edit, looking at snowflake's code I see MemoryWrite(hwnd, address, writevalue, datatype="int", length=4, offset=0) , so you seem to be missing one parameter as well. Thanks Helgef i tryed it so MemoryWrite(hwnd...