AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 16 matches
AutoHotkey Community Forum Index
Author Message
  Topic: How to get a string from VT_BYREF|VT_BSTR variant with AHK_L
Wade Hatler

Replies: 5
Views: 288

PostForum: Ask for Help   Posted: Sun Jan 29, 2012 8:17 pm   Subject: How to get a string from VT_BYREF|VT_BSTR variant with AHK_L
Thanks for this. I've been all morning trying to figure this out, and this got me reasonably close.

It seems to require a minor change to work on my system. I'm guessing it's because this code wa ...
  Topic: Sending keystrokes to VMware Player
Wade Hatler

Replies: 11
Views: 1128

PostForum: Ask for Help   Posted: Fri Sep 16, 2011 4:29 pm   Subject: Sending keystrokes to VMware Player
I do quite a bit of stuff in Virtual Machines, and do very sophisticated scripts on the VM. I have to do this because I do a bunch of work with an app that won't run on 64 bit, so I have to have a 32 ...
  Topic: How to Detect 64-Bit Machine using Autohotkey
Wade Hatler

Replies: 6
Views: 733

PostForum: Ask for Help   Posted: Wed Sep 07, 2011 12:40 am   Subject: How to Detect 64-Bit Machine using Autohotkey
Doesn't seem to work. That gives me 4 on both 32 and 64 bit machines. Maybe it's there for some hypothetical 64 bit of AHK, or maybe it comes out 8 if you run the unicode version (I'm runing ANSI).
  Topic: How to Detect 64-Bit Machine using Autohotkey
Wade Hatler

Replies: 6
Views: 733

PostForum: Ask for Help   Posted: Tue Sep 06, 2011 9:18 pm   Subject: How to Detect 64-Bit Machine using Autohotkey
Here's a quick function that does the job.

Is64Bit() {
return (RegexMatch(EnvGet("Processor_Identifier"), "^[^ ]+64") > 0)
& ...
  Topic: Finding a Process' RAM Memory Usage
Wade Hatler

Replies: 6
Views: 1675

PostForum: Ask for Help   Posted: Tue Oct 12, 2010 8:27 pm   Subject: Finding a Process' RAM Memory Usage
This is an excellent starting place, but as the last author noted, the "Working Set" is virtually worthless as an indicator of memory consumption. I could give you a long boring explanation ...
  Topic: Retrieve AddressBar of Firefox through DDE Message
Wade Hatler

Replies: 55
Views: 17151

PostForum: Scripts & Functions   Posted: Tue Sep 07, 2010 5:19 pm   Subject: Retrieve AddressBar of Firefox through DDE Message
I ran into the same problem myself, so I made a new program that uses some brute-force DDE code I hacked from somewhere else in this forum to make sure the DDE is directed to the most recently active ...
  Topic: AHK Messenger - GUI For PostMessage/Sendmessage
Wade Hatler

Replies: 5
Views: 6632

PostForum: Scripts & Functions   Posted: Sat May 29, 2010 2:34 pm   Subject: AHK Messenger - GUI For PostMessage/Sendmessage
You'll need [url=http://www.autohotkey.net/~heresy/Functions/msg.ahk]msg.ahk

You'll also have to change the hard coded e:\msg.ahk
  Topic: Windows 7: A_OSVersion = WIN_VISTA
Wade Hatler

Replies: 6
Views: 2294

PostForum: Bug Reports   Posted: Sun Jan 24, 2010 5:42 pm   Subject: This works easily
I've found that want to do one thing for Vista+ and another for XP-, so I use this function which is pretty simple. You could expand it pretty easily to get more granularity.


IsVistaPlus( ...
  Topic: Retrieve AddressBar of Firefox through DDE Message
Wade Hatler

Replies: 55
Views: 17151

PostForum: Scripts & Functions   Posted: Tue Apr 14, 2009 3:37 pm   Subject: Retrieve AddressBar of Firefox through DDE Message
Correct. I wasn't worrying about unquoted fields because I happened to know that I didn't have them in this case. I wasn't trying to make a generic CSV parser.

Either way, your original solutio ...
  Topic: Retrieve AddressBar of Firefox through DDE Message
Wade Hatler

Replies: 55
Views: 17151

PostForum: Scripts & Functions   Posted: Tue Apr 14, 2009 2:37 pm   Subject: Retrieve AddressBar of Firefox through DDE Message
Yow, I pasted in the wrong code. Sorry about that.

The correct 2 lines should be

sData := RegexReplace(sData, "\\([\x22\\])", "$1")
RegexMatch& ...
  Topic: Retrieve AddressBar of Firefox through DDE Message
Wade Hatler

Replies: 55
Views: 17151

PostForum: Scripts & Functions   Posted: Tue Apr 14, 2009 1:07 pm   Subject: Retrieve AddressBar of Firefox through DDE Message
The point of the Regex is that for most parsing jobs a Regex is faster, simpler, shorter, more flexible and easier to understand than the equivalent parsing loop. It's not always better, but it usual ...
  Topic: Retrieve AddressBar of Firefox through DDE Message
Wade Hatler

Replies: 55
Views: 17151

PostForum: Scripts & Functions   Posted: Mon Apr 13, 2009 3:07 pm   Subject: Retrieve AddressBar of Firefox through DDE Message
Here is the complete code that does the job. It extracts both the current URL and the current Window Title.

DDE_Connect("firefox" , "WWW_GetWindowInfo")
Data  ...
  Topic: Extract numbers from a list in a text file?
Wade Hatler

Replies: 6
Views: 2309

PostForum: Ask for Help   Posted: Sat Jan 31, 2009 8:15 pm   Subject: Extract numbers from a list in a text file?
The above suggestions will work but they're a bit brute force. One technique I use all the time is to let Regular Expressions do all the heavy lifting:
FileRead Work, C:\Temp\1.txt
Work := ...
  Topic: Wild card for ahk_class?
Wade Hatler

Replies: 9
Views: 4531

PostForum: Wish List   Posted: Sat Jan 31, 2009 7:31 pm   Subject: Wild card for ahk_class?
I ran into a similar situation with processing MDI Child windows, which act more like controls than like child windows. In an application I automate all the time, I need to be able to find child wind ...
  Topic: Be python.
Wade Hatler

Replies: 2
Views: 1727

PostForum: Wish List   Posted: Sat Jan 31, 2009 7:26 pm   Subject: Be python.
As presented I don't really like the idea, but I have many times wished that I had AHK's functions exported to a DLL where I could call them from another scripting language.

I routinely work in a ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group