Search found 160 matches

by Marcosa1020
16 May 2016, 23:36
Forum: Ask For Help
Topic: How to use the keyboard to control joystick ?
Replies: 8
Views: 4618

Re: How to use the keyboard to control joystick ?

Hi evilC,

How can I have the keyboard control a fake joystick? Could you please explain it ?
Thanks.
by Marcosa1020
11 May 2016, 21:06
Forum: 请求帮助
Topic: Joysitck (請問鍵盤如何模擬搖桿)
Replies: 5
Views: 5444

Re: Joysitck (請問鍵盤如何模擬搖桿)

Dears,

請問各位有任何想法嗎? 謝謝喔。
by Marcosa1020
09 May 2016, 18:26
Forum: Ask For Help
Topic: How to use the keyboard to control joystick ?
Replies: 8
Views: 4618

Re: How to use the keyboard to control joystick ?

"I have installed one joystick" - what do you mean? You have one real joystick plugged in? You have one virtual joystick? As I said before, there is absolutely no way to have keyboard control a REAL joystick. You can only have keyboard control a FAKE ("Virtual") joystick. Hi evilC, Yes, I have a re...
by Marcosa1020
09 May 2016, 08:57
Forum: Ask For Help
Topic: How to use the keyboard to control joystick ?
Replies: 8
Views: 4618

Re: How to use the keyboard to control joystick ?

AHK is not capable of altering how apps or games see a physical joystick. Nothing (Apart from special drivers that comes with that stick) can do this. Your only real option is to install a virtual joystick emulator such as vJoy . You can then control the vJoy stick from AHK using my CvJoyInterface ...
by Marcosa1020
09 May 2016, 04:46
Forum: Ask For Help
Topic: How to use the keyboard to control joystick ?
Replies: 8
Views: 4618

How to use the keyboard to control joystick ?

Hi there, The basis of AHK content, I can use the joystick to control keyboard. AHK: https://autohotkey.com/docs/misc/RemapJoystick.htm Could you please tell me when I press the "A" key, what's on monitor continues moving leftward, and when I release the key, it stops moving. I will grateful to you ...
by Marcosa1020
02 May 2016, 00:52
Forum: 请求帮助
Topic: Joysitck (請問鍵盤如何模擬搖桿)
Replies: 5
Views: 5444

Joysitck (請問鍵盤如何模擬搖桿)

Dears,

抱歉,為了讓問題能更加清楚,我修改了標題,請見諒。
我目前只能做到移動搖桿輸出鍵盤文字,請問如何用AHK讓鍵盤能模擬搖桿?
比方說按鍵盤A鍵讓螢幕畫面能往左移動。
我找了許多文章,似乎不能用鍵盤模擬搖桿移動? 我想先確認這點,懇請各位先進賜教。
謝謝。
by Marcosa1020
29 Apr 2016, 01:58
Forum: 请求帮助
Topic: 宣告
Replies: 2
Views: 1852

Re: 宣告

aamii wrote:这只是规定,

变量名可以含有多达 253 个字符, 并且可以由字母, 数字以及后面的标点组成: # _ @ $

是不能包含空格的。
aamii,

Thanks.
by Marcosa1020
28 Apr 2016, 10:15
Forum: Ask For Help
Topic: DropDownList
Replies: 6
Views: 1408

Re: DropDownList

made a test with many 'if' ( replaced variable 'card' with 'd' ) Gui +AlwaysOnTop Gui, Color, 2f4f4f Gui +LastFound WinSet, Transparent, 250 A1 := "AA1" A2 := "AA2" A3 := "AA3" B1 := "BB1" B2 := "BB2" B3 := "BB3" C1 := "CC1" C2 := "CC2" C3 := "CC3" listA := "14AB|14CCA" listB := "B1|B2|B3" listC :=...
by Marcosa1020
28 Apr 2016, 10:10
Forum: 请求帮助
Topic: DropDownList
Replies: 2
Views: 1839

Re: DropDownList

aamii wrote:其他的不说,,,,

Code: Select all

ButtonOutput:
if 
else
return

if 
else
return
代码的结构有问题,
在这个标签下,第一个 if else 结构已经非此即彼,并且return掉了。
第二个if else写等于没写。

这个不属于代码问题,而是一个逻辑顺序的问题了。再琢磨下就ok。
aamii,

感謝你。
by Marcosa1020
27 Apr 2016, 18:16
Forum: Ask For Help
Topic: DropDownList
Replies: 6
Views: 1408

Re: DropDownList

I don't understand , but after ButtonOutput you have a return and must have more if's L1=A P1=14CCA C2=1 : example shows > msgbox,%card2% * %card3% + 288 * %card4% >> 14CCA * 0 + 288 * 1 ButtonOutput: WinActivate, ahk_id %k_ID% Gui, Submit, NoHide if card4 = 0 and card2 = "14AB" msgbox,%card2% * %c...
by Marcosa1020
27 Apr 2016, 17:58
Forum: Ask For Help
Topic: DropDownList
Replies: 6
Views: 1408

Re: DropDownList

jmeneses wrote:because i think they are not numeric values
Hi Jmeneses,

Thank you for your help, but I don't understand what is "numeric values" ? Could you tell me how to write?
by Marcosa1020
27 Apr 2016, 08:05
Forum: Ask For Help
Topic: DropDownList
Replies: 6
Views: 1408

