AutoHotkey Community

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

All times are UTC [ DST ]


Search found 44 matches
Search these results:

Author Message

 Forum: Support   Topic: Full Path of shortcut that launches a script

Posted: April 14th, 2010, 9:32 pm 

Replies: 8
Views: 823


SKAN, I owe you a beer, it works great! I love it when I can make a script smarter and clean up after itself :)

 Forum: Support   Topic: Full Path of shortcut that launches a script

Posted: April 14th, 2010, 4:03 pm 

Replies: 8
Views: 823


SKAN, I bow to the king! I have very limited coding knowledge, especially when it comes to DllCalls. I'll give your suggestion a test when I get a chance and post back. Thanks a ton! Is it possible to find out what the path of such shortcut launching a script is? I am surprised.. The answer is yes! ...

 Forum: Support   Topic: Full Path of shortcut that launches a script

Posted: April 14th, 2010, 3:59 pm 

Replies: 8
Views: 823


That's exactly what I need...the full path of the shortcut that ran the script. FileGetShortcut won't work because you need to know the shortcut location, which is what I'm trying to find in the first place :) The things I want to check in the shortcut are the path to the working directory and a fil...

 Forum: Support   Topic: Full Path of shortcut that launches a script

Posted: April 14th, 2010, 7:18 am 

Replies: 8
Views: 823


I have a script that writes shortcuts to the user's Desktop with some parameters in the "Target" field and a path in the "Start In" field. The shortcut is used to launch the script and pass these parameters to it. One of the parameters is a file name whose name and path can obvio...

 Forum: Support   Topic: GUI help - button redraw and window resizing

Posted: January 6th, 2009, 7:19 pm 

Replies: 2
Views: 645


Ok, I answered my second question. See the updated script (used Gui +Resize +MinSize300x300 instead). The problem with the "Help Me!" button not displaying correctly until you hover over it still remains. ; Allow the user to maximize or drag-resize the window: Gui +Resize ; Create some but...

 Forum: Support   Topic: GUI help - button redraw and window resizing

Posted: January 6th, 2009, 6:41 pm 

Replies: 2
Views: 645


Hi all, See below for the code in question. This is a crude example (proof of concept) adapted from the AHK GUI help. I have a button called "Help me!" and for some reason, it doesn't show up correctly when the script is launched. If I hover over it with the cursor then it starts showing, ...

 Forum: Support   Topic: RegRead in Vista 64

Posted: January 6th, 2009, 4:36 pm 

Replies: 23
Views: 2200


Thanks tomte! I'll give those functions a spin.

 Forum: Support   Topic: RegRead in Vista 64

Posted: December 13th, 2008, 1:19 am 

Replies: 23
Views: 2200


Thanks a lot SKAN! It took a while for me to get back but it seems like I have a workable solution now. This Thread also helped a ton (really, the solution was delivered on a platter!). Thanks for all your help. I'm a total rookie when it comes to scripting, especially with using dllcall and doing r...

 Forum: Suggestions   Topic: Registry access limitations on Windows XP 64

Posted: December 13th, 2008, 1:01 am 

Replies: 6
Views: 5832


Thanks a TON guys. That working example is perfect. I'm not that knowledgeable in using dllcall (or most of AHK anyway!). I appreciate all the help. Too bad I wasn't smart enough to figure out the syntax until the last 2 posts :)

 Forum: Support   Topic: RegRead in Vista 64

Posted: November 20th, 2008, 3:45 am 

Replies: 23
Views: 2200


It returned 0. Doesn't sounds like that should be the value of that variable!

 Forum: Support   Topic: RegRead in Vista 64

Posted: November 20th, 2008, 3:01 am 

Replies: 23
Views: 2200


I see. I read the following and thought it needed to be RegOpenKeyEx . As you pointed out, it returned -4. I corrected it to RegOpenKeyExA and it now returns 0, which means ERROR_SUCCESS, correct? Now if that is working, I'm still having trouble with RegQueryValueEx that reads the value. Errorlevel ...

 Forum: Support   Topic: RegRead in Vista 64

Posted: November 20th, 2008, 12:14 am 

Replies: 23
Views: 2200


Thanks Skan. Still not being successful though; not sure where I'm messing up :( hKey = HKEY_LOCAL_MACHINE sKeyName = SYSTEM sValueName = InstallLocation KEY_QUERY_VALUE = 0x1 DllCall("Advapi32.dll\RegOpenKeyEx", Str,hKey, Str,sKeyName, Int,0, Int,KEY_QUERY_VALUE, "UInt *",tm...

 Forum: Support   Topic: RegRead in Vista 64

Posted: November 19th, 2008, 4:28 pm 

Replies: 23
Views: 2200


I'm trying to use dllcall with Advapi32.dll to read the registry instead of RegRead, but I'm not being successful. I'm messing up the syntax. Below is my test code. I added a value "InstallLocation" under "SYSTEM" just to experiment retrieving its value using this method but I ge...

 Forum: Suggestions   Topic: Registry access limitations on Windows XP 64

Posted: November 19th, 2008, 6:15 am 

Replies: 6
Views: 5832


I know this thread is quite old, but I'm running into the same issue with needing to read a registry entry made by a 64 bit application using AHK. I'm not familiar with how to use the dllcall with Advapi32.dll. I would appreciate any help with syntax as I'm sure I'm doing it wrong. Below is a test I...

 Forum: Support   Topic: RegRead in Vista 64

Posted: November 19th, 2008, 4:24 am 

Replies: 23
Views: 2200


Thanks David. I might use your approach.

Lexicos, do you know if it's possible to use the KEY_WOW64_64KEY flag with RegRead? I cannot find an example of how to use that flag. Thanks!
Sort by:  
Page 1 of 3 [ Search found 44 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group