Search found 1383 matches

by swagfag
Today, 07:04
Forum: Ask For Help
Topic: Regwrite doest work
Replies: 10
Views: 106

Re: Regwrite doest work

RegWrite, REG_DWORD, HKLM\SYSTEM\ControlSet001\Services\WebClient\Parameters, FileAttributesLimitInBytes, 0xF4240 RegWrite, REG_DWORD, HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell, BagMRU Size, 0x4e20 those numbers have to be in hexadecimal format. if it still doesnt work, ...
by swagfag
Yesterday, 18:01
Forum: Ask For Help
Topic: How to fade out a Gui with function + variable?
Replies: 1
Views: 96

Re: How to fade out a Gui with function + variable?

the offending line is Gui, Show, w500 h250 hide, Ende , but AnimateWindow already does fading(and more), so there's no need to come up with ur own implementation ;Info-Meldungen #SingleInstance force hwndStart := makeGUI("Start") hwndEnde := makeGUI("Ende") makeGUI(bild) { Gui +E0x20 -Caption +LastF...
by swagfag
Yesterday, 10:38
Forum: Ask For Help
Topic: Filter out numbers from Clipboard and summarize them Topic is solved
Replies: 6
Views: 83

Re: Filter out numbers from Clipboard and summarize them Topic is solved

split on the , then RegExMatch for digits and add them together:

Code: Select all

clip := "Car (12), Street (2), Pedestrian (4), Tree (2)"

Loop Parse, % clip, % ","
{
	RegExMatch(A_LoopField, "\d+", match)
	sum += match
}

MsgBox % sum
by swagfag
Yesterday, 10:29
Forum: Ask For Help
Topic: [AHK v2] Hotkey command break circular reference? Topic is solved
Replies: 3
Views: 47

Re: [AHK v2] Hotkey command break circular reference? Topic is solved

You can also bind the address of the object, as long as you are careful not to call object(ptr) when ptr is invalid.
i ended up doing it this way, since some methods rely on instance vars. thanks
by swagfag
Yesterday, 09:30
Forum: Ask For Help
Topic: [DllCall / NumGet] How to read the value of a pointer to pointer?
Replies: 7
Views: 135

Re: [DllCall / NumGet] How to read the value of a pointer to pointer?

it is as u say, Helgef initially i was using this: #Include Gdip_All.ahk ; https://github.com/mmikeww/AHKv2-Gdip/blob/master/Gdip_All.ahk pToken := Gdip_Startup() OnExit("Quit") VarSetCapacity(ppvBits, 1000000, 0) hbm := CreateDIBSection(A_ScreenWidth, A_ScreenHeight, "", 32, ppvBits) MsgBox % ppvBi...
by swagfag
Yesterday, 06:48
Forum: Ask For Help
Topic: [AHK v2] Hotkey command break circular reference? Topic is solved
Replies: 3
Views: 47

[AHK v2] Hotkey command break circular reference? Topic is solved

