Search found 140 matches

by obeeb
13 Aug 2017, 19:12
Forum: Ask For Help
Topic: Approved characters and remove spaces at the beginning and end of the text
Replies: 14
Views: 2418

Re: Approved characters and remove spaces at the beginning and end of the text

The only thing is missed in this filter (as I can see), is how to allow only one space between words. ie. "word1...word2" (three spaces) is change to "word1.word2" (one space) (Seems like this editor clears all double spaces so I used "dots" instead in the example above) Other characters to check t...
by obeeb
13 Aug 2017, 18:18
Forum: Ask For Help
Topic: 2 part script, runs, stops runs 2nd part every 'X' minutes
Replies: 3
Views: 663

Re: 2 part script, runs, stops runs 2nd part every 'X' minutes

Oh wow, that's very complicated though creative. You should try my suggestion, you can encounter similar problems in the future, might be helpful to know how to solve them in a simple way.
by obeeb
13 Aug 2017, 14:32
Forum: Ask For Help
Topic: script to hold shift down when w key is held down?
Replies: 2
Views: 1335

Re: script to hold shift down when w key is held down?

Wouldn't the following do what you want?

Code: Select all

*w::Send {shift Down}
*w Up::Send {shift Up}
by obeeb
13 Aug 2017, 11:33
Forum: Ask For Help
Topic: Need help with a randomized autoclicker Topic is solved
Replies: 5
Views: 1275

Re: Need help with a randomized autoclicker Topic is solved

It deactivates, but it will still be in the while loop until the end of sleep.

Many things you can do to see what's going on, the easiest is just to use SplashTextOn, 200, 200, , some informative Text
by obeeb
13 Aug 2017, 10:58
Forum: Ask For Help
Topic: Need help with a randomized autoclicker Topic is solved
Replies: 5
Views: 1275

Re: Need help with a randomized autoclicker Topic is solved

Tired it, works fine. What problems do you experience?
by obeeb
13 Aug 2017, 09:25
Forum: Ask For Help
Topic: Approved characters and remove spaces at the beginning and end of the text
Replies: 14
Views: 2418

Re: Approved characters and remove spaces at the beginning and end of the text

Can you give a few examples of the expected input and output(examples of var1 and what var3 should be)?
by obeeb
13 Aug 2017, 07:19
Forum: Ask For Help
Topic: 2 part script, runs, stops runs 2nd part every 'X' minutes
Replies: 3
Views: 663

Re: 2 part script, runs, stops runs 2nd part every 'X' minutes

You can easily do it with SetTimer.

Just have a

Code: Select all

secondTask:
; second task code
return
label.

And in your auto execute section(the beginning of your script) call:

Code: Select all

SetTimer, secondTask, % 1000 * 60 * 10
by obeeb
12 Aug 2017, 16:34
Forum: Ask For Help
Topic: ALT+another_key sends ALT+CTRL
Replies: 6
Views: 1894

Re: ALT+another_key sends ALT+CTRL

Quite an amazing coincidence, I just went back to using Autohotkey after not using it for at least months and encountered a very similar problem. Even more amazingly today was the first time I entered the "Bug Reports" forum to post a different possible bug and saw your post a couple posts below min...
by obeeb
12 Aug 2017, 14:35
Forum: Bug Reports
Topic: Possible bug with wildcard hotkey eclipsing other hotkey Topic is solved
Replies: 2
Views: 1035

Possible bug with wildcard hotkey eclipsing other hotkey Topic is solved

From the wildcard documentation : Wildcard hotkeys always use the keyboard hook, as do any hotkeys eclipsed by a wildcard hotkey. For example, the presence of *a:: would cause ^a:: to always use the hook. However when I place the wildcard hotkey above the more specific one: *^a::MsgBox wildcard ^!a:...
by obeeb
07 Mar 2014, 14:24
Forum: Ask For Help
Topic: Youtube full window script not working [Solved]
Replies: 2
Views: 1566

Re: Youtube full window script not working

You need to add a delay(Sleep 200) between the !d and ^c sends.
by obeeb
02 Mar 2014, 15:56
Forum: Ask For Help
Topic: Get monitor's bit depth.
Replies: 3
Views: 1421

Re: Get monitor's bit depth.

