Search found 23 matches

by skribb
02 Mar 2019, 12:47
Forum: Scripts and Functions
Topic: Invisible Screen Lock
Replies: 1
Views: 897

Invisible Screen Lock

In essence this will serve as an invisible lock screen, as almost any mouse and keyboard input will result in the workstation being locked. good for info / kiosk mode or if you just prefer seeing what's on your screen while it's locked. :) as per my comments in the script: the task here is to lock t...
by skribb
08 Jul 2017, 16:56
Forum: Ask For Help
Topic: FileAppend loop suddenly stopped creating txt file
Replies: 2
Views: 647

Re: FileAppend loop suddenly stopped creating txt file

Try removing this: If not ErrorLevel StringSplit does not return ErrorLevel. You could do this instead: if (FileItem0 > 1) FileAppend, %FileItem2%`n, L:\ArchonList.txt HTH Edit: fixed varname typo Thanks! it seemed to suffice with just removing If not ErrorLevel ,I wonder why the script has been wo...
by skribb
08 Jul 2017, 08:47
Forum: Ask For Help
Topic: FileAppend loop suddenly stopped creating txt file
Replies: 2
Views: 647

FileAppend loop suddenly stopped creating txt file

This script is supposed to create a text file based on the randomised FileList and for some reason it just doesn't work anymore. The text file is no longer created :crazy: FileDelete, L:\ArchonList.txt Sleep, 3000 FileList = Loop, L:\*.*, 0, 1 FileList = %FileList%%A_LoopFileTimeModified%`t%A_LoopFi...
by skribb
08 Jul 2017, 08:25
Forum: Ask For Help
Topic: Loop not working properly; AHK or Windows-related?
Replies: 5
Views: 1159

Re: Loop not working properly; AHK or Windows-related?

stuff stuff Seems to be working, I only did minor testing tho. Will report back if something happens :dance: Youcef what is your reason for making the script modular other than it being much prettier to read? Do you think it could have any bearing on the script's success rate? Loop { FileRead, head...
by skribb
07 Jul 2017, 20:11
Forum: Ask For Help
Topic: Loop not working properly; AHK or Windows-related?
Replies: 5
Views: 1159

Re: Loop not working properly; AHK or Windows-related?

boiler wrote:I suppose you're saying that you've changed the volume manually within the half hour since the script changed it, correct? Otherwise, why would you expect it to change the next time through the loop unless you've crossed one of the hour boundaries?
For test purposes I reset the volume manually yes
by skribb
07 Jul 2017, 14:38
Forum: Ask For Help
Topic: Loop not working properly; AHK or Windows-related?
Replies: 5
Views: 1159

Loop not working properly; AHK or Windows-related?

This loop is supposed to run in the background and set the volume of eventghost according to the current time (if my headphones are disabled; the flag of which is governed by eventghost). If I run the script it works the first time , because I notice that the volume level does indeed change for even...
by skribb
07 Jul 2017, 10:09
Forum: Tips and Tricks
Topic: How to disable CTRL+ALt+DEL
Replies: 0
Views: 2109

How to disable CTRL+ALt+DEL

this isn't really an AHK tutorial so I apologize in advance for being slightly off-topic, however it is relevant to AHK applications I'm working on a transparent screen lock which I know that many others have done here with varying levels of success. The problem usually is that you can still reach ...
by skribb
04 Apr 2017, 04:48
Forum: Ask For Help
Topic: If (A_WDay = 7 or 1) still true regardless of day
Replies: 2
Views: 824

Re: If (A_WDay = 7 or 1) still true regardless of day

But why would the condition be true if the day is 2?

Doesn't "If (A_WDay = 7 or 1)" mean "if today is saturday or sunday" ?

This seems to be the correct syntax

Code: Select all

If (A_WDay = 7) or (A_WDay = 3)
{
	msgbox % A_WDay
}
by skribb
03 Apr 2017, 06:01
Forum: Ask For Help
Topic: If (A_WDay = 7 or 1) still true regardless of day
Replies: 2
Views: 824

