Search found 41 matches

by imustbeamoron
06 Jul 2018, 06:29
Forum: Ask For Help
Topic: script
Replies: 2
Views: 101

Re: script

also, a little more descriptive title would be good.
by imustbeamoron
03 Jul 2018, 19:03
Forum: Ask For Help
Topic: Logic suggestions for script
Replies: 2
Views: 62

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...
by imustbeamoron
28 Jun 2018, 19:38
Forum: Ask For Help
Topic: none of the com object functions are working for me
Replies: 1
Views: 54

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]GeSHi © Codebox Plus

oExcel.Visible  := True
by imustbeamoron
25 Jun 2018, 08:44
Forum: Ask For Help
Topic: Full screen transform from gui 1 to gui 2 smooth
Replies: 3
Views: 71

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.
by imustbeamoron
24 Jun 2018, 21:42
Forum: Ask For Help
Topic: Full screen transform from gui 1 to gui 2 smooth
Replies: 3
Views: 71

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...
by imustbeamoron
22 Jun 2018, 12:51
Forum: Ask For Help
Topic: Prevent/disable text selection in Edit control?
Replies: 9
Views: 186

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.
by imustbeamoron
22 Jun 2018, 11:37
Forum: Ask For Help
Topic: How to fill and read an array
Replies: 5
Views: 125

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,...
by imustbeamoron
22 Jun 2018, 11:20
Forum: Ask For Help
Topic: Prevent/disable text selection in Edit control?
Replies: 9
Views: 186

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]GeSHi © Codebox Plus

gui, add, edit, Disabled, Some random text
by imustbeamoron
22 Jun 2018, 09:32
Forum: Ask For Help
Topic: Randomized pixel mouse movements.
Replies: 2
Views: 61

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_...
by imustbeamoron
21 Jun 2018, 20:08
Forum: Ask For Help
Topic: GDI+ - Create Path to clip rectangle
Replies: 4
Views: 162

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...
by imustbeamoron
21 Jun 2018, 11:59
Forum: Ask For Help
Topic: Return Yesterdays date
Replies: 2
Views: 85

Re: Return Yesterdays date

Code: [Select all]GeSHi © Codebox Plus

MsgBox % "Yesterdays date was : " getYesterDate()

getYesterDate(){
dt := A_Now
EnvAdd, dt, -1, Days
FormatTime, dt, % dt, MM/dd/yy
return dt
}
by imustbeamoron
17 Jun 2018, 17:04
Forum: Ask For Help
Topic: Subroutine basics?
Replies: 1
Views: 147

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
by imustbeamoron
17 Jun 2018, 09:31
Forum: Ask For Help
Topic: how to determine if variable is gui var or hwnd?
Replies: 3
Views: 107

Re: how to determine if variable is gui var or hwnd?

returns true if its a hwnd, false if not.

Code: [Select all]GeSHi © Codebox Plus

isHwnd(hwnd){
return DllCall("IsWindow", "Ptr", hwnd)
}
by imustbeamoron
03 Jun 2018, 15:02
Forum: Ask For Help
Topic: permanent script Topic is solved
Replies: 2
Views: 74

Re: permanent script Topic is solved

not sure i like the sound of this...
by imustbeamoron
03 Jun 2018, 14:50
Forum: Ask For Help
Topic: Need help with reading INI file into array variables.
Replies: 16
Views: 509

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...
by imustbeamoron
28 May 2018, 05:55
Forum: Ask For Help
Topic: how to identify conditions
Replies: 9
Views: 188

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.
by imustbeamoron
23 May 2018, 20:26
Forum: Ask For Help
Topic: Will AutoHotKey Work for Me?
Replies: 4
Views: 143

Re: Will AutoHotKey Work for Me?

is there a shortcut key for the 'return' button that you are wanting to press?
by imustbeamoron
23 May 2018, 20:19
Forum: Ask For Help
Topic: A variable DDL
Replies: 6
Views: 185

Re: A variable DDL

change this line

Code: [Select all]GeSHi © Codebox Plus

GuiControl,1:,Selected_List,% List_%List_Selector%


to this.

Code: [Select all]GeSHi © Codebox Plus

GuiControl,1:,Selected_List,% "|" List_%List_Selector%


the bar "|" at the beginning will 'clear the ddl and then add the items, as it is, it is just appending items to the ddl.
by imustbeamoron
22 May 2018, 22:11
Forum: Ask For Help
Topic: DDL launching aps Topic is solved
Replies: 1
Views: 65

Re: DDL launching aps Topic is solved

gui, add, DropDownList, gGotoLink vWebsite, Google.com|Autohotkey.com|Reddit.com|Yahoo.com gui, show return gotoLink: gui submit, noHide url := "http://www." website gui, hide run, % url return ;contorl S to show gui again ^s:: gui, show return esc:: exitapp

Go to advanced search