Search found 2249 matches

by swagfag
Yesterday, 12:17
Forum: Ask For Help
Topic: A Better Way to Debug? Topic is solved
Replies: 8
Views: 93

Re: A Better Way to Debug? Topic is solved

declare ur vars in the autoexec section as super-global global UltraShortSleep, ShortSleep, NormalSleep, LongSleep, UltraLongSleep , then only initialize them in ur debug function global UltraShortSleep, ShortSleep, NormalSleep, LongSleep, UltraLongSleep debug() { UltraShortSleep := 50 ShortSleep :=...
by swagfag
Yesterday, 11:40
Forum: Ask For Help
Topic: A Better Way to Debug? Topic is solved
Replies: 8
Views: 93

Re: A Better Way to Debug? Topic is solved

doing global UltraShortSleep := 500 in the global scope declares and initializes the super-global variable UltraShortSleep doing global UltraShortSleep := 500 in function scope declares and initializes the global variable UltraShortSleep , which is the same as doing UltraShortSleep := 500 in the glo...
by swagfag
Yesterday, 06:10
Forum: Ask For Help
Topic: colon in values treated as illegal character (in := too) Topic is solved
Replies: 5
Views: 61

Re: colon in values treated as illegal character (in := too) Topic is solved

yduck yeah colons i meant i get what the problem is. SplitPath expects a variable. when u do %A_ScriptDir% it double-derefs it and treats C:\script\location\myscript.ahk as a variable. C:\script\location\myscript.ahk isnt a valid variable name, u cant do C:\script\location\myscript.ahk := "some tex...
by swagfag
Yesterday, 05:58
Forum: Ask For Help
Topic: colon in values treated as illegal character (in := too) Topic is solved
Replies: 5
Views: 61

Re: colon in values treated as illegal character (in := too) Topic is solved

where is the script?
what does A_ScriptDir look like? windows paths cant contain semicolons, so why do u have a semicolon in it
by swagfag
Yesterday, 05:37
Forum: Ask For Help
Topic: How to only replace the odd occurrences of a character in the clipboard Topic is solved
Replies: 6
Views: 84

Re: How to only replace the odd occurrences of a character in the clipboard Topic is solved

Code: Select all

str = 
(
_Option 1_

_Option 2_

_Option 3_
)

MsgBox % RegExReplace(str, "_([^_]*)_?", "h3. $1")
by swagfag
23 Apr 2019, 05:48
Forum: Ask For Help
Topic: CoordMode help with Screen and Not Active Window
Replies: 6
Views: 109

Re: CoordMode help with Screen and Not Active Window

if u arent running fullscreen apps yet u keep getting 0xfffff when u shouldnt, this means pixelgetcolor is checking out-of-bounds pixels, ie ur coordinates are messed up CoordMode Pixel, Screen is what u should be using. dont waste ur time troubleshooting other coordmodes. theyre conceptually incomp...
by swagfag
23 Apr 2019, 05:22
Forum: Gaming
Topic: Auto-centering mouse after shoot
Replies: 2
Views: 62

Re: Auto-centering mouse after shoot

cant be done. the script has no way of knowing how much the gun recoiled upwards and which side it was yanked to
by swagfag
23 Apr 2019, 05:14
Forum: Ask For Help
Topic: Declaring global variables within a loop
Replies: 1
Views: 44

Re: Declaring global variables within a loop

cant make superglobal vars at runtime. use a superglobal object instead ; 1... global Array := {"Uparrow": [] , "Downarrow": [] , "NumofCoins": [] , "SimOpt": []} Loop 99 { Array.Uparrow.Push({"x": "", "y": ""}) Array.Downarrow.Push({"x": "", "y": ""}) Array.NumofCoins.Push({"x": "", "y": ""}) Array...
by swagfag
22 Apr 2019, 18:14
Forum: Ask For Help
Topic: QuerySelector CSS selector changes according to variable value Topic is solved
Replies: 2
Views: 48

Re: QuerySelector CSS selector changes according to variable value Topic is solved

at least 1 space(2, on either side, being recommended) is required after num for this to parse correctly, ie ...th-child("num ") > di...
or be explicit and use dot concatenation
by swagfag
22 Apr 2019, 18:08
Forum: Ask For Help
Topic: CoordMode help with Screen and Not Active Window
Replies: 6
Views: 109

Re: CoordMode help with Screen and Not Active Window

pixelgetcolor isnt working if u keep getting 0xffffff. u cant use it in true fullscreen apps. switch to borderless windowed or plain windowed
by swagfag
22 Apr 2019, 04:10
Forum: Ask For Help
Topic: How to Auto Compute this? Topic is solved
Replies: 5
Views: 112

Re: How to Auto Compute this? Topic is solved

if u want to change the number, change 50
if u want to change the # of outputs, add more new ContainsList() to the end of the array of lists that are being passed to the function. the # of outputs that ull get is then Array.Count() + 1
by swagfag
21 Apr 2019, 13:12
Forum: Ask For Help
Topic: GUI: Right-click button to display Tooltip?
Replies: 2
Views: 43

Re: GUI: Right-click button to display Tooltip?

Code: Select all

Gui New, +hwndhGui
Gui Add, Button, hwndhBtn, rmb click here
Gui Show

Tips := {(hBtn): "tool msg"}

#If WinActive("ahk_id" hGui)
RButton::
	MouseGetPos, , , , hwnd, 2
	if Tips.HasKey(hwnd)
		ToolTip % Tips[hwnd]
return
by swagfag
21 Apr 2019, 12:57
Forum: Ask For Help
Topic: How to Auto Compute this? Topic is solved
Replies: 5
Views: 112

Re: How to Auto Compute this? Topic is solved

Out := formula(50, [new ContainsList(46,47,49,50,53,54,56,57) , new ContainsList(38,39,41,42,53,54,56,57) , new ContainsList(34,35,41,42,49,50,56,57) , new ContainsList(32,35,39,42,47,50,54,57)]) MsgBox % Out[1] MsgBox % Out[2] MsgBox % Out[3] MsgBox % Out[4] MsgBox % Out[5] formula(number, Contain...
by swagfag
20 Apr 2019, 09:55
Forum: Ask For Help
Topic: COM MS Word, call to GetPressedMso method
Replies: 4
Views: 112

Re: COM MS Word, call to GetPressedMso method

why did u change SelectionPane to Selection and Visibility? this isnt a valid idMso string

Msos for all version:
MS Office 2003/7
MS Office 2010
MS Office 2013
MS Office 2016
by swagfag
20 Apr 2019, 09:11
Forum: Ask For Help
Topic: How to set a delay between keys pressed
Replies: 1
Views: 35

Re: How to set a delay between keys pressed

Code: Select all

SetKeyDelay 75, 75
Send {Left}{Right}{Up}
by swagfag
20 Apr 2019, 08:52
Forum: Ask For Help
Topic: How to load mingw version DLL?
Replies: 2
Views: 73

Re: How to load mingw version DLL?

what problems do u have loading it? a_lasterror??
libbrotlidec.dll is a 32 bit dll that depends on libbrotlicommon.dll. did u loadlib libbrotlicommon.dll beforehand, or do u have it in ur script dir?
by swagfag
20 Apr 2019, 03:57
Forum: Ask For Help
Topic: How to Loop For Specific Time
Replies: 4
Views: 110

Re: How to Loop For Specific Time

this have a very low chance of breaking out of the loop, u want to use >
by swagfag
19 Apr 2019, 15:38
Forum: Ask For Help
Topic: Auto-executing script for DiRT 3 crashing resolved Topic is solved
Replies: 7
Views: 152

Re: Auto-executing script Topic is solved

what have u tried?

Code: Select all

; <---------------------------  tried every variable of GoSub and Goto here.... launch AHK.exe gives error
this is a comment. comments are ignored by the interpreter

Go to advanced search