If (A_WDay = 7 or 1) still true regardless of day

Code: Select all

;1 is sunday
If (A_WDay = 7 or 1)  
{
	msgbox % A_WDay
}
Why does this msgbox appear even on a monday? :eh:
by skribb
16 Jan 2017, 01:31
Forum: Ask For Help
Topic: Blocking all input for 30 minutes
Replies: 2
Views: 711

Re: Blocking all input for 30 minutes

Thank you
by skribb
15 Jan 2017, 20:40
Forum: Ask For Help
Topic: Blocking all input for 30 minutes
Replies: 2
Views: 711

Blocking all input for 30 minutes

I stole this from another thread :) Loop { Input,v,, If InStr(ErrorLevel,"EndKey") Send % "{" SubStr(ErrorLevel,8) "}" } LButton:: MButton:: RButton:: LWin Up:: RWin Up:: XButton1:: XButton2:: My question is, where do I put the Sleep? I want the input to be blocked for a set period of time, 30 mins....
by skribb
14 Oct 2016, 11:17
Forum: Scripts and Functions
Topic: WinHttpRequest - A function similar to HttpRequest
Replies: 13
Views: 13510

Re: WinHttpRequest - A function similar to HttpRequest

Hey guys, trying to control my LIFX but I'm receiving errors (Missing "key" in object literal, and the affected line is the headers := { "Authorization": "Bearer " . token , } ): #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assi...
by skribb
14 Oct 2016, 10:48
Forum: Ask For Help
Topic: HTTP request to API
Replies: 4
Views: 2168

Re: HTTP request to API

Capn Odin wrote:I kinda like the library Requests, so I would suggest you keep using Py[/url].

When running the script all I get is a blank msgbox. I have installed Python 3.5.2 which I figured would be needed
by skribb
13 Oct 2016, 06:24
Forum: Ask For Help
Topic: HTTP request to API
Replies: 4
Views: 2168

HTTP request to API

i want to try and make HTTP requests to the LIFX api. Currently I use a python script in Eventghost. import requests token = "xxxxxxxxxxxxxxxxxxxxxxxxxx" headers = { "Authorization": "Bearer %s" % token, } payload = { "power": "on", "duration": 0.1, "color": "white brightness:1.0 kelvin:4500" } resp...
by skribb
08 Sep 2016, 19:10
Forum: Ask For Help
Topic: Should I use multiple scripts or one consolidated script?
Replies: 2
Views: 927

Should I use multiple scripts or one consolidated script?

I have a bunch of periodic file operations (moving, deleting) in AHK scripts. I was wondering if there's any performance advantage to consolidating them into one compiled exe instead of having like 5 separate ones.

Thanks :mrgreen:
by skribb
26 Jul 2016, 17:42
Forum: Ask For Help
Topic: Scripts that won't exit on their own
Replies: 2
Views: 752

Scripts that won't exit on their own

I have several compiled scripts that just contain a simple action like opening a folder. Naturally these are supposed to quit as soon as the action has completed, but sometimes the EXE process runs indefinitely. It doesn't happen all the time, and it's not always the same script.... So I don't know ...
by skribb
24 Jun 2016, 06:32
Forum: Ask For Help
Topic: Replaced context menu, but the original one appears every other time Topic is solved
Replies: 13
Views: 2570

Re: Replaced context menu, but the original one appears every other time Topic is solved

Thanks lexikos. It works better now. However, there's definitely something wrong with Pot's menu. Even if I use mouse position instead of classNN, the original menu still pops up. Kinda makes sense because sometime's the Pot Player context menu can't be closed because it disappears when it's still "...
by skribb
23 Jun 2016, 10:53
Forum: Ask For Help
Topic: Replaced context menu, but the original one appears every other time Topic is solved
Replies: 13
Views: 2570

Re: Replaced context menu, but the original one appears every other time Topic is solved

Tilde works better than dollar sign actually.

using $RButton, the original menu still pops up every other time, perhaps even more often than tilde

Go to advanced search