Search found 328 matches
- 20 Dec 2017, 02:34
- Forum: Ask for Help (v1)
- Topic: Script size limit? Topic is solved
- Replies: 2
- Views: 730
Re: Script size limit? Topic is solved
Thanks, Thats good to know, doubt I'll reach 3K lines anytime soon.
- 20 Dec 2017, 01:03
- Forum: Ask for Help (v1)
- Topic: OpenProcess | Access Denied Topic is solved
- Replies: 1
- Views: 1212
Re: OpenProcess | Access Denied Topic is solved
Oh turns out this code actually works, I assumed failure when I couldn't access the system idle process not realizing I never would have been able to anyways. here are the functions incase anyone wants to use them: ProcessExist(processIdName) { if(!processIdName) return "" PROCESSES := EnumerateProc...
- 20 Dec 2017, 00:52
- Forum: Ask for Help (v1)
- Topic: Script size limit? Topic is solved
- Replies: 2
- Views: 730
Script size limit? Topic is solved
Is there a hard limit for script size
Just curious because I have a growing library file currently sitting at 786 lines/23K characters and want to know when I should start splitting it up or doing some reduction.
Just curious because I have a growing library file currently sitting at 786 lines/23K characters and want to know when I should start splitting it up or doing some reduction.
- 20 Dec 2017, 00:46
- Forum: Ask for Help (v1)
- Topic: moving ToolTip
- Replies: 1
- Views: 700
Re: moving ToolTip
I was just playing around with some code when I added that, I was just going for the smallest fastest script possible that did something interesting I guess. It just moves the tooltip to the reverse of your mouse position, not much beyond that. Had intended to apply it to some splash windows when th...
- 18 Dec 2017, 20:55
- Forum: Ask for Help (v1)
- Topic: Converting Seconds to MM:SS
- Replies: 5
- Views: 1349
Re: Converting Seconds to MM:SS
Keep track of seconds only, and convert to minutes when you need to display them. For example: #Persistent _tickTime := 2 * 60 ;2minutes SetTimer, CountDown, 1000 return CountDown() { global _tickTime _tickTime-- } getMinutes(val) { m := Floor(val / 60) s := Mod(val, 60) return m . ":" . s } F1::Msg...
- 18 Dec 2017, 20:48
- Forum: Ask for Help (v1)
- Topic: If you use Persistent scripts and Windows 10 there might be a big problem
- Replies: 5
- Views: 1380
Re: If you use Persistent scripts and Windows 10 there might be a big problem
^Like joe said, Likely something wrong with your script, haven't had any problems like this with W10.
Post your script and we might be able to sort it out.
Post your script and we might be able to sort it out.
- 18 Dec 2017, 20:41
- Forum: Ask for Help (v1)
- Topic: OpenProcess | Access Denied Topic is solved
- Replies: 1
- Views: 1212
OpenProcess | Access Denied Topic is solved
I have the following adapted code to enum and look at processes without using the built-in methods: SetWorkingDir, %ScriptDir% strList := "" pList := EnumerateProcesses() for pid, name in pList { strList .= pid . " -> " . name . "`n" } MsgBox, %strList% ExitApp, 0 return ProcessExist(processIdName) ...
- 17 Dec 2017, 11:31
- Forum: Ask for Help (v1)
- Topic: Renaming process in task manager
- Replies: 1
- Views: 696
Re: Renaming process in task manager
[this should go in the game sub-section of the forum]
You can probably get away with using UPX and renaming the exe. Cheat detection software detecting AHK will usually look for more than just filenames, since AHK compiled scripts are binded with the AHK binaries themselves they are easier to detect.
You can probably get away with using UPX and renaming the exe. Cheat detection software detecting AHK will usually look for more than just filenames, since AHK compiled scripts are binded with the AHK binaries themselves they are easier to detect.
- 17 Dec 2017, 11:22
- Forum: Ask for Help (v1)
- Topic: transfer variables from autoit Topic is solved
- Replies: 15
- Views: 2971
Re: transfer variables from autoit Topic is solved
and that his will start index at 0.
- 15 Dec 2017, 13:52
- Forum: Ask for Help (v1)
- Topic: transfer variables from autoit Topic is solved
- Replies: 15
- Views: 2971
Re: transfer variables from autoit Topic is solved
You need to use square brackets to declare an array : name := ["adf", "zcxv", "agf", "zxcv", "adsf", "qtq", "dfsg", "cbvn", "fgjh", "ytre"] my mistake, I ment name := Array("adf", "zcxv", "agf", "zxcv", "adsf", "qtq", "dfsg", "cbvn", "fgjh", "ytre") Thank you. Is there a chance to have my variables...
- 14 Dec 2017, 14:29
- Forum: Ask for Help (v1)
- Topic: Error checking for 2 different pixel checks
- Replies: 2
- Views: 606
Re: Error checking for 2 different pixel checks
maybe?
Code: Select all
While(!FindPixel())
Send, {F5}
return
FindPixel() {
Pixelsearch, px, py, 842, 996, 896, 996, 0xFFFFFF, Fast
if(ErrorLevel) {
Pixelgetcolor, Color, 837, 963
if(ErrorLevel and Color != 0x1FB9FF)
return false
}
return true
}
- 14 Dec 2017, 13:57
- Forum: Ask for Help (v1)
- Topic: transfer variables from autoit Topic is solved
- Replies: 15
- Views: 2971
Re: transfer variables from autoit Topic is solved
do you mean convert that code into AHK? or send those variables to an AHK script?
if the first, this should be the equivalent:
if the first, this should be the equivalent:
Code: Select all
name := ("adf", "zcxv", "agf", "zxcv", "adsf", "qtq", "dfsg", "cbvn", "fgjh", "ytre")
for i, v in name {
Clipboard := v
Send, +{INSERT}
}
- 12 Dec 2017, 13:22
- Forum: Ask for Help (v1)
- Topic: Need help
- Replies: 2
- Views: 531
Re: Need help
Code: Select all
hello := false
return
Lbutton::
if(hello == true){
Loop 2 {
MouseClick, Left
}
} else {
Send, {LButton down}
}
return
LButton Up::
Send, {LButton up}
return
- 12 Dec 2017, 13:15
- Forum: Ask for Help (v1)
- Topic: Can't find script
- Replies: 24
- Views: 8705
Re: Can't find script
The simplest solution is to use windows search and search for *.ahk, and look through the results.
- 10 Dec 2017, 13:03
- Forum: Ask for Help (v1)
- Topic: restrict viewing page source in Google Chrome browser
- Replies: 15
- Views: 2758
Re: restrict viewing page source in Google Chrome browser
Not much you can do about that, best to take a look at the link kadhri posted.
- 09 Dec 2017, 12:22
- Forum: Ask for Help (v1)
- Topic: restrict viewing page source in Google Chrome browser
- Replies: 15
- Views: 2758
Re: restrict viewing page source in Google Chrome browser
This seems like a round-about way of hiding a webpage source, there will always be ways around. This is reminiscent of School staff trying to stop students from installing software or viewing certain webpages [which never works]. Anyways, Heres a script with suggestions from the previous posts: [unc...
- 09 Dec 2017, 11:34
- Forum: Ask for Help (v1)
- Topic: how to read the ahk scripts in a large project which editor is preferred
- Replies: 4
- Views: 1354
Re: how to read the ahk scripts in a large project which editor is preferred
Sublime Text is actually capable of jumping to code in other files, despite its quirks with ahk.
- 04 Dec 2017, 19:00
- Forum: Gaming Help (v1)
- Topic: send every x sec once if i hold down the button
- Replies: 26
- Views: 5426
Re: send every x sec once if i hold down the button
One thing you must understand is that keyboards [usually from the driver or built-in controller] will automatically send key down events rapidly when held down, this is why 'w' is spammed in the previous script. as for your last post: $*w:: if(A_TimeSincePriorHotkey > 100) Send, r if(w_repeating) re...
- 03 Dec 2017, 17:32
- Forum: Gaming Help (v1)
- Topic: send every x sec once if i hold down the button
- Replies: 26
- Views: 5426
Re: send every x sec once if i hold down the button
or with R pressed everytime:
Code: Select all
$*~w::
if(A_TimeSincePriorHotkey > 100)
Send, r
if(w_repeating)
return
w_repeating := true
While(GetKeyState("w", "P")) {
Send, 123
sleep, 5000
}
w_repeating := false
return
- 03 Dec 2017, 17:28
- Forum: Gaming Help (v1)
- Topic: send every x sec once if i hold down the button
- Replies: 26
- Views: 5426
Re: send every x sec once if i hold down the button
#WinActivateForce #SingleInstance, force #NoEnv SendMode Input #MaxThreadsPerHotkey, 2 return *$q:: sendinput {lbutton} sendinput q loop { if getkeystate("q", "p") { send {lbutton down} sleep 10 send {lbutton} sleep 10 send {q up} } else { send {lbutton up} send {q downtemp} send {q down} send {q u...