Search found 140 matches

by obeeb
26 Aug 2017, 15:01
Forum: Ask For Help
Topic: FileExist and UNC root path
Replies: 10
Views: 2817

Re: FileExist and UNC root path

If AutoIt does the same thing and PathFileExists which is probably what Autohotkey and AutoIt use describes it as the correct behavior then I would say this is normal.
by obeeb
26 Aug 2017, 14:44
Forum: Ask For Help
Topic: How to group Some active windows? Topic is solved
Replies: 6
Views: 1316

Re: How to group Some active windows? Topic is solved

GroupAdd is for creating rules. If you want to create a group of the currently not minimized notepad windows you can do something like the following: group := [] winget, list, list, ahk_class Notepad loop % list { winget, curr, MinMax, % "ahk_id" list%A_Index% ; -1 means it's minimized if (curr != ...
by obeeb
26 Aug 2017, 14:21
Forum: Ask For Help
Topic: Continue detection of hotstring replacement
Replies: 14
Views: 2419

Re: Continue detection of hotstring replacement

I'm still trying to figure out where the problem is ... ... This shows how sensitive AHK behavior is in cases like these, and you have to be very careful of every line of code! The problem is not with Autohotkey but with Windows itself which was not built with this kind of usage in mind and other p...
by obeeb
26 Aug 2017, 13:07
Forum: Ask For Help
Topic: iPhilip and transparent click through windows Topic is solved
Replies: 17
Views: 3202

Re: iPhilip and transparent click through windows Topic is solved

Touché. It turned out to be something simple, doesn't mean that it was easy to solve ;-). This behavior annoyed me so I decided to get to the bottom of it but it took some time... I wonder if i can create a class that automates that stuff. You extend a base class, implement is draw() method and it ...
by obeeb
25 Aug 2017, 17:29
Forum: Ask For Help
Topic: Continue detection of hotstring replacement
Replies: 14
Views: 2419

Re: Continue detection of hotstring replacement

you will see that after a few minutes the program stops, leaving characters always different at every attempt. I wonder why. This happens because you have a race condition. Sometimes the next hotstring gets activated by SendEvent before the current returned, then the hotstrings continue to run unti...
by obeeb
25 Aug 2017, 13:14
Forum: Ask For Help
Topic: hi im a noob need some help here :)
Replies: 9
Views: 1601

Re: hi im a noob need some help here :)

@obeeb , I'm curious what the code does. what are these thread things - could you explain your version of the code, and original OP's version -- what's happening? Threads in Autohotkey are exlained in the documentation Threads . I can copy paste it here or you can just go read it, if something is n...
by obeeb
25 Aug 2017, 12:54
Forum: Ask For Help
Topic: Comparing group results Topic is solved
Replies: 11
Views: 1738

Re: Comparing group results Topic is solved

By the way, what does "%" indicate in this line? loop % num { % followed by a space allows you to use expression mode instead of traditional mode. This is the same as writing loop %num% { and in this case it's a matter of preference. Your message box can be rewritten using it in the following way: ...
by obeeb
25 Aug 2017, 10:43
Forum: Ask For Help
Topic: mouseposition and keyremaping
Replies: 3
Views: 637

Re: mouseposition and keyremaping

@DyaTactic
No, $ should definitely be used, that was my bad.

@OP
If you are still here your code can be greatly simplified to:

Code: Select all

z::s
$s::mousemove, 100,100
by obeeb
25 Aug 2017, 01:22
Forum: Ask For Help
Topic: mouseposition and keyremaping
Replies: 3
Views: 637

Re: mouseposition and keyremaping

do:

Code: Select all

z::s

#InputLevel 1
s::
	mousemove, 100,100
return
#InputLevel 0
by obeeb
25 Aug 2017, 01:17
Forum: Ask For Help
Topic: calling code then returning to where it was called from
Replies: 2
Views: 504

Re: calling code then returning to where it was called from

You can use a thing called gosub . You could've used your LOGIN: label but because you do Gui, destroy in it you need to add another one: LOGIN: Gui, destroy LOGIN2: Run, C:\User\Desktop\BusinessPorgram.exe WinWaitActive, BusinessPorgram sendinput, username sendinput, {tab} sendinput, password sendi...
by obeeb
25 Aug 2017, 00:56
Forum: Ask For Help
Topic: Comparing group results Topic is solved
Replies: 11
Views: 1738

Re: Comparing group results Topic is solved

If I understood you correctly the following should work and if it does you can also call readNumber in a loop: readNumber(1) ; returns number 1 readNumber(2) ; returns number 2 readNumber(3) ; returns number 3 readNumber(20) ; returns number 20 readNumber(num) { SetFormat, Integer, Hex pointer := Re...
by obeeb
25 Aug 2017, 00:37
Forum: Ask For Help
Topic: RegexMatch Wildcard issue
Replies: 3
Views: 551

Re: RegexMatch Wildcard issue

RegExMatch(str, "(\S*$)", out)
\S means anything that is not a whitespace
by obeeb
24 Aug 2017, 23:57
Forum: Ask For Help
Topic: Why doesn't my script work?
Replies: 6
Views: 1152

Re: Why doesn't my script work?

Works for me, you probably already have SDL_VIDEO_CENTERED environment variable, try with a different one that you definitely don't have.
by obeeb
24 Aug 2017, 23:10
Forum: Ask For Help
Topic: hi im a noob need some help here :)
Replies: 9
Views: 1601

Re: hi im a noob need some help here :)

I think there is a chance I understood you, you should really try to be more clear, the following will do what I think you might want: #MaxThreadsPerHotkey 2 w:: if (running) { send l return } running := true send l send t send f send eer start := A_TickCount loop { now := A_TickCount-start if now >...
by obeeb
24 Aug 2017, 22:56
Forum: Ask For Help
Topic: Continue detection of hotstring replacement
Replies: 14
Views: 2419

Re: Continue detection of hotstring replacement

But I would like to avoid repeating the code... That's what Functions are for. Please read the tutorial (there is a link at the top right of this page). Somebody might just give you the solution but based on the code in your latest post they will need to continue doing that for every line of code y...
by obeeb
24 Aug 2017, 21:34
Forum: Ask For Help
Topic: Newbie in need of help
Replies: 3
Views: 655

Re: Newbie in need of help

Well let's try to figure out what happens: You press F5 first time: first thread runs, toggle is true, the while loop runs and sleeps at the end of the loop. You press F5 second time: the second thread runs, toggle is false the loop doesn't run and the thread exits. Know if at this point you will wa...
by obeeb
24 Aug 2017, 18:40
Forum: Ask For Help
Topic: Comparing group results Topic is solved
Replies: 11
Views: 1738

Re: Comparing group results Topic is solved

I don't fully understand, can you show me an example with the first 3 numbers and the last number? Can't you just multiply off2 by the times you need to add it which would be the same as the number of the number?
by obeeb
24 Aug 2017, 18:34
Forum: Ask For Help
Topic: iPhilip and transparent click through windows Topic is solved
Replies: 17
Views: 3202

Re: iPhilip and transparent click through windows Topic is solved

This shows me the class of the active window. Normal desktop is "Progman" the other is "WorkerW". I have the feeling this has some significance to the problem. @ obeeb: does that ring a bell with you? This is related to what's described here: https://blogs.msdn.microsoft.com/oldnewthing/20040527-00...

Go to advanced search