Search found 22 matches

by NewberEnerNeeder1
18 Nov 2019, 11:05
Forum: Ask For Help
Topic: activate a certain window when mouse is over it...help! Topic is solved
Replies: 4
Views: 370

Re: activate a certain window when mouse is over it...help! Topic is solved

Code: Select all



#Persistent
SetTimer, WatchCursor, 100
return

WatchCursor:
MouseGetPos,,, WinUMID


if test = %WinUMID%
WinActivate, ahk_id %WinUMID%, 
else
sleep 1
return



i was trying that but something is off anyone know how to do this?
by NewberEnerNeeder1
18 Nov 2019, 08:32
Forum: Ask For Help
Topic: activate a certain window when mouse is over it...help! Topic is solved
Replies: 4
Views: 370

Re: activate a certain window when mouse is over it...help! Topic is solved

i would like to move my mouse around and when it scrolls over my doc called "notes" then it will activate the notes without clicking it but it will ignore other windows.
by NewberEnerNeeder1
18 Nov 2019, 08:30
Forum: Ask For Help
Topic: activate a certain window when mouse is over it...help! Topic is solved
Replies: 4
Views: 370

activate a certain window when mouse is over it...help! Topic is solved

#Persistent SetTimer, WatchCursor, 100 return WatchCursor: MouseGetPos, , , title1, control ;WinGetTitle, title1, A MouseGetPos,,, WinUMID WinActivate, ahk_id %WinUMID%, notes WinGetTitle, title, ahk_id %id% ;IfWinActive, notes if title1 = notes { MsgBox The contents of MyVar and MyVar2 are identica...
by NewberEnerNeeder1
21 Oct 2019, 08:11
Forum: Ask For Help
Topic: send {f1} not working in a game Topic is solved
Replies: 4
Views: 538

Re: send {f1} not working in a game Topic is solved

wow guess it needed a delay ty greg.

i tried so many things figured it was something simple

send (f1) didnt work
but with that key delay it did

or the f1 down

and f1 up

that worked with a small delay ty again
by NewberEnerNeeder1
20 Oct 2019, 22:58
Forum: Ask For Help
Topic: Send and release keys in specified order when a key is held down
Replies: 9
Views: 1279

Re: Send and release keys in specified order when a key is held down

you can try that if you want, not sure if it will work but f1 to start f2 to stop #Persistent global break_g = 0 start1: sleep 100 loop { if( break_g = 0) { goto start1 return } GetKeyState, state, e if state = D { Sendinput, {RButton} sleep, 5 Sendinput, {LAlt} } else { Sendinput, {LAlt up} sleep, ...
by NewberEnerNeeder1
20 Oct 2019, 05:43
Forum: Ask For Help
Topic: send {f1} not working in a game Topic is solved
Replies: 4
Views: 538

send {f1} not working in a game Topic is solved

Code: Select all

x::
{
send {f1}
sleep 1000
send {f1}
}
return

for some reason the game doesnt recognize that f1 is being pressed from the ahk script.

