Search found 114 matches

by dsewq1LYJ
18 Nov 2015, 20:13
Forum: Ask For Help
Topic: How to complete disable the affect of modifier(SHIFT)?
Replies: 2
Views: 619

Re: How to complete disable the affect of modifier(SHIFT)?

Exaskryz wrote:are you looking for

Code: Select all

LShift::return
RShift::return
It didnt work, and after append those code.
My +q hotkey stop working.
by dsewq1LYJ
18 Nov 2015, 19:50
Forum: Ask For Help
Topic: How to complete disable the affect of modifier(SHIFT)?
Replies: 2
Views: 619

How to complete disable the affect of modifier(SHIFT)?

Hello guys ! I am scripting a easy tool for controlling a program. Here is an easy example. +b::Send {BS} After the Modifier "Shift" press down the program always revert the value which I need to change it. and then...what if there's a value "88" in the control. Press the Shift + B down, the value b...
by dsewq1LYJ
26 Oct 2015, 21:21
Forum: Ask For Help
Topic: How to control browser(FF) by AHK ?
Replies: 2
Views: 1311

Re: How to control browser(FF) by AHK ?

As you (may) know AutoHotkey & Internet Explorer work nicely together via COM - for all other browsers including Firefox that method is not possible as far as I know. For FF there are some (partial) solutions 1) Using ACC, example http://autohotkey.com/board/topic/72950-idea-identify-rectangular-se...
by dsewq1LYJ
26 Oct 2015, 04:28
Forum: Ask For Help
Topic: How to control browser(FF) by AHK ?
Replies: 2
Views: 1311

How to control browser(FF) by AHK ?

Hi everyone.

Can someone tell me.

Is possible to focus a particular class or id by using DllCall ?
It is pretty cool if we can control browser stuff by AHK, it can give us better browsing experience !

Thanks for any explnations !
by dsewq1LYJ
21 Oct 2015, 04:03
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 96541

Re: How to optimize the speed of a script as much as possible.

Can someone test follow code for me... I got bad PC and I am a student, I cant use Computer all day (even just place it and wait for it to finish) SetBatchLines -1 global lcnt := 100000 WinAct(ttl) { WinActivate % ttl } ; ==============================================================================...
by dsewq1LYJ
20 Oct 2015, 08:16
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 96541

Re: How to optimize the speed of a script as much as possible.

Ternary vs if/else (Short) Ternarry: 2.828439 if/else: 3.931492 Code: SetBatchLines -1 global lcnt := 10000000 global VarA := "Hello" global VarT_1 := VarT_2 := False global VarI_1 := VarI_2 := False ; =================================================================================================...
by dsewq1LYJ
24 Sep 2015, 08:13
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 96541

Re: How to optimize the speed of a script as much as possible.

Higher precision but higher usage ? And may I ask. What's the lowest delay of the function According to my benchmarks: Sleep default method = low CPU, low precision Sleep suspend method = low CPU, high precision, issues with SetTimer Sleep precise method = high CPU, higher precision But sometimes w...
by dsewq1LYJ
24 Sep 2015, 08:10
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 96541

Re: How to optimize the speed of a script as much as possible.

If I understand well something like this: PixelSearch,,,1,1,1,1,0xFFFFFF if !errorlevel foo() PixelSearch,,,1,1,1,1,0xEEEEEE if !errorlevel bar() PixelSearch,,,1,1,1,1,0xDDDDDD if !errorlevel foo() Nice..but I still confusing ... Why PixelSearch faster than PixelGetColor ???... PixelSearch has 7 pa...
by dsewq1LYJ
22 Sep 2015, 04:06
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 96541

Re: How to optimize the speed of a script as much as possible.

Higher precision but higher usage ? And may I ask. What's the lowest delay of the function According to my benchmarks: Sleep default method = low CPU, low precision Sleep suspend method = low CPU, high precision, issues with SetTimer Sleep precise method = high CPU, higher precision But sometimes w...
by dsewq1LYJ
21 Sep 2015, 17:20
Forum: Ask For Help
Topic: How to give a life time for a Variable ?
Replies: 4
Views: 908

Re: How to give a life time for a Variable ?

answer this, why do you want to wait 2 seconds before resetting the variable? OMG...My brain is totally f**k off...I just need to take a break...Over 20 hours without sleep :HeHe: ............. :crazy: You really solve my problem...all issues just from "Exit" I replace all "Exit" to "Return" everyt...
by dsewq1LYJ
21 Sep 2015, 16:56
Forum: Ask For Help
Topic: How to give a life time for a Variable ?
Replies: 4
Views: 908

Re: How to give a life time for a Variable ?

why are you using Exit instead of return ? using Exit in the SS* labels won't interrupt the CMB label because SetTimer created a new thread. i've never used Exit nor have i ever seen anyone else use it, and i had to read the docs just now to understand what it does does this not do it? SS1: LS1:=1 ...
by dsewq1LYJ
21 Sep 2015, 16:36
Forum: Ask For Help
Topic: How to give a life time for a Variable ?
Replies: 4
Views: 908

