var question

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

var question

28 May 2017, 09:19

why this code is not working?

Code: Select all

a := "c:\Users\JJ\Documents\aTetalAT\Maps\Bibl+\265 Phl returned it (Bi).jpg"
NumPadEnd::   Run &a&
User avatar
Spawnova
Posts: 554
Joined: 08 Jul 2015, 00:12
Contact:

Re: var question

28 May 2017, 09:55

Need to use percent sign when trying to access variable content

Code: Select all

a := "c:\Users\JJ\Documents\aTetalAT\Maps\Bibl+\265 Phl returned it (Bi).jpg"
NumPadEnd::   Run % a   ;Run %a% also works
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: var question

28 May 2017, 17:03

sorry it is not working for me (indeed I could no see any difference between your second option and mine)

is it working for you?
User avatar
tidbit
Posts: 1272
Joined: 29 Sep 2013, 17:15
Location: USA

Re: var question

28 May 2017, 17:51

Image

& is AND
% is percent
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: var question

28 May 2017, 17:56

sorry, I do apologize!!
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: var question

28 May 2017, 18:04

ok, but why it is STILL not working??

Code: Select all

 j := "c:\Users\JJ\Documents\aBGral AT\Maps\Biblica (Bi) +\265 Philistines rob TheArkOfTheCovenant & returned it (Bi).jpg"
 NumPadEnd::  Run %j%
User avatar
tidbit
Posts: 1272
Joined: 29 Sep 2013, 17:15
Location: USA

Re: var question

28 May 2017, 18:19

my guess is this isn't your full script, and you have stuff above those 2 lines, such as other hotkeys or "return"
but that's only assuming as you haven't showed more.

Run it as-is and it will work, probably.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: var question

28 May 2017, 18:34

but that's the script: to press NumPadEnd ... and Run that pic

should I add any Return?
User avatar
chill8888
Posts: 43
Joined: 03 Dec 2016, 01:26

Re: var question

28 May 2017, 18:41

Code: Select all

NumPadEnd::
Run %j%
return
Hey tidbit, is that board theme through the site's settings, or are you using the stylish extension?
AmDeG 11
Posts: 388
Joined: 28 Nov 2013, 11:42

Re: var question

28 May 2017, 18:47

great!!
User avatar
tidbit
Posts: 1272
Joined: 29 Sep 2013, 17:15
Location: USA

Re: var question

28 May 2017, 19:24

chill8888 wrote:Hey tidbit, is that board theme through the site's settings, or are you using the stylish extension?
I'm using Dark Reader chrome extension (vivaldi)
rawr. fear me.
*poke*
Is it December 21, 2012 yet?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], jameswrightesq and 286 guests