Search found 61 matches

by awcrt9316
31 Mar 2020, 17:48
Forum: Ask For Help
Topic: array help Topic is solved
Replies: 1
Views: 148

Re: array help Topic is solved

some how i found my bug after trying random stuff

array := [item1, item2, item3, item4]


array[1] := {x: a, y: b}

array[1].x := 10
array[1].y := 200




msgbox, % array[1].y
msgbox, % array[1].x
by awcrt9316
31 Mar 2020, 17:43
Forum: Ask For Help
Topic: array help Topic is solved
Replies: 1
Views: 148

array help Topic is solved

I need an array that for each object in the array, it has an x value and a y value. array := [item1, item2, item3, item4] ; 4 items in array, i want to have an x value and a y value array[1] := {x: a, y: b} ; trying to set 2 values for item 1 array[x] := 10 ; item1 x value equals 10 array[y] := 200 ...
by awcrt9316
31 Mar 2020, 15:03
Forum: Ask For Help
Topic: objects/arrays Topic is solved
Replies: 2
Views: 174

Re: objects/arrays Topic is solved

@boiler that helps a lot, thanks!
by awcrt9316
31 Mar 2020, 14:51
Forum: Ask For Help
Topic: objects/arrays Topic is solved
Replies: 2
Views: 174

objects/arrays Topic is solved

I need 16 images on my gui to have an x value and a y value which can be manipulated and stored. would a object/array help with this? I have only a basic understanding of objects/arrays so I am not sure if I should list 32 variables or not.
by awcrt9316
30 Mar 2020, 12:56
Forum: Ask For Help
Topic: manipulating gui coordinate system
Replies: 1
Views: 112

manipulating gui coordinate system

To position elements on a gui, the default is that the top left is 0,0 and greater x value makes objects move to the right and greater y values make objects move down. I was wondering if there was a way to change this so the bottom left is the default starting position and x and y changed respective...
by awcrt9316
28 Mar 2020, 21:32
Forum: Ask For Help
Topic: gui help with edit box Topic is solved
Replies: 1
Views: 137

Re: gui help with edit box Topic is solved

took forever but found it

label1:
gui, submit, NoHide
name := getkeystate("Enter")
if(name==true)
{
msgbox, %edit1%
GuiControl,,edit1 ; this clears it
}
return
by awcrt9316
28 Mar 2020, 21:22
Forum: Ask For Help
Topic: gui help with edit box Topic is solved
Replies: 1
Views: 137

gui help with edit box Topic is solved

I would like my gui edit box to when I hit enter, clear the text from the box when the data goes to a variable. Does anyone know how to do that? my code: #singleinstance, force gui, color, gray Gui, +ALwaysOnTop Gui, Add, Edit, r3 y450 x50 w400 vedit1 glabel1, gui, show, h500 w500, THE GUI return la...
by awcrt9316
28 Mar 2020, 15:52
Forum: Ask For Help
Topic: gui tab with picture Topic is solved
Replies: 3
Views: 209

Re: gui tab with picture Topic is solved

never mind, I found the bug, I put gui show above picture instead of below gui, add, picture. Glad you mentioned that. Thanks!
by awcrt9316
28 Mar 2020, 15:49
Forum: Ask For Help
Topic: gui tab with picture Topic is solved
Replies: 3
Views: 209

Re: gui tab with picture Topic is solved

vsub this is the rest of it #singleinstance, force gui, show, h500 w500, THE GUI Gui, Add, Tab3,x0 y0 h500 w500, General|View|Settings|4th Gui, Tab, 1 gui, add, picture,h50 w50, white.png Gui, Tab, 2 gui, add, radio,,this is a radio gui, add, radio,,this is another radio Gui, Tab, 3 Gui, +ALwaysOnT...
by awcrt9316
28 Mar 2020, 14:15
Forum: Ask For Help
Topic: gui tab with picture Topic is solved
Replies: 3
Views: 209

gui tab with picture Topic is solved