How to give a life time for a Variable ?

Follow is my code: SS1: LS1:=1 Exit SS2: LS2:=1 Exit SS3: LS3:=1 Exit CMB: if LS1 PixelGetColor,S1,1,1 if LS2 PixelGetColor,S2,2,2 if LS3 PixelGetColor,S3,3,3 if LS4 PixelGetColor,S4,4,4 if (S1=0x000000){ LS1:=0 SetTimer,SS1,-2000 } if (S2=0x111111){ LS2:=0 SetTimer,SS2,-2000 } if (S3=0x333333){ LS3...
by dsewq1LYJ
16 Sep 2015, 04:01
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 96541

Re: How to optimize the speed of a script as much as possible.

Replaced the high CPU Sleep function with the "suspend" Sleep method which uses no considerable CPU and makes the code way shorter. Here's the previous one, for historical reasons I guess: sleepz(period := 1, Mode := "P") { static Frequency, MinSetResolution, PID if (Mode = "P") { pBatchLines := A_...
by dsewq1LYJ
13 Sep 2015, 09:58
Forum: Ask For Help
Topic: [Solved] Get last variable from StrSplit.
Replies: 2
Views: 629

Re: Get last variable from StrSplit.

aStr=A\B\C\D obj := StrSplit(aStr, "\") MsgBox, % obj[obj.Maxindex()] or aStr=A\B\C\D MsgBox, % StrSplit(aStr, "\").Pop() Quick edit: Although, I think StrSplit is overkill if you just want the last item. I might be inclined to used InStr/SubStr/ or RegExMatch instead. OMG... .Pop() :oops: Thanks b...
by dsewq1LYJ
13 Sep 2015, 09:45
Forum: Ask For Help
Topic: [Solved] Get last variable from StrSplit.
Replies: 2
Views: 629

[Solved] Get last variable from StrSplit.

Hi !
I met a problem...

Variable ... Why not !?

Code: Select all

aStr=A\B\C\D
MsgBox % StrSplit(aStr, "\")[StrLen(RegExReplace(aStr, "\\"))]
but what If I dont ?
Is it not a feature or it's not necessary !? (Overcomplicated or I am too dumb :shock: )

Code: Select all

MsgBox % StrSplit("A\B\C\D", "\")[-1]
by dsewq1LYJ
13 Sep 2015, 09:30
Forum: Ask For Help
Topic: [Solved] Why sleep freeze all timer !? Is possible add a delay in label?
Replies: 7
Views: 1479

Re: Why sleep freeze all timer !? Is possible add a delay in label?

I did realized I misunderstanded about "Threads"
Just thinking it's all unlimited threads and totally works parallelly. (Lol...I am pretty stupid...)

Anyway ! Deeply thanks for all replies.
I've learned a lot today!
by dsewq1LYJ
12 Sep 2015, 08:22
Forum: Ask For Help
Topic: [Solved] Why sleep freeze all timer !? Is possible add a delay in label?
Replies: 7
Views: 1479

[Solved] Why sleep freeze all timer !? Is possible add a delay in label?

Follow is my code:

Code: Select all

F4::
SetTimer,QWE,1
SetTimer,ASD,-1
Exit


QWE:
ToolTip FOO BAR
;~ And the sleep in ASD just pause QWE 2,000 ms...What !?
Exit

ASD:
MsgBox Hello???
Sleep,2000
MsgBox What the hell.
Exit
Code explain my problem, and ... HOW...please help me :(
by dsewq1LYJ
12 Sep 2015, 08:19
Forum: Bug Reports
Topic: [Fixed] Combinatin always give me wrong send letters.
Replies: 9
Views: 2299

Re: Combinatin always give me wrong send letters.

lexikos wrote:Please confirm that v1.1.22.05 fixes your issue.
Deeply thanks !

It works like a charm :)

Awesome !
by dsewq1LYJ
12 Sep 2015, 01:48
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 802
Views: 445173

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Since there's no tool or function available to instantly clean an entire messy AutoHotkey script (at least not anymore, Auto-Syntax-Tidy is outdated), I've decided to make one... more or less. Basically, this script takes your ugly looking script and manually rewrites it all into SciTE (which will ...
by dsewq1LYJ
06 Sep 2015, 14:03
Forum: Ask For Help
Topic: How to hide or close context-menu functionally.
Replies: 0
Views: 599

How to hide or close context-menu functionally.

Hi It must be the weirdest problem... but it's really useful for me ! Here is my code: ~RButton:: RB++ SetTimer,Clean,-250 MouseGetPos,cx,cy ;~ currentX,currentY if(RB=2) { RB:=0 if(...) { Send,{Esc Down} Sleep,1 Send,{Esc Up} funcFoo() } } else if RB=1 MouseGetPos,px,py ;~ previousX,previousY Exit ...

Go to advanced search