Search found 97 matches

by mgroen
03 Sep 2021, 05:43
Forum: Ask for Help (v1)
Topic: mark found string
Replies: 1
Views: 219

mark found string

Is it possible (with Autohotkey) to create something similar to the "Find function" (cntrl-f) in a browser, which works well with long "needles" (strings to be looking for), AND including carriage returns/line breaks (CR/BR)? Scenario 1: 1. Open a browser, navigate to webpage displaying text; 2. sel...
by mgroen
18 Nov 2020, 15:42
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

I get the feeling that either autohotkey is not suitable for my "old school lineair programming style.... It’s not AutoHotkey that is not suitable to a linear programming style. It’s the task at hand that requires you to think in an event-driven programming style, no matter what language is used. O...
by mgroen
18 Nov 2020, 08:36
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

I have not tried this script, but if you want to determine whether a key or button is down or up, GetKeyState() can do it. Thanks again @mikeyww , I read the info and tried to work with it, but I couldn't work out a workable solution. I tried using GetKeyState in a if, to prevent the execution of l...
by mgroen
18 Nov 2020, 08:32
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

I have not tried this script, but if you want to determine whether a key or button is down or up, GetKeyState() can do it. Thanks again mikeyww , I read the info and tried to work with it, but I couldn't work out a workable solution. I tried using GetKeyState in a if, to prevent the execution of li...
by mgroen
13 Nov 2020, 16:59
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

Thanks once again, mikeyww for the directions. I'll dive into it.. Only a direction is most of the time enough to find more about the right commands... Also I just noted a small glitch is in my current script: when buttons are switched, a right mouse click is performed (without user clicking), I thi...
by mgroen
13 Nov 2020, 16:05
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

mikeyww , boiler Finally got it all working! :) Thanks a lot both of you!! Without your patience and help I couldn't have made it this far!! Really, thanks a really lot! Here is the code (which I designed and wrote myself and understand it :)): #NoEnv ; Recommended for performance and compatibility...
by mgroen
11 Nov 2020, 10:20
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

boiler , mikeyww I updated the code (to my style), and your tips...I think I am almost there. But it gets stuck on the disabling of the hotkeys could you take a look? #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with det...
by mgroen
22 Oct 2020, 02:49
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

Inside the loop, you don’t want to gosub to those labeled routines. You want to use the Hotkey command to turn on/off the hotkeys depending on the value of your toggle variable. You also don’t need routines to send left when left is pressed and right when right is pressed. You just need to turn off...
by mgroen
21 Oct 2020, 07:39
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

boiler , mikeyww : I tried to produce working code. Its got no errors, but it doesn't do it well. Tried to use Hotkey like mikeyww said, in combination with labels, defining a label for the 2 mouse buttons on left/right hand usage. But its really no good, I get undesired mouse clicks.. Well.. at le...
by mgroen
20 Oct 2020, 13:00
Forum: Forum Issues
Topic: how to post an image in your message Topic is solved
Replies: 3
Views: 979

Re: how to post an image in your message Topic is solved

@gregster ok thanks for the tip, I will try to update my posting and see if I can fix it.
by mgroen
20 Oct 2020, 12:56
Forum: Ask for Help (v1)
Topic: Autohotkey update?
Replies: 2
Views: 689

Autohotkey update?

Hi,

1. what is the right way to get notified of updates on Autohotkey versions?
2. Is there an auto update/check if Autohotkey is started, which informs user if there is an update available for download?

Thanks,

Mathijs
by mgroen
20 Oct 2020, 12:53
Forum: Wish List
Topic: feature request: support hotkeys/hotstrings inside functions Topic is solved
Replies: 2
Views: 899

feature request: support hotkeys/hotstrings inside functions Topic is solved

Hi, this is a feature request regarding support of hotkeys/hotstrings inside functions. Currently, my Autohotkey version (1.1.33.02) can't handle it. Could Autohotkey future version be improved so that it supports hotkeys inside functions? explaination below: I have created following code: sleep_duu...
by mgroen
20 Oct 2020, 12:45
Forum: Forum Issues
Topic: how to post an image in your message Topic is solved
Replies: 3
Views: 979

how to post an image in your message Topic is solved

Hi, I want to display an image (a design) in my post.

I clicked on the image and then tags are displayed. But how to use these?

anyone can explain?
by mgroen
20 Oct 2020, 12:41
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

Hi all (and especially boiler and mikeyww ), I read your posts and thought a lot about it. But, I wont give up. I appreciate your help so far VERY much. I would appreciate it also if you keep supporting me. I know this may be frustrating to you, since we might not exactly speak on the same frequency...
by mgroen
19 Oct 2020, 08:23
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

As I mentioned, you cannot define a hotkey in running code such as within a function (unless you want to use Hotkey ). It looks like I am not helping you, so I am signing off. Best wishes for success. No, please, mikeyww you did help me a lot! but its just that your code is too compact/complicated ...
by mgroen
19 Oct 2020, 08:11
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

Back again, I managed to re-write my code. I included a function to switch mouse buttons: Here is the fresh code: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for...
by mgroen
19 Oct 2020, 07:19
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

Hi boiler , mikeyww (and others), like said earlier I am in the progress of writing a mouse switch applicatoin. Unfortunately, it's harder then I thought :( Well, I have tried to produce code I understand myself and its working. Unfortunately, the latter is not the case :( Code follows below and the...
by mgroen
16 Oct 2020, 06:09
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

Once again, thank you both. Well..I have given it all a thought yesterday and this morning. Situation is as follows: I have copied boiler s code and this works. Here is the code: ^j:: SoundBeep, (toggle := !toggle) ? 1500 : 1000, 20 SplashTextOn, 300, 100, title, % "Mouse switch " (toggle ? "ON" : "...
by mgroen
15 Oct 2020, 04:48
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

boiler I am sorry, I have copied above code, like this: ^j:: SoundBeep, (toggle := !toggle) ? 1500 : 1000, 20 SplashTextOn, 300, 100, title, % "Mouse switch " (toggle ? "ON" : "OFF") "!" SetTimer, SplashOff, -2000 return LButton:: Send % toggle ? "{RButton down}" : "{LButton down}" KeyWait, LButton...
by mgroen
14 Oct 2020, 10:53
Forum: Ask for Help (v1)
Topic: Mouse switch part 3
Replies: 44
Views: 2704

Re: Mouse switch part 3

thanks again mikeyww mikeyww , boiler can you check on your machines that if mouse buttons are switched then multiple line selection and dragging (with new assigned primary mouse button) does not work? you can test this in a notepad session or try to move a window by dragging the window title and se...

Go to advanced search