Search found 1147 matches

by A_AhkUser
24 Sep 2020, 18:44
Forum: Gaming
Topic: Rapidly Press Keyboard Key on Controller Z Axis
Replies: 2
Views: 235

Re: Rapidly Press Keyboard Key on Controller Z Axis

but idk if the Z Axis is measured from -1 to 1 and is 0 at its resting position. or would a loop be better? The Joystick Test Script can help you determine some attributes and behaviours of your joystick. example: i := 0 ; <><><><><><><><> stickID := 1 DEAD_POINT := 50 ; <><><><><><><><> connected ...
by A_AhkUser
23 Sep 2020, 15:33
Forum: Gaming
Topic: Method switcher button Topic is solved
Replies: 5
Views: 283

Re: Method switcher button Topic is solved

Thank you! Hi, I'm not sure to fully understand. Hopefully I get it correctly (I write the code in such way that you can more easily set up the parameters on the top of the script, if needed): ; <><><><><><><><><><> showTooltip := true changeMethod := "LAlt" useMethod := "Ctrl" weaponsToCombo := (L...
by A_AhkUser
21 Sep 2020, 16:36
Forum: Gaming
Topic: Method switcher button Topic is solved
Replies: 5
Views: 283

Re: Method switcher button Topic is solved

Hi! Maybe: ; <><><><><><><><><><> changeMethod := "LAlt" useMethod := "Ctrl" weaponsToId := {"sniper": 5, "RPG": 4, "Atomizer": 1, "Musket": 6} ; <><><><><><><><><><> enum := weaponsToId._newEnum() Hotkey % changeMethod, changeMethod Hotkey % useMethod, useMethod Gosub, changeMethod return changeMet...
by A_AhkUser
21 Sep 2020, 15:48
Forum: Ask For Help
Topic: Problem witih "framerate" when dragging windows with AHK
Replies: 3
Views: 84

Re: Problem witih "framerate" when dragging windows with AHK

Hi

Try replace:

Code: Select all

SetWinDelay,2
by

Code: Select all

SetWinDelay,0
or

Code: Select all

SetWinDelay,-1
(not tested)

A_AhkUser
by A_AhkUser
21 Sep 2020, 14:57
Forum: Gaming
Topic: Trying to convert a List
Replies: 11
Views: 277

Re: Trying to convert a List

(...) Here i want that the script converts the "SubVariables" of "EngineList", so it looks like this: EngineList = Apple|People|Unity 2.5|Music|RPGMaker|Car|Unreal Engine|Movie The Script at the same time should still allow me to use the "SubVariables", so msgbox, %RPGMaker% would still return "Nor...
by A_AhkUser
21 Sep 2020, 07:55
Forum: Ask For Help
Topic: Can Windows Z-order be manipulated (without the GUI)?
Replies: 2
Views: 67

Re: Can Windows Z-order be manipulated (without the GUI)?

Hi
Coldblackice wrote:
20 Sep 2020, 20:44
One other solution is to use the SetWindowPos winAPI function - as demonstrated here by teadrinker.

A_AhkUser
by A_AhkUser
20 Sep 2020, 16:25
Forum: Gaming
Topic: Trying to convert a List
Replies: 11
Views: 277

Re: Trying to convert a List

Hi WOlfen , Based on AHKStudent 's solution; you can use = instead as delimiter when calling StrSplit : List1 = Apple|People|Unity|Music|RPGMaker|Car|UnrealEngine|Movie msgbox, 4096, List1, %List1% delimiter := "`r`n" List2= (Join%delimiter% Comment Apple = ;stuff for the script People = ;other stuf...
by A_AhkUser
20 Sep 2020, 15:42
Forum: Ask For Help
Topic: Check if JSON string is a valid Json object. Topic is solved
Replies: 6
Views: 123

Re: Check if JSON string is a valid Json object. Topic is solved

