AutoHotKey

作为前端入门级别的菜鸟,这7个技巧带你通关HTML

早过忘川 提交于 2020-01-06 15:32:46
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> WEB前端开发学习过程中,作为一个新手入门级别的菜鸟你,要如何的高效的学习呢? html语言学习的7个秘诀 也就是说如何学习HTML语言。 新手们有一个常见的错误就是犹豫于判断哪种编程语言是做好的、最该先学的。 我们有很多的选择,但你不能说那种语言“最好”。 我们应该理解:说到底,什么语言并不重要。 重要的是理解数据结构、控制逻辑和设计模式。 任何一种语言—甚至一种简单的脚本语言—都会具有所有编程语言都共有的各种特征,也就是说各种语言是贯通的。 我编程使用Pascal,汇编,和C语言,事实上我从来没有把它当成职业以求获得回报。 我一直在自学编程,工作上用不到它,我使用现有的知识,参考各种文档和书本,学习它们的用法。 因此,不要急于选择何种编程语言。 找出你想要开发的东西,使用一种能够完成这项任务的语言,这就可以了。 根据各种开发平台的不同,有很多不同的软件开发形式可供你选择:从网站应用到桌面软件到智能手机软件到命令行脚本工具。 我先假设你是一个悟性很强的读者,但对于新手,当我谈论程序代码时还是要按照入门级的水平。因为即使是你自己看一篇编程入门手册,如果发现都能理解时,心情自然会很高兴,这样利于你进一步学习。 桌面脚本 想要动手在Windows里或苹果系统里编程,最简单的方法是从一种脚本语言或宏语言开始

Autohotkey - Replace different words or sentences

半腔热情 提交于 2020-01-06 08:17:34
问题 in this script that I use i can replace only one word teams --> milan, juventus, inter.. But i want replace many words (not only one word) for example: [simply word replacement jack-->beta] alfa-->beta [sentence replacement jack--> jack,john,alfa ] jack jack john alfa This is actually code that i use loop { While !RegexMatch(strCapture, "teams$") { Input, strUserInput, V L1, {BackSpace} ; V: visible, L1: Character length 1 If ErrorLevel = Endkey:BackSpace strCapture := SubStr(strCapture, 1,

How to assign hotkey of pressing Alt key twice (Alt+Release+Alt) in Autohotkey?

删除回忆录丶 提交于 2020-01-06 07:23:07
问题 How to assign a hotkey of quickly pressing {Alt} key twice in Autohotkey? In other words: How to assign Press Alt + Release Alt + Press Alt as a hotkey? In other words: How to assign key down {Alt} key then key up {Alt} key then quickly key down {Alt} ?. I want to set the time between releasing {Alt} key then pressing it again (to be very small) in order to activate hotkey. • Example: if the user pressed {Alt} key then released it then waited for 5 seconds then pressed {Alt} key again, the

How can I get windows explorer to “browse to next folder”? (vbscript/batch etc…)

馋奶兔 提交于 2020-01-06 06:09:27
问题 I use the basic windows explorer to browse a large collection of images. I have a very well organised group of folders and I don't need/want any of the extra functionality of photo organisers such as picasa etc... The only drawback is: I'd really like to be able to browse from one folder straight into the next, without having to click back and choosing the next folder. So my question is, how could I do this in the smoothest way?! I'm guessing I could use a combination of some script and then

script to use Left Click as Left Shift does not work correctly

家住魔仙堡 提交于 2020-01-05 05:49:31
问题 I've search AHK forums but couldn't solution. The script I found on AHK to use LShift as LButton does not work correctly..when press & hold left shift and move the mouse pointer, it can't copy text exactly like as if click and hold left mouse. What I mean by exactly is.. press & hold left shift and move the mouse pointer copies the whole paragraph or section of text..not just the few words I wanted. My first time here & newbie w/ AHK. Your time is appreciated. ~Lshift:: Send {LButton} return

How can I split tab-delimited strings in Autohotkey?

孤街浪徒 提交于 2020-01-05 04:24:09
问题 I have a series of tab-delimited strings copied to the Windows Clipboard. I want to split these strings into arrays using the tab character. Unit Dept_ID Name CORP 0368 Admin CORP 3945 Programmer SESHAN 4596 Software Engineer I'm trying to use StringSplit(), but I can't figure out how to use 'tab' as my delimiter. I've tried a few different methods, but none seem to work. clipboard = %clipboard% ; Convert to plain text StringSplit, MyArray, clipboard, `\t` ; Split string using tabs MsgBox %

How to toggle a set of keybinds on and off?

大兔子大兔子 提交于 2020-01-05 02:03:26
问题 I am trying to set up a group of keybinds that I can toggle on and off with a single button press but haven't been able to find any examples anywhere. I want ^NumpadSub to toggle these different keybinds to turn them on and off when I press ^NumpadSub. q::w z::s w::up s::down Can anyone help on how I would set up the code to do so? 回答1: When these are the ONLY ones, you could add one more hotkey: ^NumpadSub::Suspend This will suspend ALL hotkeys (except the one that is used for toggling

Send existing modifiers with a key in autohotkey?

偶尔善良 提交于 2020-01-03 17:47:47
问题 I'm trying to send pressed modifiers with the Send command, only way I come up with is listing them all: ; (Note: I've remapped using registry the Capslock as F13) F13 & h:: if GetKeyState("Control") && GetKeyState("Shift") { Send +^{Left} return } if GetKeyState("Control") { Send ^{Left} return } if GetKeyState("Shift") { Send +{Left} return } Send {Left} return In Windows if you press ctrl+left it jumps a word left, if I press ctrl+shift+left it selects a word leftwise. Similarily I'd like

Send Text in Clipboard to Application like Notepad (C# or Powershell)

爷,独闯天下 提交于 2020-01-03 14:27:12
问题 I want to be able to send the text on the clipboard, in Windows, to an application. For example, I'm working on a text file in notepad, and I want to copy a portion out into a new file..I want to copy it to the clipboard and then use a hotkey to launch an application or powershell script that sends that copied text to a new instance of Notepad. How can I achieve this in C# or Powershell ? SOLUTION: Using AutoHotKey ^+c:: Send ^c Run Notepad WinWait Untitled - Notepad WinActivate Send ^v

How to use array in autohotkey?

落花浮王杯 提交于 2020-01-03 04:26:10
问题 I'm new to AutoHotKey and not familiar with its grammar. I've searched on the web but can't find usefully example. Take a look at the following diagram. +---+---+---+---+------------------- | a | b | c | d | (1) +---+---+---+---+------------------- ^ | +---+---+---+---+------------------- | a | b | c | d | (2) +---+---+---+---+------------------- ^ | +---+---+---+---+------------------- | a | b | c | d | (3) +---+---+---+---+------------------- ^ | +---+---+---+---+------------------- | a | b