Search found 49 matches

by Lateralus138
29 Nov 2016, 13:45
Forum: Scripts and Functions (v1)
Topic: Convert A_TickCount
Replies: 24
Views: 9057

Convert A_TickCount

I have seen a few scripts to convert A_TickCount to a human-readable format that were somewhat useful, but not really what I wanted so I wrote these classes. I am not sure if this is the best way, but it works very well and the time since boot is accurate. If anyone has a better way to write this I ...
by Lateralus138
22 Oct 2016, 12:25
Forum: Ask for Help (v1)
Topic: Can we create hotstrings from a loop...
Replies: 3
Views: 1057

Re: Can we create hotstrings from a loop...

Search "ahk dynamic hotstrings," there's a few options. Thanks for the keywords, 'dynamic' was what I was missing and I found the 'Hotstring.ahk" which works somewhat but only seems to replace text and doesn't send any movement like {left 7}. I'll post my new script below to show you. The answer is...
by Lateralus138
21 Oct 2016, 22:02
Forum: Ask for Help (v1)
Topic: Can we create hotstrings from a loop...
Replies: 3
Views: 1057

Can we create hotstrings from a loop...

I have been reading some documentation and tried to search some threads, but it is not clear to me if we can create hotstrings' from a loop or not. I read someone say you can't create labels/hotkeys from a loop so shall I assume it's the same for hotstrings? I am trying to create a html helper of my...
by Lateralus138
27 Sep 2016, 17:09
Forum: Ask for Help (v1)
Topic: Problem with var passed to DllCall
Replies: 3
Views: 913

Re: Problem with var passed to DllCall

Have you tried surrounding the url with quotes ? I don't have Edge so this is untested. I actually have, yes. Thanks though. It can work with the quotes for queries so it is an option, but it will show in Edge with the quotes. Not a big deal, but doesn't work well with actual URLs. Sorry, I just no...
by Lateralus138
27 Sep 2016, 11:57
Forum: Ask for Help (v1)
Topic: Problem with var passed to DllCall
Replies: 3
Views: 913

Problem with var passed to DllCall

I put this script together to do web queries from cmd or other methods and most of it works fine, but there's seem to be an issue when passing a word/s to it. For example you can do a query like this: RunEdge.ahk my web search here it will run Microsoft Edge with the query and most of the time it wo...
by Lateralus138
15 Sep 2016, 09:45
Forum: Scripts and Functions (v1)
Topic: AHK Script Generator
Replies: 8
Views: 6183

Re: AHK Script Generator

Update: Thanks to Masonjar13!!! I am pretty sure I understand ternary better now and have changed 2 of the basic if statements to ternary. Tested and compiled. Changed in the OP code above and commited at GitHub.
by Lateralus138
14 Sep 2016, 16:57
Forum: Scripts and Functions (v1)
Topic: AHK Script Generator
Replies: 8
Views: 6183

Re: AHK Script Generator

Awesome explanation and thanks again!!! I use . in concatenation just for my own visual markers when coding.
by Lateralus138
14 Sep 2016, 15:47
Forum: Scripts and Functions (v1)
Topic: AHK Script Generator
Replies: 8
Views: 6183

Re: AHK Script Generator

Oh wow a much better explanation and example than I have seen before, very much appreciated and understood on the first part!!! But what is the second part of this:

Code: Select all

name:=iname?iname:tdir?a_workingDir . "\":2dir . "\"
evaluating? The 2nd test is if the variable tdir is populated?
by Lateralus138
14 Sep 2016, 15:21
Forum: Scripts and Functions (v1)
Topic: AHK Script Generator
Replies: 8
Views: 6183

Re: AHK Script Generator

Yeah I am familiar with ternary, but I've not used it much before and sometimes get confused by exactly how it works. I have read the docs on it a few times, but it has never been an issue I have had to deal with. Having said that I do like to clean up redundant code and optimize a bit so thanks for...
by Lateralus138
14 Sep 2016, 14:18
Forum: Scripts and Functions (v1)
Topic: AHK Script Generator
Replies: 8
Views: 6183

AHK Script Generator

Not sure if anyone is interested, but I created this for myself and thought some might find it useful. I play with lots of scripts, lots of practicing and experiments and lots of actual working scripts and so I try to stay organized and created AHK Script Generator. Nothing really big, the first tab...
by Lateralus138
08 Jun 2016, 13:35
Forum: Ask for Help (v1)
Topic: [Solved] - Text background color over Gui with Winset, Transcolor looks crappy on darker backgrounds.
Replies: 5
Views: 1658

Re: Text background color over Gui with Winset, Transcolor looks crappy on darker backgrounds.