so i have this piece of code here: class MyHotkey { __New(hkName, fn) { this.hkName := hkName Hotkey(this.hkName, () => this.doHotkey(fn)) ; im assuming this creates some unreleased references } __Delete() { MsgBox("dtor called") Hotkey(this.hkName, "Off") } doHotkey(fn) { fn.Call() Sleep(500) ToolT...
by swagfag
16 Nov 2018, 12:50
Forum: Ask For Help
Topic: remapping with variable
Replies: 1
Views: 35

Re: remapping with variable

modifier_key_1 := ";" Hotkey % "*" modifier_key_1, SuppressKeystroke Hotkey % "*^" modifier_key_1, SuppressKeystroke SuppressKeystroke: Return #If GetKeyState(modifier_key_1, "P") && GetKeyState("Ctrl", "P") *w::Send ^{#} *e::Send ^@ #If GetKeyState(modifier_key_1, "P") *w::Send {#} *e::Send @ #If
by swagfag
16 Nov 2018, 09:26
Forum: Ask For Help
Topic: Regwrite doest work
Replies: 10
Views: 106

Re: Regwrite doest work

Regwrite goes outside the if-block
by swagfag
15 Nov 2018, 17:18
Forum: Ask For Help
Topic: Stuck with simple problem
Replies: 5
Views: 87

Re: Stuck with simple problem

did u write ur INI with those spaces around the = signs?
either delete them or use var := Trim(value[1])
by swagfag
15 Nov 2018, 17:07
Forum: Ask For Help
Topic: [DllCall / NumGet] How to read the value of a pointer to pointer?
Replies: 7
Views: 135

Re: [DllCall / NumGet] How to read the value of a pointer to pointer?

i cant run the example uve provided, in fact, i think it crashes unexpectedly ive tried to make sense of it, using this diagram. someone more knowledgeable correct it if its wrong https://i.imgur.com/6PwSUVl.png i dont get how NumGet() is supposed to work. even this simple snippet cant get to the or...
by swagfag
15 Nov 2018, 06:14
Forum: Ask For Help
Topic: [DllCall / NumGet] How to read the value of a pointer to pointer?
Replies: 7
Views: 135

[DllCall / NumGet] How to read the value of a pointer to pointer?

the GDIP lib has this here function: ; Function CreateDIBSection ; Description The CreateDIBSection function creates a DIB (Device Independent Bitmap) that applications can write to directly ; ; w width of the bitmap to create ; h height of the bitmap to create ; hdc a handle to the device context t...
by swagfag
13 Nov 2018, 16:50
Forum: Ask For Help
Topic: COM error 0x80020005 - Type mismatch
Replies: 1
Views: 46

Re: COM error 0x80020005 - Type mismatch

item() accepts a zero based index. how did u figure a string should be possible?
by swagfag
13 Nov 2018, 16:46
Forum: Ask For Help
Topic: Script only works one time (game)
Replies: 5
Views: 52

Re: Script only works one time (game)

does suspending and unsuspending the script do anything? the game might be implementing its own keyboard hook, thus overriding your hotkeys. try doing it on a timer
by swagfag
13 Nov 2018, 15:22
Forum: Ask For Help
Topic: Script only works one time (game)
Replies: 5
Views: 52

Re: Script only works one time (game)

which game
by swagfag
13 Nov 2018, 09:14
Forum: Ask For Help
Topic: What's wrong with my function ?
Replies: 7
Views: 97

Re: What's wrong with my function ?

why? why would you want to do this?
by swagfag
13 Nov 2018, 09:04
Forum: Forum Issues
Topic: Feedback: phpBB forum interface switch
Replies: 165
Views: 4452

Re: Feedback: phpBB forum interface switch

Image
just imagine the CTRL in there, as the cursor jumps. chrome latest stable, fwiw
it was being caused by the chrome extension "SurfingKeys", it seems
by swagfag
12 Nov 2018, 19:23
Forum: Ask For Help
Topic: Submit a series of URLs with Autohotkey
Replies: 12
Views: 129

Re: Submit a series of URLs with Autohotkey

Code: Select all

i := 1
URLs := ["first", "second", "third"]

$q::Send % URLs[i]
$w::(++i > URLs.Count()) ? --i
$e::(--i < 1) ? ++i
w/e to go up/down the list
by swagfag
12 Nov 2018, 19:13
Forum: Ask For Help
Topic: Trouble sorting a list of very large numbers Topic is solved
Replies: 2
Views: 60

Re: Trouble sorting a list of very large numbers Topic is solved

data = ( 000000100000000000000000000001 100000000000000000000004 100000000000000000000002 100000000000000000000003 100000000000000000000004 24385747574 000347856783247867280467807280467892346757624 ) Sort data, UF BigIntSortReverse MsgBox % data BigIntSortReverse(a, b) { return BigIntSort(a, b, fal...

Go to advanced search