Setting current platform

The popular SciTE-based AutoHotkey Script Editor
User avatar
entropy
Posts: 93
Joined: 17 Oct 2014, 01:45

Setting current platform

27 Feb 2023, 09:07

Hello!

Is there any way to create a keyboard shortcut in order to change from v1 to v2 without using the mouse to click the icon?

I tried to make a script for this using the mouse but it didn’t work on v1. It does work for v2.

This is the script for v2 that works: (client coordinates)

Code: Select all

!a::
{
 Click 356, 13
 Send "{down}{down}{down}{down}{down}{down}"
 Send "{Enter}"
}
But this one for v1 doesn’t: (Window coordinates (another funny thing: although the client coordinates are the same, they don’t work when the v1 script is active!)

Code: Select all

!a::
Click, 367 62
Send {Down}
Send {Enter}
Return
When I run it at the end it pastes the contents of the clipboard in my script!!!

Thanks
lexikos
Posts: 9679
Joined: 30 Sep 2013, 04:07
Contact:

Re: Setting current platform

22 Jun 2023, 22:30

I would suggest manually updating to the latest SciTE program files on GitHub (assuming you aren't already using these).
https://github.com/fincs/SciTE4AutoHotkey

Then you can use ControlChooseIndex or ControlChooseString to change platforms.

Code: Select all

ControlChooseString("Latest v1.1", "ComboBox1", "ahk_class SciTEWindow")

Return to “SciTE4AutoHotkey”

Who is online

Users browsing this forum: No registered users and 8 guests