For one monitor or only for the primary one: hdc := DllCall("GetDC", ptr, 0, ptr) bitsPerPixel := DllCall("GetDeviceCaps", ptr, hdc, int, 12) DllCall("ReleaseDC", ptr, 0, ptr, hdc) MsgBox % bitsPerPixel For more than one monitor: hdc := DllCall("GetDC", ptr, 0, ptr) DllCall("EnumDisplayMonitors", pt...
by obeeb
01 Mar 2014, 20:15
Forum: Ask For Help
Topic: QPC based timer seems to affect sleep
Replies: 1
Views: 953

Re: QPC based timer seems to affect sleep

This http://ahkscript.org/boards/viewtopic.php?f=14&t=2466#p13581 seems to be the answer. Your callback is being called on a thread other than the script's main thread. This causes difficult-to-predict behaviour since AutoHotkey is not designed to be multi-threaded. It's almost surprising that the s...
by obeeb
01 Mar 2014, 18:36
Forum: Scripts and Functions
Topic: Small autohotkey hack - Make blank variables not blank
Replies: 2
Views: 1553

Re: Small autohotkey hack - Make blank variables not blank

Congratulations, you've corrupted the script's memory. Well yeah, I'm just amused by the result of this corruption and wanted to share. The quote above is actually a good sentence to put there with dumbass at the end, only it's too long and will corrupt too much memory. And it's good that you don't...
by obeeb
01 Mar 2014, 16:03
Forum: Scripts and Functions
Topic: Small autohotkey hack - Make blank variables not blank
Replies: 2
Views: 1553

Small autohotkey hack - Make blank variables not blank

Here's a little something I found out. Run the code below and see what happens. #NoEnv StrPut("No, you're not.", &blankDummy) MsgBox % i_am_a_blank_variable StrPut("I'm an object", &blankDummy) obj := {} MsgBox % obj *Edit - Added #NoEnv, I always use it so I forgot about it. Notes: Don't actually u...
by obeeb
27 Feb 2014, 15:45
Forum: Ask For Help
Topic: Detect if object is the enumerator object.
Replies: 12
Views: 3887

Re: Detect if object is the enumerator object.

NumGet(Addr) is the same as NumGet(&Addr), you need to pass the address stored in Addr and for that you need the +0
by obeeb
23 Feb 2014, 19:49
Forum: Ask For Help
Topic: Move Gui Loop not working correctly [solved]
Replies: 3
Views: 1499

Re: Move Gui Loop not working correctly

Kaos your code doesn't work because by default MouseGetPos uses relative to the active window coordinates. After your window moves to it's new position xpos ypos will be the same as startxpos startypos because they are relative to the new position of the window. This causes the window to return to s...
by obeeb
23 Feb 2014, 07:00
Forum: Ask For Help
Topic: Detect if object is the enumerator object.
Replies: 12
Views: 3887

Re: Detect if object is the enumerator object.

This is very strange behavior. Apparently what you do with v changes the output of NumGet(&({}.NewEnum())) v := {} v := {}.NewEnum() MsgBox % NumGet(&({}.NewEnum())) " " NumGet(&v) Prints different numbers but if v := {} is removed it prints the same number. I think the problem is that the & operato...
by obeeb
22 Feb 2014, 21:10
Forum: Scripts and Functions
Topic: type(v) for v1.1
Replies: 4
Views: 3439

Re: type(v) for v1.1

Great function.
Another note: It will incorrectly return float for integers bigger than 2147483647 (maximum number for signed 32 bit integers)
by obeeb
22 Feb 2014, 20:22
Forum: Ask For Help
Topic: if var is number, numeric string key of object
Replies: 13
Views: 5429

Re: if var is number, numeric string key of object

type(v) is not a built in function. It was geniusly coded by lexikos after this thread was created and black magic makes it work :) http://ahkscript.org/boards/viewtopic.php?f=6&t=2306 there is no way to know if key inside the for loop is the numeric key from the object or string key from the object...
by obeeb
20 Feb 2014, 20:12
Forum: Ask For Help
Topic: if var is number, numeric string key of object
Replies: 13
Views: 5429

Re: if var is number, numeric string key of object

jethrow your solution doesn't work, obj.haskey() doesn't check if key is numeric or string(it just converts them) and will return true in both cases. trismarck there is no way to know if key inside the for loop is the numeric key from the object or string key from the object it's just another typele...

Go to advanced search