AutoHotKey

Low-level Keyboard Hooks/SendInput with Winkey+L possible? (workstation lockout is intercepted in Vista and higher)

给你一囗甜甜゛ 提交于 2020-02-02 02:37:12
问题 I work on a project called UAWKS (Unofficial Apple Wireless Keyboard Support) that helps Windows users use Apple's bluetooth keyboard. One of the main goals of UAWKS is to swap the Cmd key (which behaves as Winkey in Windows) with Ctrl , allowing users to do Cmd + C for copy, Cmd + T for new tab, etc. It is currently developed using AutoHotkey, which worked pretty well under Windows XP. However, on Vista and Windows 7, Cmd + L causes problems: Regardless of low-level keyboard hooks, Win + L

Open IE with multiple tabs

允我心安 提交于 2020-01-30 08:48:27
问题 I'm trying to create an AutoHotkey script that can be added to the Startup folder, to open IE with multiple predetermined tabs. I have several websites at work that I use regularly, & I want to have IE automatically open when I first login with these pages loaded. I've searched & found a few AHKs which I've tried to alter for my needs, but I receive errors with them. Here is the code I'm trying to use: Pwb := COM_CreateObject ("InternetExplorer.Application") Pwb.Visible:=True Pwb.Navigate(

Open IE with multiple tabs

痴心易碎 提交于 2020-01-30 08:48:24
问题 I'm trying to create an AutoHotkey script that can be added to the Startup folder, to open IE with multiple predetermined tabs. I have several websites at work that I use regularly, & I want to have IE automatically open when I first login with these pages loaded. I've searched & found a few AHKs which I've tried to alter for my needs, but I receive errors with them. Here is the code I'm trying to use: Pwb := COM_CreateObject ("InternetExplorer.Application") Pwb.Visible:=True Pwb.Navigate(

How to do logins using the WinHttpRequest COM?

一曲冷凌霜 提交于 2020-01-28 07:56:31
问题 You can see lots of people automating things on websites using mouseclick and keystroke simulation on browser windows or using the IE COM, but for some applications you don't want your application to take hundrets of megabytes of RAM and use loads of CPU power to render the website etc. So the question is: How to do logins to websites / webservices using AutoHotkey without a browser but using the WinHttpRequest COM? 回答1: I already posted this on the AHK forums, but I think the information is

Autohotkey wrong keystrokes sent to console

你离开我真会死。 提交于 2020-01-24 06:27:27
问题 I am trying to understand this bug and I am looking for a workaroud. Using this script: #NoEnv #SingleInstance force SendMode Input ;Alt+t to send keystrokes !t::Send, /[] It send the correct keystrokes / [ ] to all windows but the windows console (cmd) Additional Info: Using autohotkey v1.1.09.02 With an english US keyboard layout, it sends: ' 9 0 With a french canadian multilingual keyboard layout, it sends: é ^ ç Any idea of what can fix it? 回答1: Try this: #NoEnv #SingleInstance force

macro - can you scrape an xml file and then use it to fill a web form?

岁酱吖の 提交于 2020-01-17 07:24:45
问题 I have a program that generates xml files. I need to use the xml data to fill out a form on a website. (and then use a loop to do this multiple times). From the research I've done so far, it sounds like the way to do this is to have imacros open the xml file in the browser, then scrape the data, then open the web form and fill it out. Now, how does all that fit into one script? Can one script both read data and then use it to fill out a form? I also looked into autohotkey but it seemed a lot

How to insert values into sqlite3 using autohotkey

心不动则不痛 提交于 2020-01-17 01:17:20
问题 My problem is I am unable to insert values into sqlite3 using autohot key. My code is: MyName := name myTel := telphonenumber $sSQL := "insert into myTable Values ('" %MyName% "', " %myTel% ");" and I also tried with , $sSQL := "insert into myTable Values ( ' " . MyName . " ', " . myTel . ");" But neither of these works. Any suggestion is appreciated.. 回答1: I've not used AHK with SQLite before, but is it just the query you're having issues with? Try this (note the lack of the colon before the

How to Hold Down Mouse while Key is Pressed?

戏子无情 提交于 2020-01-16 09:58:46
问题 I am new to autohotkey and apologize for my lack of programming knowledge, but as stated in the title, I am trying to make it so while I hold down a certain key on my keyboard, the mouse will be held down at a certain location as well. The problem I am having is that when I release the key on my keyboard (in this case the "up" key), the cursor is still kept down. Here is my code so far: $Up:: Loop{ if GetKeyState("Up", "P"){ Click 112, 429, down } if not GetKeyState("Up", "P"){ break } }

How to Hold Down Mouse while Key is Pressed?

Deadly 提交于 2020-01-16 09:58:03
问题 I am new to autohotkey and apologize for my lack of programming knowledge, but as stated in the title, I am trying to make it so while I hold down a certain key on my keyboard, the mouse will be held down at a certain location as well. The problem I am having is that when I release the key on my keyboard (in this case the "up" key), the cursor is still kept down. Here is my code so far: $Up:: Loop{ if GetKeyState("Up", "P"){ Click 112, 429, down } if not GetKeyState("Up", "P"){ break } }

AutoHotKey, Updating Icons

那年仲夏 提交于 2020-01-16 07:41:26
问题 So i have a problem with updating the icon for my gui. I want to have it so when i press a button the icon changes, and when i press another button it changes to a different icon. I can change the icon once when i create the gui with this script: gui, show, w0 h0 Menu, Tray, Icon, %A_WorkingDir%\Files\Red_Icon.ico, 1, 1 gui, destroy But i cant seem to be able to change it multiple times So im wondering how i change the icon multiple times/How to uppdate to icon 回答1: If you just want to toggle