without using eval: json = {"key":"value"} MsgBox, % IsJsonValid(json) json = {"key":"value} MsgBox, % IsJsonValid(json) isJsonValid(string) { static doc := ComObjCreate("htmlfile") , __ := doc.write("<meta http-equiv=""X-UA-Compatible"" content=""IE=9"">") , parse := ObjBindMethod(doc.parentWindow....
by A_AhkUser
20 Sep 2020, 15:34
Forum: Ask For Help
Topic: Help with bound functions
Replies: 1
Views: 61

Re: Help with bound functions

Hi Bartholomau, I saw this post just after having seen your other question in an other thread, namely 'I want to execute up and down event of a specific hotkey' , I guess I get the point here. Actually, bound functions can be a possible solution in this case - here's a commented code snippet; you ca...
by A_AhkUser
11 Sep 2020, 10:55
Forum: Scripts and Functions
Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Replies: 31
Views: 9651

eAutocomplete v2.0.0-beta

v2.0.0-beta download link - v2.0.0.-beta The script can now essentially been seen as an integration of the Sift_Regex function by FanaticGuru - for the purpose of autocompletion. Overall, Sift_Regex searches and sifts through data for items that match a given pending word more efficiently than prev...
by A_AhkUser
10 Sep 2020, 16:15
Forum: Ask For Help
Topic: Taking Objects In Order Topic is solved
Replies: 13
Views: 1206

Re: Taking Objects In Order Topic is solved

@hasantr
hasantr wrote:
01 May 2020, 16:47
I am trying to find the fastest method. For the fastest method to add millions of keys. I have been working for two days but I have had no results.
Not sure, you might be interested by hashTable.

A_AhkUser
by A_AhkUser
10 Sep 2020, 16:09
Forum: Ask For Help
Topic: Taking Objects In Order Topic is solved
Replies: 13
Views: 1206

Re: Taking Objects In Order Topic is solved

@teadrinker
teadrinker wrote:
01 May 2020, 08:39
new CaseSenseList
guest3456 wrote:
21 Jan 2020, 09:35
you always end up having good functions and libraries... you should post them in the Scripts & Functions forum so they don't get lost in the suffle of all these Ask For Help questions
cheers

A_AhkUser
by A_AhkUser
09 Sep 2020, 17:50
Forum: Ask For Help
Topic: BoundFunc object get function name
Replies: 1
Views: 76

Re: BoundFunc object get function name

Hi, How do I know the name of the function? There's no built-in property or standard way to retrieve the name of a function whom be passed predefined parameters. You must wrap your boundfunc object into custom object (functor) and endow it with a name property - see Helgef 's example here . A_AhkUser
by A_AhkUser
03 Sep 2020, 13:49
Forum: Ask For Help
Topic: Issue with unhiding a Gui edit control
Replies: 8
Views: 289

Re: Issue with unhiding a Gui edit control

Hi PuzzledGreatly,

Try one of the following:

Code: Select all

GuiControl, Whit:MoveDraw, etxt
or,

Code: Select all

WinSet, Redraw
or,

Code: Select all

SetWinDelay, -1
WinHide
WinShow
in your double-colon hotkey subroutine.

hope this helps

A_AhkUser
by A_AhkUser
03 Sep 2020, 13:43
Forum: Ask For Help
Topic: Gui, Submit isn't working with textbox (array variables). Topic is solved
Replies: 5
Views: 164

Re: Gui, Submit isn't working with textbox (array variables). Topic is solved

Associated output variables can be array values - as long as these latters evaluate to valid strings ( i.e. variable names ). If, for some reason, you need to map associated output variables names to a given array's values, you need to double deref array get operations to tell ahk to interpret a giv...
by A_AhkUser
26 Aug 2020, 16:56
Forum: Ask For Help
Topic: Only trigger a function in the last iteration of a forEach loop
Replies: 19
Views: 617

Re: Only trigger a function in the last iteration of a forEach loop

(...) In general, it seems very reasonable that there would be things that you would do differently during the last iteration of the loop, not afterward. Ok I see - and I would be tempted to say that it is actually very reasonable, pretty obvious; I guess it is simply my narrow-mindedness and lack ...
by A_AhkUser
26 Aug 2020, 15:11
Forum: Ask For Help
Topic: Always On Bottom
Replies: 3
Views: 133

Re: Always On Bottom

Hi masimpson,

UInt should be Ptr in newer version of ahk for HWND (such as those returned by WinExist). Also try identify notepad by its class instead:

Code: Select all

DllCall("User32.dll\SetParent", "Ptr", WinExist("ahk_class Notepad"), "Ptr", WinExist("Program Manager"))

Hope this helps

A_AhkUser
by A_AhkUser
26 Aug 2020, 15:02
Forum: Ask For Help
Topic: Only trigger a function in the last iteration of a forEach loop
Replies: 19
Views: 617

Re: Only trigger a function in the last iteration of a forEach loop

I should mention that, generally, length() and count() have nothing 'loopy'; thus, it might be relevant to put them outside the body of the loop if the loop's target object is not intented to be modified during the time of the loop execution. For the same reason, and unlike for the first one I wonde...
by A_AhkUser
25 Aug 2020, 06:58
Forum: Ask For Help
Topic: Refresh GUI when its window is activated
Replies: 3
Views: 84

Re: Refresh GUI when its window is activated

Hi JFord , Hi Boiler , The following can also be used to handle the activation of ahk GUIs in a more general approach: #NoEnv #SingleInstance Off SetWorkingDir % A_ScriptDir SendMode, Input #Warn !i:: GUI, New GUI, Show, w200 h200 return GUIActivate(hwnd) { ; called each time an AHK GUI window apart...
by A_AhkUser
22 Aug 2020, 13:08
Forum: Ask For Help
Topic: Replace a list of undesirable characters in given text Topic is solved
Replies: 5
Views: 986

Re: Replace a list of undesirable characters in given text Topic is solved

Hi koolestani, This however fails at replacing hypens It's only when using expressions that literal strings must be enclosed in double quotes (to distinguish them from variables). Yet, the StringReplace command's SearchText parameter in particular (and command's input parameters in general and with ...

Go to advanced search