Search found 31 matches
- 14 Jan 2022, 16:59
- Forum: Ask for Help (v1)
- Topic: Intercepting buttons on Microsoft Surface Pen (HID) to change their actions
- Replies: 0
- Views: 1398
Intercepting buttons on Microsoft Surface Pen (HID) to change their actions
For a few weeks now, a user on Discord has had issues with configuring their Surface pen to work with a specific program and shortcuts in that program. The buttons on the pen are not easily reconfigurable via any official software, so AHK was looked into as a solution. A user in Discord (Cloaker) wa...
- 16 Jul 2021, 15:12
- Forum: Scripts and Functions (v1)
- Topic: [Class] Printers
- Replies: 26
- Views: 10528
Re: [Class] Printers
Hi Bkid, thank you for the code! I can now send ZPL to a Zebra ZD410 printer. Do you know of a way to query the printer status? I can send an ~HS command using the Zebra communication tool but would like to integrate that functionality into an AHK program. Sorry for the delay. I'll be honest, I don...
- 17 May 2021, 11:53
- Forum: Scripts and Functions (v1)
- Topic: [Class] Printers
- Replies: 26
- Views: 10528
Re: [Class] Printers
Forgive any errors or terrible code, I just learned a lot about DLLCalls and structs over the past few days :P I made these functions to add into the class, that I used to print directly to a printer (sending ZPL code directly to a Zebra printer): StartDocPrinter(pHandle, dName, dType) { VarSetCapac...
- 15 Nov 2017, 17:35
- Forum: Scripts and Functions (v1)
- Topic: [Class] LV_Colors - 1.1.05.00 (2024-03-16)
- Replies: 151
- Views: 71644
Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
I'm having this issue as well, and it seems like the issue is occurring on this piece of code: On_WM_NOTIFY(W, L, M, H) { ; Notifications: NM_CUSTOMDRAW = -12, LVN_COLUMNCLICK = -108, HDN_BEGINTRACKA = -306, HDN_BEGINTRACKW = -326 Critical, % This.Critical If ((HCTL := NumGet(L + 0, 0, "UPtr")) = Th...
- 10 Sep 2016, 17:17
- Forum: Gaming Scripts (v1)
- Topic: League of Legends: Quick ward creating then jumping program
- Replies: 3
- Views: 6993
Re: League of Legends: Quick ward creating then jumping program
I have a few problems with the script so far: 1) It doesn't work. I've tried running as admin, and changing the screen to windowed/borderless/fullscreen, with no luck. It doesn't seem to react at all 2) There's no need for a password. Who are you keeping out of an open source script? :| 3) The GUI i...
- 18 Jul 2015, 22:25
- Forum: Ask for Help (v1)
- Topic: AHKsock server that receive keyboard keys to press
- Replies: 1
- Views: 1209
AHKsock server that receive keyboard keys to press
I'm trying to modify example_2_server_single_client.ahk that came with AHKsock (all of this might be old, but it's what I had available in my files). What I want is a server that is sent keyboard keys from a client, and it presses those on the computer that it's running on. My biggest issue is that ...
- 05 Feb 2015, 14:18
- Forum: Scripts and Functions (v1)
- Topic: MAC Address Vendor ID
- Replies: 7
- Views: 3976
Re: MAC Address Vendor ID
Actually yeah that's true. We saved 0.0004% processor power!
- 05 Feb 2015, 12:25
- Forum: Scripts and Functions (v1)
- Topic: MAC Address Vendor ID
- Replies: 7
- Views: 3976
Re: MAC Address Vendor ID
Combined ours :P #SingleInstance, Force #NoEnv Gui, Add, Text, x0 w215 Center, Enter the first six characters or full MAC. Gui, Add, Text, x10 y+10 w68 h12, Modem MAC: Gui, Add, Edit, x+2 yp-3 w125 gCheckMACLen vMAC Limit17 Gui, Add, Text, x10 y+7 w68 h12, Vendor: Gui, Add, Edit, x+2 yp-3 w125 ReadO...
- 04 Feb 2015, 16:09
- Forum: Scripts and Functions (v1)
- Topic: MAC Address Vendor ID
- Replies: 7
- Views: 3976
Re: MAC Address Vendor ID
Ya know we said the same thing in IRC, and I was eventually going to change it..but then I never did.
- 31 Jan 2015, 13:51
- Forum: Scripts and Functions (v1)
- Topic: MAC Address Vendor ID
- Replies: 7
- Views: 3976
MAC Address Vendor ID
As per my habit of making little niche scripts here and there, I present the MAC Address Vendor Identifier! It basically pulls info from a website to tell you the manufacturer of the NIC in a piece of equipment. Not tested very much, but it seems to work fine so far. So..here it is. :D #SingleInstan...
- 28 Nov 2014, 16:16
- Forum: Ask for Help (v1)
- Topic: trouble with script I am trying to develop for Morse Code
- Replies: 22
- Views: 6410
Re: trouble with script I am trying to develop for Morse Cod
Is there a convention for naming a function? Can the name be anything at all, preferably something memorable/to indicate it's function ;) Generally you want to name it something that refers to what it does, or you might forget. ;) Where should Functions be placed in the script? I usually place them...
- 26 Nov 2014, 09:26
- Forum: Ask for Help (v1)
- Topic: PID (Process ID), of a running program.
- Replies: 3
- Views: 11795
Re: PID (Process ID), of a running program.
I tried that exactly script with notepad and it returned the PID just fine. You're 100% sure Label32.exe is running at the time?
- 25 Nov 2014, 17:52
- Forum: Ask for Help (v1)
- Topic: [SOLVED] Code to determine what monitor active gui is in?
- Replies: 5
- Views: 2285
Re: Code to determine what monitor the active gui is within?
Here's my working example, just because I was bored. Maybe you can pick useful pieces from it. :P PID := DllCall("GetCurrentProcessId") SysGet, NumMons, MonitorCount Gui, Add, Button, gSecondGui, Display 2nd GUI Gui, Show, h300 w300, Second Gui Return SecondGui: Loop, % NumMons { SysGet, Mon%a_index...
- 25 Nov 2014, 15:20
- Forum: Ask for Help (v1)
- Topic: [SOLVED] Code to determine what monitor active gui is in?
- Replies: 5
- Views: 2285
Re: Code to determine what monitor the active gui is within?
Edit:
SysGet, MonitorCount to get the number of monitors. If the GUI is between x/y and that x/y it's on monitor z. Then you can use WorkArea to determine where the other GUI appears.
SysGet, MonitorCount to get the number of monitors. If the GUI is between x/y and that x/y it's on monitor z. Then you can use WorkArea to determine where the other GUI appears.
- 21 Nov 2014, 11:28
- Forum: Ask for Help (v1)
- Topic: (Solved) How to set specific time in DateTime control
- Replies: 8
- Views: 4904
Re: How to set specific time in DateTime control
GuiControl (info from the help file): GuiControl, Sub-command, ControlID [, Param3] DateTime/MonthCal: Specify for Param3 a date-time stamp in YYYYMMDDHH24MISS format. Specify %A_Now% to use the current date and time (today). For DateTime controls, Param3 may be omitted to cause the control to have ...
- 14 Nov 2014, 12:53
- Forum: Ask for Help (v1)
- Topic: Ping Function like autoitscript
- Replies: 17
- Views: 8020
Re: Ping Function like autoitscript
Yeah, I understand. I added a quick and dirty (and untested) "timed out" section in there. It doesn't take into account the multiple other errors that could occur, though, but I'm a little too lazy for that right now. :p
Edit: also changed the sleep a little (also untested).
Edit: also changed the sleep a little (also untested).
- 14 Nov 2014, 12:29
- Forum: Ask for Help (v1)
- Topic: Ping Function like autoitscript
- Replies: 17
- Views: 8020
Re: Ping Function like autoitscript
try this: #SingleInstance, Force Gui, Add, Text,, Ping Address: Gui, Add, Edit, x+2 yp-3 w200 vAddress Gui, Add, Button, gGo x10 w267, Go Gui, Add, Edit, x10 y+5 w267 h300 -vscroll ReadOnly vStatusBox Gui, Show,, Pinger Return Go: Gui, Submit, NoHide GuiControl,, StatusBox, % "Pinging " Address " wi...
- 14 Nov 2014, 12:25
- Forum: Ask for Help (v1)
- Topic: Ping Function like autoitscript
- Replies: 17
- Views: 8020
Re: Ping Function like autoitscript
You don't need half of the code that's there. I'm still working on a script for you BankSea...
- 14 Nov 2014, 11:50
- Forum: Ask for Help (v1)
- Topic: Ping Function like autoitscript
- Replies: 17
- Views: 8020
Re: Ping Function like autoitscript
Fixing everything for you, hang tight. :p
- 14 Nov 2014, 10:37
- Forum: Ask for Help (v1)
- Topic: Ping Function like autoitscript
- Replies: 17
- Views: 8020
Re: Ping Function like autoitscript
("Select * From Win32_PingStatus where Address =" A)
Also, nice name
Also, nice name