AutoHotkey Community

It is currently May 23rd, 2012, 5:31 pm

All times are UTC [ DST ]


Search found 24 matches
Search these results:

Author Message

 Forum: Support   Topic: INI to be opened by program

Posted: February 17th, 2010, 3:24 am 

Replies: 9
Views: 411


No, I was looking for the command that triggered this instance of the program... not the program itself.

 Forum: Support   Topic: INI to be opened by program

Posted: February 13th, 2010, 8:45 pm 

Replies: 9
Views: 411


OK, I have found my solution! I am posting here in case anyone stumbles across this looking for an answer to the same question. commandLine := DllCall("GetCommandLineA" , "Str") Simple enough. It returns the program being run, and the program/file that triggered it. Now I...

 Forum: Support   Topic: Save variables

Posted: February 11th, 2010, 4:48 pm 

Replies: 6
Views: 412


I know this died a while back, but I'll add to it.

The best way I found was:

Code:
ListVars
ControlGetText, Vars, Edit1, ahk_class Autohotkey
FileAppend, %Vars%, file.txt

It's not the sleekest looking function, but it gets the job done.

 Forum: Support   Topic: INI to be opened by program

Posted: February 9th, 2010, 3:01 am 

Replies: 9
Views: 411


yes, I did not literally want to change all INIs to my program. sorry for not being clear. I was going to make a new file extension which I would use exactly like an INI, but it would only be used between a couple of my programs. Here's the plan. One program gathers information, saves it to INI alte...

 Forum: Support   Topic: INI to be opened by program

 Post subject: INI to be opened by program
Posted: February 9th, 2010, 1:40 am 

Replies: 9
Views: 411


I'm having trouble putting this to words. I want the user to doubleclick an INI, making my program run, and use that INI for its information.

Seems tricky. I've been looking at PostMessage or OnMessage, but I'm not seeing anything helpful.

Thanks in advance!
-Shane

 Forum: Support   Topic: Saving variables and 'listlines' value

Posted: November 8th, 2009, 11:10 pm 

Replies: 6
Views: 356


I also wanted to add that I don't know when this error might happen, and you have to actually be ready for an error in order to use the errorlevel... Or at least I think so.

 Forum: Support   Topic: Saving variables and 'listlines' value

Posted: November 8th, 2009, 10:43 pm 

Replies: 6
Views: 356


I want to save all of the values of what you see from 'listvars' and 'listlines' to a txt file at the time that a problem arises or a key is pressed. So I need to know how to first of all save those values, and secondly, how to execute a command when a problem occurs.

Thanks in advanced,
Shane

 Forum: Support   Topic: Help with reading contents of an edit

Posted: August 23rd, 2009, 2:44 pm 

Replies: 3
Views: 235


Yes, I tried these as well with no results. What I have done at this point is simply send a down keystroke and once the text in the edit is visible, it can then be read via ControlGet. This proves to be cumbersome, though. With that, I have to be sure that not only is the window active, but the user...

 Forum: Support   Topic: Help with reading contents of an edit

Posted: August 22nd, 2009, 4:11 am 

Replies: 3
Views: 235


I have a window with what Windows Spy calls "Edit1." When I use this: ControlGet, Var, LineCount,,Edit1,Window Name I get one regardless of if the edit contains items or not. It looks like a dropdown (Has one visible line until the dropdown arrow on the right is clicked) I cannot seem to s...

 Forum: Support   Topic: Type by way of NumPad

Posted: August 14th, 2009, 4:26 am 

Replies: 1
Views: 231


Oh yes... To Use the Program An INI must be saved as QuickText.INI to the script's directory which looks like this [Suggestions] 2=are,axe,awe,bye 27=are 273=are 29=axe,awe,bye 293=axe,awe,bye Turn your NumLock off, then press a sequence of keys which will form words. A GUI will appear displaying th...

 Forum: Support   Topic: Type by way of NumPad

 Post subject: Type by way of NumPad
Posted: August 14th, 2009, 4:14 am 

Replies: 1
Views: 231


I got bored... again... and thought it might be a good waste of time to try and make a program which allows you to type by way of your numpad. Similar to the way you test on a cell phone, both in the standard way and the auto typing 't9' or whatever these kids are using nowadays. I made the standard...

 Forum: Scripts   Topic: Computer Lock

Posted: August 12th, 2009, 5:03 am 

Replies: 8
Views: 965


Quote:
I use my own version which I made back in college out of boredom


That's basically why I made this. I don't know if I will actually be using it, just screwing around.

 Forum: Scripts   Topic: Computer Lock

Posted: August 12th, 2009, 4:59 am 

Replies: 8
Views: 965


Quote:
If the Script is in the autostart-folder, you just can hold Shift pressed when starting windows, so the script doesnt run.

I had no idea of this... I will have to keep it in mind. Thanks!!

 Forum: Scripts   Topic: Computer Lock

Posted: August 10th, 2009, 1:11 am 

Replies: 8
Views: 965


This will be in the startup folder, and the person which this is made for does not know what safe-mode is.

 Forum: Scripts   Topic: AutoLaunch

Posted: August 9th, 2009, 8:53 pm 

Replies: 2
Views: 1242


Yes, for some reason the enter key only works for the second GUI sometimes. I have never understood that, but I have wanted to make it a clickable button just for that situation. A delete function would be nice. I never did think of that. I'll work on that. I also intended on the "did you mean&...
Sort by:  
Page 1 of 2 [ Search found 24 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group