I am trying to have the first tab of my gui contain a picture (black square). When I run it, the picture isn't there, but when i click tab number 2 and click back to tab number 1, it appears there. How do i make the picture appear on tab one from the very beginning without clicking off and on to get...
by awcrt9316
22 Mar 2020, 12:02
Forum: Ask For Help
Topic: Error this following variable contains an illegal character help
Replies: 1
Views: 161

Error this following variable contains an illegal character help

I have a variable with an accent like in spanish so when I copy it to the clipboard, it is saved in a variable which produces an error in the third msgbox. Basically, with a variable with an accent, it can't be used to extract out of an array. My code is shown below. Before running the script, have ...
by awcrt9316
21 Mar 2020, 14:33
Forum: Ask For Help
Topic: if clipboard contains help Topic is solved
Replies: 3
Views: 270

Re: if clipboard contains help Topic is solved

@boiler ok thanks for your help today! I have been dedicating this entire day to learn.
by awcrt9316
21 Mar 2020, 14:16
Forum: Ask For Help
Topic: if clipboard contains help Topic is solved
Replies: 3
Views: 270

if clipboard contains help Topic is solved

i need a script that can detect if the clipboard contais a space surrounding a letter y. Script example below. #Persistent #SingleInstance, Force OnClipboardChange("ClipChanged") ; script triggered every time clipboard is changed return ClipChanged() { If Clipboard Contains {space}y{space} { conjuga...
by awcrt9316
21 Mar 2020, 12:20
Forum: Ask For Help
Topic: bug in my script
Replies: 3
Views: 211

Re: bug in my script

boiler If the script below is what you are suggesting, it still doesn't work. The message box that is displayed is still blank instead of displaying the First Value array := {1:"First Value", 2:"Second Value", 3:"Third Value", 4:"Fourth Value", 5:"Fifth Value", 6:"Sixth Value"} Global a a := Clipbo...
by awcrt9316
21 Mar 2020, 11:45
Forum: Ask For Help
Topic: bug in my script
Replies: 3
Views: 211

bug in my script

The script I am currently making doesn't allyow myself to extract data from the array using variables. I am trying to make a script that when i copy something (ex: aaa), a variable named conjugation is set to equal 1 and my color detection detects a color of a word, copies it to clipboard, and uses ...
by awcrt9316
21 Mar 2020, 00:47
Forum: Ask For Help
Topic: RegExMatch() help with script
Replies: 1
Views: 193

RegExMatch() help with script

In the current script that I am writing, I need it to isolate a word in my clipboard that ends in ER, IR, or AR, and store it as a variable. For example, if my clipboard contains Yo Jugar , I need the word "Jugar" to be stored alone in a variable. If this matters, the word will always be to the righ...
by awcrt9316
20 Mar 2020, 19:40
Forum: Ask For Help
Topic: AHK editor help: switch from OVR to Insert
Replies: 3
Views: 227

Re: AHK editor help: switch from OVR to Insert

My laptop doesn't have an insert key. I guess i could do send, {insert} to get around this problem but I am wondering what the actual keyboard shortcut is. I know there is one, but can't remember what it was.
by awcrt9316
20 Mar 2020, 17:54
Forum: Ask For Help
Topic: AHK editor help: switch from OVR to Insert
Replies: 3
Views: 227

AHK editor help: switch from OVR to Insert

I accidently pressed something and my cursor looks horizontal instead of vertical ( _ ) vs ( | ). How do i switch back to insert mode instead of OVR mode?
by awcrt9316
18 Mar 2020, 14:37
Forum: Ask For Help
Topic: Best way to learn
Replies: 5
Views: 485

Re: Best way to learn

ok, thank you for your suggestion. :)
by awcrt9316
18 Mar 2020, 13:41
Forum: Ask For Help
Topic: Best way to learn
Replies: 5
Views: 485

Best way to learn

I've been trying to learn AHK the last month and reading the manuel has been quite overwhelming. There are limited resources/videos that i could find so I was wondering if anyone had any advise. Please post your suggestions in the comments. Thanks!

Go to advanced search