Ahhh, use clipboard, so much to learn. Sweet plan. I might use that soon, thanks @BoBoBoBo wrote: ↑19 Feb 2022, 08:38@zaphodikus - without a file…Code: Select all
Run powercfg /getactivescheme | Clip ,,Hide MsgBox % clipboard
Search found 28 matches
- 19 Feb 2022, 09:27
- Forum: Ask for Help (v1)
- Topic: Check laptop lid status
- Replies: 14
- Views: 2013
Re: Check laptop lid status
- 19 Feb 2022, 08:27
- Forum: Ask for Help (v1)
- Topic: Check laptop lid status
- Replies: 14
- Views: 2013
Re: Check laptop lid status
Surely there must be an easier way rather than making a temp .txt file? There is more than one way to skin that cat, someone once wrote an AHK function to randomly generate and delete temp files more cleanly (it's a more scaleable solution) - also another thing would be to grab the stdout using ano...
- 19 Feb 2022, 03:38
- Forum: Ask for Help (v1)
- Topic: Hotkeys in a function
- Replies: 7
- Views: 964
Re: Hotkeys in a function
Hi, @Elermino do paste or share a final version when you get it working, very keen to learn from you as I'm trying to understand a similar kind of problem myself.
- 19 Feb 2022, 03:16
- Forum: Ask for Help (v1)
- Topic: Python bindings issue with run_script()
- Replies: 6
- Views: 971
Re: Python bindings issue with run_script()
Aha. I just learned how to subscribe to a thread on the forums - I deserve a badge. I used AHK many years ago, a lot of false confidence still. So far seen some pretty scary programming techniques and wary of writing too much AHK code that may become nonportable later, which is why I want to stick t...
- 18 Feb 2022, 18:00
- Forum: Ask for Help (v1)
- Topic: Python bindings issue with run_script()
- Replies: 6
- Views: 971
Re: Python bindings issue with run_script()
No probs - I have to look into how the python module runs my little script, because the script "returns" or exits when i get the python module to run it, and I'm unsure how to stop it terminating until I press CTRL+J. I will dig into the python some more and into the github issues, and report back o...
- 18 Feb 2022, 16:34
- Forum: Ask for Help (v1)
- Topic: Check laptop lid status
- Replies: 14
- Views: 2013
Re: Check laptop lid status
Im new to AHK, but that script clearly says ... 7/28/2013 This script should work for Vista+ ... And there is your issue, the api calls it's making are going to fail on newer windows I guess - you might get it working if you banjax windows security, but if it's that important why not use the command...
- 18 Feb 2022, 15:11
- Forum: Ask for Help (v1)
- Topic: Python bindings issue with run_script()
- Replies: 6
- Views: 971
Re: Python bindings issue with run_script()
Aha, boiler that works. and in retrospect was a bit obvious. I did not understand how the python module works, it's actually just a commandline wrapper, I WAS expecting actual interface bindings somewhere. The docstrings in the code are not yet explaining enough for people who are not AHK veterans, ...
- 17 Feb 2022, 17:01
- Forum: Ask for Help (v1)
- Topic: Python bindings issue with run_script()
- Replies: 6
- Views: 971
Python bindings issue with run_script()
I installed https://pypi.org/project/ahk/ (Python 3.9) I'm using the daemon, since I want to (I think) build a bbcode writer that turns most keyboard keys into a macro/bbcode instead. So my issue is the python module. 1. Is it being supported? 2. I this valid and why does the call to daemon.key_wait...
- 17 Feb 2022, 16:46
- Forum: Ask for Help (v1)
- Topic: Need advise - which browser is better to use for web scrapping - Edge or Chrome?
- Replies: 4
- Views: 749
Re: Need advise - which browser is better to use for web scrapping - Edge or Chrome?
Um.
Web scraping is possible using AHK?
Far simpler to do it using Selenium and Java or Python, loads of community support for doing so. Depends on context of course
Web scraping is possible using AHK?
Far simpler to do it using Selenium and Java or Python, loads of community support for doing so. Depends on context of course
- 15 Feb 2022, 14:33
- Forum: Ask for Help (v1)
- Topic: SendPlay deprecated?
- Replies: 1
- Views: 312
SendPlay deprecated?
Reading this thread, https://www.autohotkey.com/boards/viewtopic.php?t=43366 I'm left a little confused by the documentation. Is SendPlay deprecated? Windows 10 obviously, it does nothing at all. The docs that I'm reading don't seem to mention this issue. What I am wanting to achieve is to remember ...
- 10 May 2020, 15:29
- Forum: Scripts and Functions (v1)
- Topic: Mouse And Keyboard Macro Recorder
- Replies: 150
- Views: 259203
Re: Mouse And Keyboard Macro Recorder
Sorry to necro here, but is this shipped as a binary now call "Pullover", or is this still something that wants a maintainer?
- 10 May 2020, 07:36
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
Ah, pushed my final script up on github https://github.com/zaphodikus/minecraft-timelapse/blob/master/mc_delete_build.ahk
This video clip created using 73.24% AutoHotKey
This video clip created using 73.24% AutoHotKey
- 10 May 2020, 07:28
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
Result := IsObject(expression) Does not really tell me whether "expression" is an Apple, Pear, or a MotorCar object. I woudl have to add a hidden member to my classes to accomplish that? class Car { __new(color) { this.color:=color this._type := "Car" ; note, this may be used in case sensitive way ...
- 08 May 2020, 16:10
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
No worries, Gregster. We gotta keep people safe. That url has some kind of google blogger certificate issue. I think it's all because I have to set up forwarding again. I'm getting too old for all this security shenanigans, will have to raise a support ticket with them, or at least go through the si...
- 08 May 2020, 12:42
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
[OT] @zaphodikus Just for the records, once I try to load your signatures website it returns this: NET::ERR_CERT_COMMON_NAME_INVALID [/OT] Bobo, thanks, will look into that. I only just updated my profile today. I am having some a lot of fun with AHK, I figured it would be easier if people knew wha...
- 08 May 2020, 12:08
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
I just saw the isobject function , and I just noticed something, all identifiers in AHK are case insensitive, :o . Which probably means my next question is leading from that, because there is no __repr__ equivalent, is there a way to implement an isKindOf (instance, "classname") function? I also not...
- 08 May 2020, 10:29
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
Thanks guys, that actually got me a lot farther. I just suspect it's my C++ background that says If I attempt to print any "object" that is for most intents and purposes is empty, the compiler will just print/render the reference itself instead. Python does this, and will literally invoke a builtin ...
- 08 May 2020, 09:04
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Re: Error: Parameters of hotkey functions must be optional. Topic is solved
What confused me, was when I put the object in a messagebox, it was empty , which is totally unexpected. I was expecting a messagebox to show me <<Employee object at XXXXX>> What is the "Auto-Execute Section" ? I normally go Msgbox hello but some people write Msgbox, hello what is the difference wit...
- 08 May 2020, 08:41
- Forum: Ask for Help (v1)
- Topic: Basic loop send loop value (version 1.1)
- Replies: 9
- Views: 3076
Re: Basic loop send loop value (version 1.1)
Thanks boiler I was not expecting the language to have quite so many keywords and modes, it's actually overwhelming to read much of the docs for slower readers like myself wanting to learn just enough for each step in a journey. So the language was designed with itterators, but I was probably always...
- 08 May 2020, 08:07
- Forum: Ask for Help (v1)
- Topic: Error: Parameters of hotkey functions must be optional. Topic is solved
- Replies: 17
- Views: 4561
Error: Parameters of hotkey functions must be optional. Topic is solved
AHK version 1.1.32.0 2 things about this script, which totally does not do what I was hopeing to accomplish: F10:: Sleep 1 Class Employee{ __New(age, name, title) { this.age := age this.name := name this.title := title } } SetKeyDelay, 30 worker1 := new Employee(22, "Timothy", "Programmer") Msgbox %...