noname wrote: I think the problem is that you can only check after you started gdip.

Code: Select all

!pToken := Gdip_Startup()
Realized that after a bit, thanks again!!!

Is there a way to mark this as solved or should I just add [Solved] to the title?
by Lateralus138
08 Jun 2016, 10:18
Forum: Ask for Help (v1)
Topic: [Solved] - Text background color over Gui with Winset, Transcolor looks crappy on darker backgrounds.
Replies: 5
Views: 1658

Re: Text background color over Gui with Winset, Transcolor looks crappy on darker backgrounds.

Yeah I everything I've read has pointed me in the direction of GDI, thanks for the direction and example, I'll learn it and incorporate it thanks again!!!! Whats the *i in: #include *i gdip.ahk ? I know what the asterik is for, seems it would include any file that ends in 'i', but there aren't any e...
by Lateralus138
07 Jun 2016, 14:20
Forum: Ask for Help (v1)
Topic: [Solved] - Text background color over Gui with Winset, Transcolor looks crappy on darker backgrounds.
Replies: 5
Views: 1658

[Solved] - Text background color over Gui with Winset, Transcolor looks crappy on darker backgrounds.

Making a script and trying to set the background to transparent and just show the text. It works to a point the way I'm doing it, but looks crappy as I will show in the pics below. Really not sure what keywords to search for, but I am trying to search and not finding much. I have read something abou...
by Lateralus138
02 Jun 2016, 14:15
Forum: Scripts and Functions (v1)
Topic: Display Changer
Replies: 0
Views: 883

Display Changer

So I have seen some scripts to switch monitors, but all seem like too much work (maybe all that work is necessary and I am doing something wrong with my script, not sure) and so I came up with "Display Changer" to switch between two displays or both together. It's kind of hack-ish I guess since it j...
by Lateralus138
27 May 2016, 13:42
Forum: Ask for Help (v1)
Topic: Loading cursor dllcall in a loop...
Replies: 0
Views: 558

Loading cursor dllcall in a loop...

Hello, I am trying to cycle through cursors (just for fun for now :) ) with a loop and it doesn't seem to change the cursor on screen so I would I apprciate if someone could explain what is wrong with the below code. I have successfully loaded cursors in some guis I have so am pretty sure I am doing...
by Lateralus138
07 May 2016, 17:54
Forum: Ask for Help (v1)
Topic: Trouble with creating variables with a loop [Solved]
Replies: 6
Views: 1353

Re: Trouble with creating variables with a loop [Solved]

I ended up realizing that your code was wrong and just came back and seen your fix post, but I had done something different that ended up working and came back to show it, but you had already fixed yours :D Here's what I came up with that works: Counter := "0" Loop, Read, % _vInCrd { if mod(A_Index,...
by Lateralus138
07 May 2016, 13:11
Forum: Ask for Help (v1)
Topic: Trouble with creating variables with a loop [Solved]
Replies: 6
Views: 1353

Re: Trouble with creating variables with a loop

This works perfect. Returns all my values. I am familiar with modulo and knew it as a method to get the remainder in mathematics and other programming/scripting languages, but I didn't think to use itto alternate the lines in and if statement, Again thanks for the great help. Issue solved.
by Lateralus138
07 May 2016, 12:04
Forum: Ask for Help (v1)
Topic: Trouble with creating variables with a loop [Solved]
Replies: 6
Views: 1353

Re: Trouble with creating variables with a loop

Oh ok awesome, and what it looks to me is I just do the same for the Y coords too correct? I'm re-reading the Loop, read section now. my coords are in order like this in the file: x1 y1 x2 y2 etc... so it seems doing it this way I would have to put x coords in one file and y coords in another file a...
by Lateralus138
07 May 2016, 10:25
Forum: Ask for Help (v1)
Topic: Trouble with creating variables with a loop [Solved]
Replies: 6
Views: 1353

Trouble with creating variables with a loop [Solved]

I swear I have been looking off and on for a while now and I have read the help file and help files on the forum and looked through countless questions about creating variables from an array and I am just not understanding what I need to do, so here's my question: I have 12 coordinates in a config f...
by Lateralus138
01 Feb 2016, 14:35
Forum: Ask for Help (v1)
Topic: Issues with image over activex
Replies: 4
Views: 1186

Re: Issues with image over activex

Spoke too soon I guess, I figured I could go find some COM ahk tutorials, so I could try and figure it out without asking here, but the tutorials I found didn't showing anything about injecting images with wb.document. And I really don't understand the language used on the ComObjectConnect page (htt...

Go to advanced search