DropDownList

Hi there, I need your help. Here is a script as below. When we select L1 = A, P1 = 14CCA, C2 = 1 then open the excel file and press output. Why isn't the result 288 ? I would appreciate your help. Thanks. Gui +AlwaysOnTop Gui, Color, 2f4f4f Gui +LastFound WinSet, Transparent, 250 A1 := "AA1" A2 := "...
by Marcosa1020
26 Apr 2016, 07:34
Forum: 请求帮助
Topic: DropDownList
Replies: 2
Views: 1839

DropDownList

以下的簡陋的程式碼我已修改,請問L1選A, P1選14CCA, C2選1, 輸出的結果為什麼是54 而不是288 ???? 這個問題困擾我許久,我希望能改成288,懇請各位先進不吝賜教,感謝您。 Gui +AlwaysOnTop Gui, Color, 2f4f4f Gui +LastFound WinSet, Transparent, 250 A1 := "AA1" A2 := "AA2" A3 := "AA3" B1 := "BB1" B2 := "BB2" B3 := "BB3" C1 := "CC1" C2 := "CC2" C3 := "CC3" listA := "14AB|14C...
by Marcosa1020
25 Apr 2016, 23:29
Forum: 请求帮助
Topic: 宣告
Replies: 2
Views: 1852

宣告

Hello,

28 ACTYE中間有空格就不被接受,請問怎樣才可以讓宣告中間有空格呢? 謝謝喔。

28 ACTYE := "ˋ7428498" ;宣告失敗,不被接受
28ACTYE := "ˋ7428498" ;沒空格就成功
by Marcosa1020
23 Apr 2016, 20:32
Forum: 请求帮助
Topic: DropDownList
Replies: 8
Views: 3697

Re: DropDownList

aamii wrote:的确是版本的问题,个人建议可以试试新版

Code: Select all

A := "1"
B := "2"
APPLE := "3"
SAMSUNG := "4"
out:=%card1% * %card2%
Send %out%
或者,干脆

Code: Select all

send  % %card1% * %card2%
以上写法在L版上通过,未在v1.0.48.05 Basic版测试。
Aamii, 感謝您幫我把問題解決了。
by Marcosa1020
23 Apr 2016, 10:24
Forum: 请求帮助
Topic: DropDownList
Replies: 8
Views: 3697

Re: DropDownList

真是辛苦您了,我想應該是我這邊的問題,我用的版本是v1.0.48.05版,您寫的那段在我這裡沒有輸出。 下面這段我有做一點修改,很接近我想要的功能。 當我在card1 選A, card2 選APPLE, 按Output之後會輸出1*3。 請問乘法的寫法是什麼呢? 謝謝。 Gui +AlwaysOnTop Gui, Font, S10 C000000 , Tahoma Gui, Show, x131 y91 h153 w321,Test Gui, Font, S09 cFF0000 , Tahoma Gui, Add, Tab, x-2 y0 w325 h153 , Home Gui, Font...
by Marcosa1020
23 Apr 2016, 02:25
Forum: 请求帮助
Topic: DropDownList
Replies: 8
Views: 3697

Re: DropDownList

Aamii, 抱歉,測試後出現錯誤訊息,訊息如下。 您不用寫開啟Excel file這段,User會自己開; ox := ComObjActive("Excel.application") ;连接excel。 我現在苦惱的是實際上Card1 有A、B兩個選項,Card2有超過五十個選項。 User會自行開Excel 然後選 Card1 & Card2 按Output,Output輸出的數字就是我要請您幫忙的地方。 謝謝。 錯誤訊息為: Error at line 13. Line Text: {"A" Error: The ;eftmost character above is illegal...
by Marcosa1020
23 Apr 2016, 01:16
Forum: 请求帮助
Topic: DropDownList
Replies: 8
Views: 3697

Re: DropDownList

Hi Aamii, 不好意思,程式如下,我開Excel file測試後出現錯誤訊息。 我想在Website or excel file 選好card1 & card2 按Output就可以將結果自動計算後輸出。 因此您所提到的定義"兩個數組"對我來說是非常重要的,當初沒想到。 還要請您費心幫我看看,感謝。 Gui +AlwaysOnTop ;Gui, +E0x08000000 ;WS_EX_NOACTIVATE = 0x08000000 Gui, Font, S10 C000000 , Tahoma Gui, Show, x131 y91 h153 w321,Test Gui, Font, S...
by Marcosa1020
22 Apr 2016, 21:37
Forum: 请求帮助
Topic: DropDownList
Replies: 8
Views: 3697

DropDownList

Hello, 這裡有兩個DropDownList,分別是vcard1 & vcard2. 假設A為1, B為2, APPLE為3, SAMSUNG為4 vcard1 選A, vcard2選 APPLE,我希望按Output 輸出3 vcard1 選A, vcard2選 SAMSUNG,我希望按Output 輸出4 vcard1 選B, vcard2選 APPLE,我希望按Output 輸出6 vcard1 選B, vcard2選 SAMSUNG,我希望按Output 輸出8 請各位指點,我該如何實現呢? 感謝喔。 Gui +AlwaysOnTop ;Gui, +E0x08000000 ;WS_...

Go to advanced search