any ideas to fix this?
by NewberEnerNeeder1
18 Jul 2019, 21:12
Forum: Scripts and Functions
Topic: [TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation
Replies: 46
Views: 21258

Re: [TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation

[email protected] i also like that it uses fk so much haha okay so i got the basic to work and have no idea how to do much more. how do i obfuscate "Loop, Read, C:\Program Files (x86)\myfile\myfile.txt" "If A_loopreadline contains mykeyword" or at least "C:\Program Files (x86)\myfile\myfile.txt" "mykey...
by NewberEnerNeeder1
06 Jul 2019, 18:45
Forum: Ask For Help
Topic: FileRead help / quesitons
Replies: 5
Views: 730

Re: FileRead help / quesitons

thank you guys both ways work well i tried both i was a bit confused on how the first one worked and as i hit reply flyingdmon posted and it didnt let me reply. tried to reply anyway said it went through but didnt kind of odd i do understand the way flyingdmon has it set up ty. the part that confuse...
by NewberEnerNeeder1
06 Jul 2019, 18:29
Forum: Ask For Help
Topic: FileRead help / quesitons
Replies: 5
Views: 730

Re: FileRead help / quesitons

Here is a newbie way of doing it, someone with more experience can suggest a better way. Loop, Read, YourFile.txt { If A_loopreadline contains HELPTHENEWBIE { WordFound = 1 break ; no need to continue running it } } If (WordFound != "1") ExitApp Msgbox, The Word Was Found ; your script ExitApp than...
by NewberEnerNeeder1
06 Jul 2019, 15:37
Forum: Ask For Help
Topic: FileRead help / quesitons
Replies: 5
Views: 730

FileRead help / quesitons

hi,

trying to read a .txt file and if the file contains a word inside of it like "HELPTHENEWBIE" then the script will run and if it doesnt then the script will close.

i dont know if this is even possible.


Can anyone help with this?

Code: Select all


f1::
{
FileRead, OutputVar, C:\My File.txt





}
return


by NewberEnerNeeder1
10 Jun 2019, 17:55
Forum: Ask For Help
Topic: need help to save gui hotkeys after close for next re-open (script included)
Replies: 4
Views: 668

Re: need help to save gui hotkeys after close for next re-open (script included)

ty for the help. i tried the script and it did work! it saved the hotkey on the close. i tried to see if i can make a 2nd hotkey and got that to work. but then i tested it in a couple of ways. 1) it saved when i close it but then the 2nd time i close it... it goes back to default like no hotkey was ...
by NewberEnerNeeder1
10 Jun 2019, 10:57
Forum: Ask For Help
Topic: need help to save gui hotkeys after close for next re-open (script included)
Replies: 4
Views: 668

need help to save gui hotkeys after close for next re-open (script included)

After i set the hot key i would like it to save on close so it remembers for the next time i open it. can anyone help with this? #Persistent #SingleInstance Force #NoEnv Gui, New, Gui, Add, Hotkey,w300 gOneHotkey VHkey Gui, Show Return OneHotkey: HClear:=Hkey If (StateHKey="On") { HKeyOldest:=HClear...
by NewberEnerNeeder1
11 Apr 2019, 15:27
Forum: Ask For Help
Topic: A simple script for limiting clicks
Replies: 2
Views: 463

Re: A simple script for limiting clicks

Code: Select all

f1::
      loop 300
       {
          click 
          sleep 200
       }
return
by NewberEnerNeeder1
29 Mar 2019, 18:45
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 3687

Re: trying to prevent a function from running more than once at a time

i would like to be able to press f1 to start the function and if i press f1 again while it is running the f1 will not start it a 2nd time This is what your existing code does. A hotkey will not fire if the thread for the previous fire of that hotkey has not finished yet. So the problem is not what ...
by NewberEnerNeeder1
28 Mar 2019, 19:23
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 3687

Re: trying to prevent a function from running more than once at a time

You can disable hotkeys. F1:: hotkey,% a_thisHotkey,off Loop, 5 Send 0123456789{enter} hotkey,% a_thisHotkey,on return This thing really needs sleep times SetKeyDelay maybe its just the f1 key but if i press f1 2x or more fast it it opens a webpage https support.microsoft.com /en-us/hub/4338813/win...
by NewberEnerNeeder1
26 Mar 2019, 16:35
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 3687

Re: trying to prevent a function from running more than once at a time

Make sure you did not specify one of the following directive on the top of the script: #MaxThreadsBuffer #MaxThreadsPerHotkey And switch back them to their respective default value, if need be, i.e. : #MaxThreadsBuffer Off #MaxThreadsPerHotkey 1 [EDIT] And make sure you specified the following stat...
by NewberEnerNeeder1
26 Mar 2019, 13:16
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 3687

Re: trying to prevent a function from running more than once at a time

Scr1pter wrote:
26 Mar 2019, 12:55
Seems you're too fast for AHK :P
Just joking, can't help you any further. :(

Good luck anyway!

Cheers!
ty for trying sir

i have tried so many things.

i feel like its just some type of simple over site but i cant figure it out.

anyone else got an idea?
by NewberEnerNeeder1
26 Mar 2019, 12:34
Forum: Ask For Help
Topic: trying to prevent a function from running more than once at a time
Replies: 22
Views: 3687

Re: trying to prevent a function from running more than once at a time

sinkfaze wrote:
26 Mar 2019, 12:21

Code: Select all

#SingleInstance, Force

f1::
if	!sending
{
	sending :=	1
	Loop, 5
		Send 0123456789{ENTER}
	sending :=	0
}
return
:?:


i tried this but still same problem.


any other ideas?

Go to advanced search