Help me make var list :)

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Bugz000
Posts: 41
Joined: 30 Sep 2013, 10:01

Help me make var list :)

12 Jul 2018, 08:28

it appears i require all the different ways a var can be declared and used to make a test script, this includes all commands etc

duplicate words are key aswell, such as varname in a string, to be displayed as a string, not var :)

for instance

Code: Select all

#include gdip_all.ahk
#singleinstance force

;var var var var var var var var var var var var var var var var var var var var var var var 

mousegetpos, var1, var2
msgbox % "mouse position 1 " var1
msgbox mouse position 2 %var2%

;var var var var var var var var var var var var var var var var var var var var var var var 

var= ,,,,,,,,,var,,,,,,,,,
var := StrReplace(var, "," , "")
msgbox % "this should be var: " var

;var var var var var var var var var var var var var var var var var var var var var var var 

var := 1
Var+= 1
var -= 1
Var += 1
var++
var--
++var
--var
msgbox this should be 2: %var%

;var var var var var var var var var var var var var var var var var var var var var var var 

var := "var"
msgbox % "this should be var: " var(var)  

;var var var var var var var var var var var var var var var var var var var var var var var 

var := 5
hnngh =
(
var
)
msgbox this should be var: %hnngh%  

;var var var var var var var var var var var var var var var var var var var var var var var 

var := 5
hnngh := "var"
msgbox  this should be var: %hnngh% 

;var var var var var var var var var var var var var var var var var var var var var var var 

var := "var"
msgbox % "this should be var: " var(var)

var(var){
return %var%
}
;var var var var var var var var var var var var var var var var var var var var var var var 

w:=600,h:=500,m:=50
Gui,+hWndn
Gui,Show,w%w% h%h%
Loop,% (w,x:=-1,d:=DllCall("GetDC",ptr,n)){
Loop,% (h,y:=-1,j:=++x*(3/w)-2.1){
k:=++y*(2.5/h)-1.25,a:=b:=i:=0
while,(a*a+b*b<4&&i<m)
t:=a*a-b*b+j,b:=2*a*b+k,a:=t,i++
DllCall("SetPixel",ptr,d,int,x,int,y,int,i=m?0:i/m*255)
}}



the more obscure the usage, the better :D i can do the simple stuff myself
Last edited by Bugz000 on 13 Jul 2018, 00:04, edited 7 times in total.
Image
User avatar
Bugz000
Posts: 41
Joined: 30 Sep 2013, 10:01

Re: Help me make var list :)

12 Jul 2018, 08:52

accidental quote instead of edit :p bump i guess
Image

Return to “Ask For Help”

Who is online

Users browsing this forum: DRocks, MannyKSoSo and 218 guests