nice!
Hey Skan - been using ahk for about a decade, your contributions are always top notch. I still use your w32 constants script often, works great.
thanks!
Search found 43 matches
- 05 Jun 2020, 20:52
- Forum: Scripts and Functions
- Topic: OSDTIP()
- Replies: 78
- Views: 21202
- 05 Jun 2020, 20:48
- Forum: Scripts and Functions
- Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids
- Replies: 64
- Views: 14029
Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids
Looks great GeekDude. thanks for sharing. Looking fwd to trying this out.
- 06 Jul 2018, 06:29
- Forum: Ask For Help
- Topic: script
- Replies: 2
- Views: 675
Re: script
also, a little more descriptive title would be good.
- 03 Jul 2018, 19:03
- Forum: Ask For Help
- Topic: Logic suggestions for script
- Replies: 2
- Views: 657
Re: Logic suggestions for script
does something like this achieve the desired result? the 'logging lines' can be removed, and are just there to show you the clicked intervals. startTime := A_TickCount ;for logging purposes only - can be removed SetTimer, clickIt, 1000 ;call the clickIt label every 1 second clickIt: ;label called by...
- 28 Jun 2018, 19:38
- Forum: Ask For Help
- Topic: none of the com object functions are working for me
- Replies: 1
- Views: 535
Re: none of the com object functions are working for me
no libraries needed. try adding this line to the end of your script. i am far from an expert in COM though, so maybe its not the issue.
Code: Select all
oExcel.Visible := True
- 25 Jun 2018, 08:44
- Forum: Ask For Help
- Topic: Full screen transform from gui 1 to gui 2 smooth
- Replies: 3
- Views: 747
Re: Full screen transform from gui 1 to gui 2 smooth
dont destroy your guis until you are completely done with them. hide them if you need to, but you should only create each gui one time.
- 24 Jun 2018, 21:42
- Forum: Ask For Help
- Topic: Full screen transform from gui 1 to gui 2 smooth
- Replies: 3
- Views: 747
Re: Full screen transform from gui 1 to gui 2 smooth
build your 2nd gui ahead of time, and just dont show it until its needed... gosub, build_gui2 Gui,1: Default Gui,1: +AlwaysOnTop Gui,1: Add,Picture, w%A_ScreenWidth% h%A_ScreenHeight% vPicture, bg0.png Gui,1: -Caption Gui, 1: Show,w%A_ScreenWidth% h%A_ScreenHeight% return F2:: Gui,2: Show, w%A_Scree...
- 22 Jun 2018, 12:51
- Forum: Ask For Help
- Topic: Prevent/disable text selection in Edit control?
- Replies: 9
- Views: 1742
Re: Prevent/disable text selection in Edit control?
alot of hackish ways to do it i guess.
i would agree with jeeswg though and use a static control.
i would agree with jeeswg though and use a static control.
- 22 Jun 2018, 11:37
- Forum: Ask For Help
- Topic: How to fill and read an array
- Replies: 5
- Views: 2191
Re: How to fill and read an array
;read the text file to variable fName := "AHK HELP.TXT" FileRead, tFile, % fName ;create your array txtArray := [] ;fill the array with lines of text loop, parse, tFile, `n txtArray.push(A_LoopField) ;show contents of array item 3 MsgBox % txtArray[3] ;show each line of txtArray for each, line in t...
- 22 Jun 2018, 11:20
- Forum: Ask For Help
- Topic: Prevent/disable text selection in Edit control?
- Replies: 9
- Views: 1742
Re: Prevent/disable text selection in Edit control?
maybe just use disabled ? if its read only, and you dont want them selecting text, it seems to fit the bill.
Code: Select all
gui, add, edit, Disabled, Some random text
- 22 Jun 2018, 09:32
- Forum: Ask For Help
- Topic: Randomized pixel mouse movements.
- Replies: 2
- Views: 657
Re: Randomized pixel mouse movements.
something like this x_min := 400, x_max := 600 ;define min & max for x axis y_min := 200, y_max := 400 ;define min & max for y axis random, xPos, % x_min, % x_max ;get a random number between the x_min & x_max random, yPos, % y_min, % y_max ;get a random number between the y_min & y_max MouseMove, x...
- 21 Jun 2018, 20:08
- Forum: Ask For Help
- Topic: GDI+ - Create Path to clip rectangle
- Replies: 4
- Views: 1021
Re: GDI+ - Create Path to clip rectangle
i remember doing something similar to this awhile back. this doesnt require gdip. control s to move the 'view window'. change size/transparency, etc to suite your needs. SetBatchLines -1 #NoEnv #SingleInstance force CoordMode, mouse, client windowWidth := A_ScreenWidth /2, windowHeight := A_ScreenHe...
- 21 Jun 2018, 11:59
- Forum: Ask For Help
- Topic: Return Yesterdays date
- Replies: 2
- Views: 772
Re: Return Yesterdays date
Code: Select all
MsgBox % "Yesterdays date was : " getYesterDate()
getYesterDate(){
dt := A_Now
EnvAdd, dt, -1, Days
FormatTime, dt, % dt, MM/dd/yy
return dt
}
- 18 Jun 2018, 22:02
- Forum: Ask For Help
- Topic: Subroutine basics? Topic is solved
- Replies: 2
- Views: 679
- 17 Jun 2018, 17:04
- Forum: Ask For Help
- Topic: Subroutine basics?
- Replies: 1
- Views: 682
Re: Subroutine basics?
i would go with a timer, as opposed to a loop. something more like this. f8:: ;press F8 to myTimer := !myTimer ;toggle the timer if (myTimer) SetTimer, clickIT, 150 else SetTimer, clickIT, off return clickIT: ;when timer is turned on, this label Click ;gets called once every 150ms. return
- 17 Jun 2018, 09:31
- Forum: Ask For Help
- Topic: how to determine if variable is gui var or hwnd?
- Replies: 3
- Views: 894
Re: how to determine if variable is gui var or hwnd?
returns true if its a hwnd, false if not.
Code: Select all
isHwnd(hwnd){
return DllCall("IsWindow", "Ptr", hwnd)
}
- 03 Jun 2018, 15:02
- Forum: Ask For Help
- Topic: permanent script
- Replies: 2
- Views: 765
Re: permanent script
not sure i like the sound of this...
- 03 Jun 2018, 14:50
- Forum: Ask For Help
- Topic: Need help with reading INI file into array variables.
- Replies: 16
- Views: 4717
Re: Need help with reading INI file into array variables.
I am unfamiliar with JSON or YAML as it applies to AHK. I can put these in any format. I just need to extract them as values later on. +1 for json. Its a much better solution than INI. I use a couple of JSON functions found in the forum. maybe this will help: SetWorkingDir, % A_ScriptDir ;events ar...
- 28 May 2018, 05:55
- Forum: Ask For Help
- Topic: how to identify conditions
- Replies: 9
- Views: 1701
Re: how to identify conditions
i would say, if you need to know which argument caused the ''true' condition, you need to restructure your code and use individual "if" statements.
- 23 May 2018, 20:26
- Forum: Ask For Help
- Topic: Will AutoHotKey Work for Me?
- Replies: 4
- Views: 1119
Re: Will AutoHotKey Work for Me?
is there a shortcut key for the 'return' button that you are wanting to press?