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 413 matches
AutoHotkey Community Forum Index
Author Message
  Topic: I have a Problem Shooting in my stupid Bunny Hopping program
Micahs

Replies: 3
Views: 146

PostForum: Ask for Help   Posted: Mon Jan 25, 2010 4:49 am   Subject: I have a Problem Shooting in my stupid Bunny Hopping program
If you want to substitute the hopping for shooting while the ScrollLock is on, try this: SetKeyDelay, 75, 75
Gosub, Init ;do at startup to sync hotkey state with scrolllock toggle state
Return

In ...
  Topic: WinWait and WinWaitClose Problem
Micahs

Replies: 3
Views: 136

PostForum: Ask for Help   Posted: Mon Jan 25, 2010 1:37 am   Subject: WinWait and WinWaitClose Problem
You're going to want to look at SetTitleMatchMode, 22: A window's title can contain WinTitle anywhere inside it to be a match.The default (1) is that it must start with the given text to match. HTH
...
  Topic: Idea / Concept for securely distributing timed demo scripts
Micahs

Replies: 5
Views: 136

PostForum: Ask for Help   Posted: Mon Jan 25, 2010 1:12 am   Subject: Idea / Concept for securely distributing timed demo scripts
Agreed. And also, if it is a program that is mainly/only used for internet stuff (downloader, streaming music, etc) the user should not have too much of a complaint for the app calling home, but if it ...
  Topic: Can't compile to exe
Micahs

Replies: 1
Views: 70

PostForum: Ask for Help   Posted: Mon Jan 25, 2010 12:03 am   Subject: Can't compile to exe
I can compile fine and I'm on Win7 64bit. Did you try uninstalling and reinstalling AHK? Maybe try an older version of AHK. Do you have write privileges to the target folder?
  Topic: How to make this kind of window (gui)
Micahs

Replies: 3
Views: 148

PostForum: Ask for Help   Posted: Thu Jan 14, 2010 9:05 am   Subject: How to make this kind of window (gui)
http://www.autohotkey.net/~Micahs/test/no_caption%20thick_border%20Capture.PNG
Gui, -Caption +0x40000
Gui, Add, ListBox, , Run|RunAs|RunWait
Gui, Show

This gives a thick border, but also (maybe ...
  Topic: Help stop script when 1 key is pressed, start it with anothe
Micahs

Replies: 1
Views: 124

PostForum: Ask for Help   Posted: Sun Dec 27, 2009 2:23 am   Subject: Help stop script when 1 key is pressed, start it with anothe
This might be along the lines you are looking for. Keep in mind that the original click will be 'bang' number one and the others will be 2-11 (if you use 10 shots.) You can customize each key (1-0 or ...
  Topic: GUI +alwaysontop Z-Order and Overlaying Multiple GUIs
Micahs

Replies: 5
Views: 263

PostForum: Ask for Help   Posted: Wed Dec 23, 2009 11:29 am   Subject: GUI +alwaysontop Z-Order and Overlaying Multiple GUIs
You could try the 'setparent' api. Since the guis are in the same process, setparent works well. I modified your first example.

WS_POPUP = 0x80000000 ;needed for each child gui
WS_CHILD = 0x400000 ...
  Topic: Convert text string to acceptable filename format
Micahs

Replies: 5
Views: 239

PostForum: Ask for Help   Posted: Wed Dec 23, 2009 10:06 am   Subject: Convert text string to acceptable filename format
One thing I can think of that is really simple is
;replace any chars that are not "a-zA-Z0-9_" with underscore
txt := RegExReplace(txt, "\W", "_")
If your ...
  Topic: Changing Screen sizes?
Micahs

Replies: 5
Views: 210

PostForum: Ask for Help   Posted: Wed Dec 23, 2009 9:33 am   Subject: Changing Screen sizes?
I went a little kookie with this! If you position the mouse and press 'capslock' it will store the current mouse x,y. If you press 'ctrl+capslock' it will save the list of x,y coords along with the cu ...
  Topic: keeping GUI window at the lower right corner of the screen
Micahs

Replies: 2
Views: 142

PostForum: Ask for Help   Posted: Mon Dec 21, 2009 6:57 am   Subject: keeping GUI window at the lower right corner of the screen
Try this. It will keep the gui at the bottom-right during gui size changes.

Gui, Add, Text,, This should stay at the`nbottom-right of the screen.
Gui, Show, w200 h100

incW=200
incH=100
Loop, ...
  Topic: Snapshot
Micahs

Replies: 0
Views: 416

PostForum: Scripts & Functions   Posted: Mon Dec 21, 2009 6:26 am   Subject: Snapshot
Take snapshots of existing controls (Not related to images.)

I noticed a question a while ago asking if it is possible to detect which tab a control is on. Recently, I needed to do just that. I wan ...
  Topic: hold down LButton then press RButton to make a menu appear..
Micahs

Replies: 2
Views: 131

PostForum: Ask for Help   Posted: Mon Dec 21, 2009 2:31 am   Subject: hold down LButton then press RButton to make a menu appear..
Try this.

Menu, popup, Add, Show, clicked
Menu, popup, Add, Hide, clicked
Menu, popup, Add, Exit, clicked

Return
clicked:
MsgBox, %A_ThisMenuItem%
Return

~LButton & RButton ...
  Topic: Windows on top of eachother: Z coord?
Micahs

Replies: 4
Views: 155

PostForum: Ask for Help   Posted: Mon Dec 21, 2009 1:59 am   Subject: Windows on top of eachother: Z coord?
This will place the gui behind the active window when you press Esc. (Obviously, our gui can't be the active one or it won't do anything!)

SWP_NOMOVE=0x2 ;These are flags for 'setWindowPos' use the ...
  Topic: Windows on top of eachother: Z coord?
Micahs

Replies: 4
Views: 155

PostForum: Ask for Help   Posted: Mon Dec 21, 2009 1:16 am   Subject: Windows on top of eachother: Z coord?
You could use the '[url=http://msdn.microsoft.com/en-us/library/ms633545%28VS.85%29.aspx]SetWindowPos' API call. You can't specify a position, but you provide an hwnd to insert after.
  Topic: Kill a process....
Micahs

Replies: 2
Views: 156

PostForum: Ask for Help   Posted: Sun Dec 20, 2009 11:05 pm   Subject: Kill a process....
Process, Close, firefox.exe

This will close only the first instance if there are more than one. If you wanted to close all running instances, you could do this:
Loop
{ Process, Close, firefo ...
 
Page 1 of 28 Goto page 1, 2, 3 ... 26, 27, 28  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group