Search found 216 matches

by neomulemi6
30 Jun 2016, 13:54
Forum: Ask For Help
Topic: Simple question with a simple script
Replies: 18
Views: 2287

Re: Simple question with a simple script

It says 2 mod 3 is 2... This makes no sense to me. How do you get a remainder from 2/3?
by neomulemi6
30 Jun 2016, 13:38
Forum: Ask For Help
Topic: Automate Clicks for a web game
Replies: 15
Views: 2452

Re: Automate Clicks for a web game

Would be pretty simple. You could use the window spy that comes with AutoHotkey to get the mouse coordinates you need, then just use AutoHotkey's Click function. And no, the window's title shouldn't effect anything.
by neomulemi6
30 Jun 2016, 13:31
Forum: Ask For Help
Topic: Simple question with a simple script
Replies: 18
Views: 2287

Re: Simple question with a simple script

Doesn't help. You're not understanding where my confusion stems from. I appreciate you trying though. Your example says this: "both mod(5, 3) and mod(5, -3) yield 2 ", which makes perfect sense to me. What I don't understand, is why mod(1,3), mod(2,3), and mod(3,3) don't all equal 0. I guess my conf...
by neomulemi6
30 Jun 2016, 13:28
Forum: Ask For Help
Topic: My antivirus (here at work) thinks auohotkey is a virus and deletes the installer : ( ...? Topic is solved
Replies: 4
Views: 1130

Re: My antivirus (here at work) thinks auohotkey is a virus and deletes the installer : ( ...? Topic is solved

Can you add it to the antivirus exceptions? Never used Symantec, but pretty much every antivirus program allows this. This might help you: https://support.symantec.com/en_US/arti ... 03266.html
by neomulemi6
30 Jun 2016, 13:25
Forum: Ask For Help
Topic: Automate Clicks for a web game
Replies: 15
Views: 2452

Re: Automate Clicks for a web game

You could try adding CoordMode, Mouse, Relative to the top of your script, so functions like MouseMove/Click/etc use coordinates relative to the active window, instead of the screen. You might have to recreate your macro manually though, instead of using the macro creator you used.
by neomulemi6
30 Jun 2016, 12:58
Forum: Ask For Help
Topic: Simple question with a simple script
Replies: 18
Views: 2287

Re: Simple question with a simple script

Count := Mod(Count, 3) <-- He's setting the value of count here, before the Count++. I very clearly understand how increments work, that's not why I'm confused, and I also ran his script and outputted all the variables before you suggested it, didn't help my confusion at all. Here's my thought proce...
by neomulemi6
30 Jun 2016, 12:55
Forum: Ask For Help
Topic: Automate Clicks for a web game
Replies: 15
Views: 2452

Re: Automate Clicks for a web game

Probably because the screen resolution and/or window size of the game are different on both computers. You never specified where these boxes are, and if you need to click in different areas, or in the same place multiple times.
by neomulemi6
30 Jun 2016, 12:47
Forum: Ask For Help
Topic: Simple question with a simple script
Replies: 18
Views: 2287

Re: Simple question with a simple script

I get that, but he's resetting the value of Count every time the script runs, before the increment, so it seems to me like Count should always equal 1. My confusion is with the mod function and why mod(1,3) somehow equals 1. Logically, I would think that mod(1,3), mod(2,3), and mod(3,3) all equal 0....
by neomulemi6
30 Jun 2016, 12:36
Forum: Ask For Help
Topic: Simple question with a simple script
Replies: 18
Views: 2287

Re: Simple question with a simple script

Shadowphoenix's script works, but I really don't understand why. I get why Count = 1 on the first press, because mod(0,3) = 0, then Count++ adds 1, but on the second press, why does it equal 2? Shouldn't mod(1,3) also be 0? Also, I might as well provide my preferred method: F12:: Count++ If (Count >...
by neomulemi6
30 Jun 2016, 12:17
Forum: Ask For Help
Topic: Automate Clicks for a web game
Replies: 15
Views: 2452

Re: Automate Clicks for a web game

Not really enough information here, but if you only need to click in the same spot multiple times, you could manually move your mouse to the correct spot, and do something like this, which will keep clicking until F1 is pressed again. #MaxThreadsPerHotkey 3 F1:: Toggle = !Toggle Loop { If (!Toggle) ...
by neomulemi6
30 Jun 2016, 12:10
Forum: Ask For Help
Topic: how to click or activate a java script button on a webpage using get elements by class Topic is solved
Replies: 12
Views: 2624

Re: how to click or activate a java script button on a webpage using get elements by class Topic is solved

You could try something like document.forms[0].submit(), replacing 0 with another number if there are multiple forms on the page. Alternatively, you could try document.getElementsByTagName("input")[0].Click(), where 0 is the buttons element number (count the number of <input elements until you get t...
by neomulemi6
30 Jun 2016, 11:49
Forum: Ask For Help
Topic: Auto Hotkey Script Help
Replies: 3
Views: 799

Re: Auto Hotkey Script Help

You can also turn the spamming on/off with the same hotkey like this. #MaxThreadsPerHotkey 3 ; Allow multiple threads. f1:: SpamOn = !SpamOn ; Simple toggle. SpamOn will toggle between 1 and 0 every time you press F1. While SpamOn { Send i{Space} Sleep 10 ; This is needed to give the script a chance...
by neomulemi6
30 Jun 2016, 11:41
Forum: Ask For Help
Topic: Make a script run another script if a program is opened Topic is solved
Replies: 4
Views: 1249

Re: Make a script run another script if a program is opened Topic is solved

I commented his code for you. Not really sure if it will help you though, as there wasn't much to comment on. Everything should be self-explanatory if you have a little AutoHotkey knowledge. #Persistent ;Keeps the script running in the absence of any hotkeys. DetectHiddenWindows, On SetTitleMatchMod...
by neomulemi6
30 Jun 2016, 10:38
Forum: Ask For Help
Topic: change script to make a short pause between hotkey presses
Replies: 3
Views: 743

Re: change script to make a short pause between hotkey presses

Have you tried using the Sleep function?

send h
Sleep 10
Send h
by neomulemi6
30 Jun 2016, 06:04
Forum: Ask For Help
Topic: Simple ReadMemory function not working.
Replies: 0
Views: 443

Simple ReadMemory function not working.

This always returns 0. I'm sure the memory address is correct, and PID is returning the PID of the window correctly. There's has to be something incredibly simple that I'm missing here, but I've been trying for over an hour and I can't figure out what it is. ^p:: WinGet, PID, PID, ahk_class Window S...

Go to advanced search